91 bool acceptEvent(
true);
93 StatusCode
sc(StatusCode::SUCCESS);
96 for(
unsigned int i(0); i<
m_triggers.size(); i++) {
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"