2 #include "TLorentzVector.h" 15 cout <<
"----- Caching Flavor History Event -----" << endl;
25 vector<helpers::FlavorHistoryEventHelper> classification;
28 const_iterator i = histories_.begin(), ibegin = histories_.begin(), iend = histories_.end();
31 for (;
i != iend; ++
i) {
34 cout <<
" Processing flavor history: " <<
i - ibegin <<
" = " << endl << flavHist << endl;
45 TLorentzVector p41(matchedJet.
px(), matchedJet.
py(), matchedJet.
pz(), matchedJet.
energy());
53 TLorentzVector p42(sisterJet.
px(), sisterJet.
py(), sisterJet.
pz(), sisterJet.
energy());
62 cout <<
"Adding classification: pdgId = " <<
pdgId <<
", flavorSource = " << flavorSource <<
", dR = " <<
dR 67 cout <<
"No matched jet found, not adding to classification list" << endl;
82 if (!classification.empty()) {
83 std::sort(classification.begin(), classification.end());
86 cout <<
"Writing out list of classifications" << endl;
87 copy(classification.begin(), classification.end(), ostream_iterator<helpers::FlavorHistoryEventHelper>(
cout,
""));
92 highestFlavor_ = best.flavor;
93 flavorSource_ = best.flavorSource;
const reco::ShallowClonePtrCandidate & matchedJet() const
double pz() const final
z coordinate of momentum vector
collection_type::const_iterator const_iterator
double px() const final
x coordinate of momentum vector
const CandidatePtr & masterClonePtr() const override
returns reference to master clone pointer
bool isNonnull() const
Checks for non-null.
Abs< T >::type abs(const T &t)
const reco::CandidatePtr & parton() const
double py() const final
y coordinate of momentum vector
virtual int pdgId() const =0
PDG identifier.
FLAVOR_T flavorSource() const
double energy() const final
energy