6 pt1_(-1.), pt2_(-1.), pt3_(-1.), pt4_(-1.), pt5_(-1.), pt6_(-1.)
11 std::vector<math::XYZVector>
p;
13 for (std::vector<pat::Jet>::const_iterator
jet = jets.begin();
jet != jets.end(); ++
jet) {
99 std::list< double > TCHP_Bjet_Discis;
100 std::list< double > SSV_Bjet_Discis;
101 std::list< double > CSV_Bjet_Discis;
102 std::list< double > SM_Bjet_Discis;
104 std::list< std::pair< double, std::pair< unsigned int, unsigned int > > > dRs;
105 std::list< std::pair< double, std::pair< std::pair< unsigned int, unsigned int >,
unsigned int > > > dRs3Jets;
107 unsigned int jetCounter = 1;
108 for(std::vector<pat::Jet>::const_iterator
jet = jets.begin();
jet != jets.end(); ++
jet, ++jetCounter){
114 TCHP_Bjet_Discis.push_back(
jet->bDiscriminator(
"trackCountingHighPurBJetTags") );
115 SSV_Bjet_Discis.push_back(
jet->bDiscriminator(
"simpleSecondaryVertexBJetTags") );
116 CSV_Bjet_Discis.push_back(
jet->bDiscriminator(
"combinedSecondaryVertexBJetTags") );
117 SM_Bjet_Discis.push_back(
jet->bDiscriminator(
"softMuonBJetTags") );
119 if (jetCounter == 1) {
127 else if (jetCounter == 2) {
135 else if (jetCounter == 3) {
142 else if (jetCounter == 4) {
148 else if (jetCounter == 5) {
155 else if (jetCounter == 6) {
163 if(
jet->bDiscriminator(
"trackCountingHighPurBJetTags") > 2.17) ++
TCHP_Bjets_;
164 if(
jet->bDiscriminator(
"simpleSecondaryVertexBJetTags") > 2.02) ++
SSV_Bjets_;
165 if(
jet->bDiscriminator(
"combinedSecondaryVertexBJetTags") > 0.9 ) ++
CSV_Bjets_;
166 if(
jet->bDiscriminator(
"softMuonBJetTags") > 0.3 ) ++
SM_Bjets_;
168 unsigned int jetCounter2 = jetCounter + 1;
169 for(std::vector<pat::Jet>::const_iterator jet2 =
jet; (jet2 != jets.end() && jet2 != (--jets.end()) && jet2 != (--(--jets.end()))); ++jet2, ++jetCounter2){
171 dRs.push_back( std::make_pair(
deltaR(
jet->phi(),
jet->eta(), jet2->phi(), jet2->eta() ), std::make_pair( jetCounter-1, jetCounter2-1 ) ) );
173 unsigned int jetCounter3 = jetCounter2 + 1;
174 for(std::vector<pat::Jet>::const_iterator jet3 = jet2; (jet3 != jets.end() && jet3 != (--jets.end()) && jet3 != (--(--jets.end())) && jet3 != (--(--(--jets.end())))); ++jet3, ++jetCounter3){
176 double dR1 =
deltaR(
jet->phi() ,
jet->eta() , jet2->phi(), jet2->eta() );
177 double dR2 =
deltaR(
jet->phi() ,
jet->eta() , jet3->phi(), jet3->eta() );
178 double dR3 =
deltaR( jet2->phi(), jet2->eta(), jet3->phi(), jet3->eta() );
179 dRs3Jets.push_back( std::make_pair( dR1+dR2+dR3, std::make_pair( std::make_pair( jetCounter-1, jetCounter2-1 ), jetCounter3-1 ) ) );
189 dRMin1Mass_ = (jets[dRs.begin()->second.first].p4()+jets[dRs.begin()->second.second].p4()).mass();
191 sumDR3JetMin1Mass_ = (jets[dRs3Jets.begin()->second.first.first].p4()+jets[dRs3Jets.begin()->second.first.second].p4()+jets[dRs3Jets.begin()->second.second].p4()).mass();
193 for(
std::list< std::pair<
double, std::pair< unsigned int, unsigned int > > >::const_iterator dR = ++dRs.begin(); dR != dRs.end(); ++dR){
194 if( (dR->second.first != dRs.begin()->second.first) && (dR->second.first != dRs.begin()->second.second) &&
195 (dR->second.second != dRs.begin()->second.first) && (dR->second.second != dRs.begin()->second.second) ){
197 dRMin2Mass_ = (jets[dR->second.first].p4()+jets[dR->second.second].p4()).mass();
202 for(
std::list< std::pair<
double, std::pair< std::pair< unsigned int, unsigned int >,
unsigned int > > >::const_iterator dR = ++dRs3Jets.begin(); dR != dRs3Jets.end(); ++dR){
203 if( (dR->second.first.first != dRs3Jets.begin()->second.first.first) && (dR->second.first.first != dRs3Jets.begin()->second.first.second) &&
204 (dR->second.first.second != dRs3Jets.begin()->second.first.first) && (dR->second.first.second != dRs3Jets.begin()->second.first.second) &&
205 (dR->second.first.first != dRs3Jets.begin()->second.second) && (dR->second.first.second != dRs3Jets.begin()->second.second) ){
207 sumDR3JetMin2Mass_ = (jets[dR->second.first.first].p4()+jets[dR->second.first.second].p4()+jets[dR->second.second].p4()).mass();
212 TCHP_Bjet_Discis.sort();
213 SSV_Bjet_Discis.sort();
214 CSV_Bjet_Discis.sort();
215 SM_Bjet_Discis.sort();
218 for(std::list< double >::const_reverse_iterator
jet = TCHP_Bjet_Discis.rbegin();
jet != TCHP_Bjet_Discis.rend(); ++
jet, ++
counter){
228 for(std::list< double >::const_reverse_iterator
jet = SSV_Bjet_Discis.rbegin();
jet != SSV_Bjet_Discis.rend(); ++
jet, ++
counter){
238 for(std::list< double >::const_reverse_iterator
jet = CSV_Bjet_Discis.rbegin();
jet != CSV_Bjet_Discis.rend(); ++
jet, ++
counter){
248 for(std::list< double >::const_reverse_iterator
jet = SM_Bjet_Discis.rbegin();
jet != SM_Bjet_Discis.rend(); ++
jet, ++
counter){
259 M3_ = (jets[0].p4() + jets[1].p4() + jets[2].p4()).mass();
262 sqrt_s_ = (jets[0].p4() + jets[1].p4() + jets[2].p4() + jets[3].p4() + jets[4].p4() + jets[5].p4()).mass();
double sumDR3JetMin2Mass_
double C(double=2.) const
double jet1_etaphiMoment_
double jet5_etaphiMoment_
double circularity(const unsigned int &numberOfSteps=1000) const
Class for the calculation of several event shape variables.
double jet1_etaetaMoment_
double jet2_phiphiMoment_
double jet3_etaphiMoment_
double jet5_etaetaMoment_
double jet2_etaetaMoment_
double jet5_phiphiMoment_
std::vector< math::XYZVector > makeVecForEventShape(std::vector< pat::Jet > jets, double scale=1.)
double jet1_phiphiMoment_
double jet6_phiphiMoment_
double sumDR3JetMin1Mass_
double sphericity(double=2.) const
double jet6_etaetaMoment_
double deltaR(double eta1, double eta2, double phi1, double phi2)
double D(double=2.) const
double jet4_etaphiMoment_
XYZVectorD XYZVector
spatial vector with cartesian internal representation
double isotropy(const unsigned int &numberOfSteps=1000) const
double jet3_etaetaMoment_
double jet3_phiphiMoment_
double jet6_etaphiMoment_
double jet4_phiphiMoment_
double jet4_etaetaMoment_
double aplanarity(double=2.) const
double jet2_etaphiMoment_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run