#include <SkimmingToolHIGG5VBF.h>
◆ SkimmingToolHIGG5VBF()
DerivationFramework::SkimmingToolHIGG5VBF::SkimmingToolHIGG5VBF |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
Constructor with parameters.
Definition at line 19 of file SkimmingToolHIGG5VBF.cxx.
29 declareProperty(
"JetContainerKey",
m_jetSGKey=
"AntiKt4EMTopoJets");
34 declareProperty(
"NumberOfAllJets",
m_nAllJets=4);
45 declareProperty(
"Triggers",
m_triggers=std::vector<std::string>());
51 declareProperty(
"DoDebug",
m_debug=
false);
54 declareProperty(
"PhotonContainerKey",
m_phSGKey=
"Photons");
55 declareProperty(
"ReqPhoton",
m_reqPh=
false);
◆ ~SkimmingToolHIGG5VBF()
DerivationFramework::SkimmingToolHIGG5VBF::~SkimmingToolHIGG5VBF |
( |
| ) |
|
◆ checkAllJetQuality()
bool DerivationFramework::SkimmingToolHIGG5VBF::checkAllJetQuality |
( |
const TLorentzVector & |
jet | ) |
const |
|
private |
◆ checkCentralJetQuality()
bool DerivationFramework::SkimmingToolHIGG5VBF::checkCentralJetQuality |
( |
const TLorentzVector & |
jet | ) |
const |
|
private |
◆ eventPassesFilter()
bool DerivationFramework::SkimmingToolHIGG5VBF::eventPassesFilter |
( |
| ) |
const |
|
overridevirtual |
Check that the current event passes this filter.
Definition at line 88 of file SkimmingToolHIGG5VBF.cxx.
91 bool acceptEvent(
true);
98 isTriggerFired =
true;
104 std::vector<TLorentzVector> goodAllJets;
105 std::vector<TLorentzVector> goodCentralJets;
111 for(; jet_itr != jet_end; ++jet_itr) {
119 for(
unsigned int jet_i = 0; jet_i<goodAllJets.size(); jet_i++) {
120 const TLorentzVector& iP4 = goodAllJets.at(jet_i);
122 for(
unsigned int jet_k=jet_i+1; jet_k<goodAllJets.size(); jet_k++) {
123 const TLorentzVector& kP4 = goodAllJets.at(jet_k);
125 const TLorentzVector jjP4 = iP4 + kP4;
126 const double jjM = jjP4.M();
128 if (maxM<jjM) {maxM=jjM;}
137 for (
const auto* ph : *phots){
139 if(ph->pt()>maxPhPt) maxPhPt = ph->pt();
145 const bool passNAllJet = (goodAllJets.size()>=
m_nAllJets);
146 const bool passNCentralJet = (goodCentralJets.size()>=
m_nCentralJets);
148 const bool passPhPtCut = (maxPhPt>
m_phPtCut);
150 if (
m_reqNAllJets) {
if (not passNAllJet) {acceptEvent=
false;} }
153 if (
m_reqTrigger) {
if (not isTriggerFired) {acceptEvent=
false;} }
157 if(
m_reqPh and
m_reqVbfMjj) {
if (not (passMjjCut or passPhPtCut) ) {acceptEvent=
false;} }
162 printf(
"dbg> L%3d : event accepted [%s] "
163 "(NJets=%2d [%6s], NCentralJets=%2d [%6s] Mjj=%10.1f [%6s], Trigger [%6s]) \n",
165 acceptEvent?
"Y" :
"N",
166 (
int)goodAllJets.size(), passNAllJet ?
"PASSED" :
"FAILED",
167 (
int)goodCentralJets.size(), passNCentralJet ?
"PASSED" :
"FAILED",
168 maxM, passMjjCut ?
"PASSED" :
"FAILED",
169 isTriggerFired ?
"PASSED" :
"FAILED"
◆ finalize()
StatusCode DerivationFramework::SkimmingToolHIGG5VBF::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getCalibedJets()
TLorentzVector DerivationFramework::SkimmingToolHIGG5VBF::getCalibedJets |
( |
const xAOD::Jet * |
jet | ) |
const |
|
private |
◆ initialize()
StatusCode DerivationFramework::SkimmingToolHIGG5VBF::initialize |
( |
| ) |
|
|
overridevirtual |
◆ m_allJetEtaCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_allJetEtaCut |
|
private |
◆ m_allJetPtCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_allJetPtCut |
|
private |
◆ m_calibedJetMomKey
std::string DerivationFramework::SkimmingToolHIGG5VBF::m_calibedJetMomKey |
|
private |
◆ m_centralJetEtaCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetEtaCut |
|
private |
◆ m_centralJetPtCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_centralJetPtCut |
|
private |
◆ m_centralPhEtaCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_centralPhEtaCut |
|
private |
◆ m_debug
bool DerivationFramework::SkimmingToolHIGG5VBF::m_debug |
|
private |
◆ m_jetSGKey
std::string DerivationFramework::SkimmingToolHIGG5VBF::m_jetSGKey |
|
private |
◆ m_nAllJets
unsigned int DerivationFramework::SkimmingToolHIGG5VBF::m_nAllJets |
|
private |
◆ m_nCentralJets
unsigned int DerivationFramework::SkimmingToolHIGG5VBF::m_nCentralJets |
|
private |
◆ m_npass
std::atomic<unsigned int> DerivationFramework::SkimmingToolHIGG5VBF::m_npass |
|
mutableprivate |
◆ m_ntot
std::atomic<unsigned int> DerivationFramework::SkimmingToolHIGG5VBF::m_ntot |
|
mutableprivate |
◆ m_phPtCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_phPtCut |
|
private |
◆ m_phSGKey
std::string DerivationFramework::SkimmingToolHIGG5VBF::m_phSGKey |
|
private |
◆ m_reqNAllJets
bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqNAllJets |
|
private |
◆ m_reqNCentralJets
bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqNCentralJets |
|
private |
◆ m_reqPh
bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqPh |
|
private |
◆ m_reqTrigger
bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqTrigger |
|
private |
◆ m_reqVbfMjj
bool DerivationFramework::SkimmingToolHIGG5VBF::m_reqVbfMjj |
|
private |
◆ m_trigDecisionTool
◆ m_triggers
std::vector<std::string> DerivationFramework::SkimmingToolHIGG5VBF::m_triggers |
|
private |
◆ m_vbfMjjCut
double DerivationFramework::SkimmingToolHIGG5VBF::m_vbfMjjCut |
|
private |
The documentation for this class was generated from the following files: