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;
const reco::ShallowClonePtrCandidate & matchedJet() const
double px() const final
x coordinate of momentum vector
FLAVOR_T flavorSource() const
collection_type::const_iterator const_iterator
double pz() const final
z coordinate of momentum vector
virtual int pdgId() const =0
PDG identifier.
double energy() const final
energy
Abs< T >::type abs(const T &t)
bool isNonnull() const
Checks for non-null.
const CandidatePtr & masterClonePtr() const override
returns reference to master clone pointer
double py() const final
y coordinate of momentum vector
FlavorHistory::FLAVOR_T flavorSource
const reco::CandidatePtr & parton() const