#include <JetPartonMatching.h>
Public Types | |
enum | algorithms { totalMinDist, minSumDist, ptOrderedMinDist, unambiguousOnly } |
typedef std::vector< std::pair < unsigned int, int > > | MatchingCollection |
Public Member Functions | |
double | getDistanceForParton (const unsigned int part, const unsigned int comb=0) |
std::vector< int > | getMatchesForPartons (const unsigned int comb=0) |
int | getMatchForParton (const unsigned int part, const unsigned int comb=0) |
unsigned int | getNumberOfAvailableCombinations () |
int | getNumberOfUnmatchedPartons (const unsigned int comb=0) |
double | getSumDeltaE (const unsigned int comb=0) |
double | getSumDeltaPt (const unsigned int comb=0) |
double | getSumDeltaR (const unsigned int comb=0) |
double | getSumDistances (const unsigned int comb=0) |
JetPartonMatching () | |
JetPartonMatching (const std::vector< const reco::Candidate * > &, const std::vector< reco::GenJet > &, const int, const bool, const bool, const double) | |
JetPartonMatching (const std::vector< const reco::Candidate * > &, const std::vector< reco::CaloJet > &, const int, const bool, const bool, const double) | |
JetPartonMatching (const std::vector< const reco::Candidate * > &, const std::vector< pat::Jet > &, const int, const bool, const bool, const double) | |
JetPartonMatching (const std::vector< const reco::Candidate * > &, const std::vector< const reco::Candidate * > &, const int, const bool, const bool, const double) | |
void | print () |
~JetPartonMatching () | |
Private Member Functions | |
void | calculate () |
double | distance (const math::XYZTLorentzVector &, const math::XYZTLorentzVector &) |
void | matchingMinSumDist () |
void | matchingPtOrderedMinDist () |
void | matchingTotalMinDist () |
void | matchingUnambiguousOnly () |
void | minSumDist_recursion (const unsigned int, std::vector< unsigned int > &, std::vector< bool > &, std::vector< std::pair< double, MatchingCollection > > &) |
Private Attributes | |
int | algorithm_ |
std::vector< const reco::Candidate * > | jets |
std::vector< MatchingCollection > | matching |
double | maxDist_ |
std::vector< unsigned int > | numberOfUnmatchedPartons |
std::vector< const reco::Candidate * > | partons |
std::vector< double > | sumDeltaE |
std::vector< double > | sumDeltaPt |
std::vector< double > | sumDeltaR |
bool | useDeltaR_ |
bool | useMaxDist_ |
Definition at line 11 of file JetPartonMatching.h.
typedef std::vector< std::pair<unsigned int, int> > JetPartonMatching::MatchingCollection |
Definition at line 16 of file JetPartonMatching.h.
Enumerator | |
---|---|
totalMinDist | |
minSumDist | |
ptOrderedMinDist | |
unambiguousOnly |
Definition at line 17 of file JetPartonMatching.h.
|
inline |
Definition at line 19 of file JetPartonMatching.h.
JetPartonMatching::JetPartonMatching | ( | const std::vector< const reco::Candidate * > & | p, |
const std::vector< reco::GenJet > & | j, | ||
const int | algorithm = totalMinDist , |
||
const bool | useMaxDist = true , |
||
const bool | useDeltaR = true , |
||
const double | maxDist = 0.3 |
||
) |
Definition at line 5 of file JetPartonMatching.cc.
References calculate(), i, and jets.
JetPartonMatching::JetPartonMatching | ( | const std::vector< const reco::Candidate * > & | p, |
const std::vector< reco::CaloJet > & | j, | ||
const int | algorithm = totalMinDist , |
||
const bool | useMaxDist = true , |
||
const bool | useDeltaR = true , |
||
const double | maxDist = 0.3 |
||
) |
Definition at line 16 of file JetPartonMatching.cc.
References calculate(), i, and jets.
JetPartonMatching::JetPartonMatching | ( | const std::vector< const reco::Candidate * > & | p, |
const std::vector< pat::Jet > & | j, | ||
const int | algorithm = totalMinDist , |
||
const bool | useMaxDist = true , |
||
const bool | useDeltaR = true , |
||
const double | maxDist = 0.3 |
||
) |
Definition at line 27 of file JetPartonMatching.cc.
References calculate(), i, and jets.
JetPartonMatching::JetPartonMatching | ( | const std::vector< const reco::Candidate * > & | p, |
const std::vector< const reco::Candidate * > & | j, | ||
const int | algorithm = totalMinDist , |
||
const bool | useMaxDist = true , |
||
const bool | useDeltaR = true , |
||
const double | maxDist = 0.3 |
||
) |
Definition at line 38 of file JetPartonMatching.cc.
References calculate().
|
inline |
Definition at line 28 of file JetPartonMatching.h.
|
private |
Definition at line 47 of file JetPartonMatching.cc.
References algorithm_, bookConverter::comb, distance(), relval_parameters_module::energy, first, getMatchForParton(), i, jets, match(), matching, matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist, numberOfUnmatchedPartons, p4, partons, benchmark_cfg::pdgId, RecoTauCleanerPlugins::pt, ptOrderedMinDist, edm::second(), python.multivaluedict::sort(), sumDeltaE, sumDeltaPt, sumDeltaR, totalMinDist, unambiguousOnly, and useMaxDist_.
Referenced by JetPartonMatching().
|
private |
Definition at line 133 of file JetPartonMatching.cc.
References useDeltaR_.
Referenced by calculate(), getDistanceForParton(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), and minSumDist_recursion().
double JetPartonMatching::getDistanceForParton | ( | const unsigned int | part, |
const unsigned int | comb = 0 |
||
) |
Definition at line 358 of file JetPartonMatching.cc.
References distance(), getMatchForParton(), jets, p4, and partons.
Referenced by getSumDistances(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
std::vector< int > JetPartonMatching::getMatchesForPartons | ( | const unsigned int | comb = 0 | ) |
Definition at line 347 of file JetPartonMatching.cc.
References getMatchForParton(), and partons.
Referenced by TtJetPartonMatch< C >::produce().
int JetPartonMatching::getMatchForParton | ( | const unsigned int | part, |
const unsigned int | comb = 0 |
||
) |
Definition at line 336 of file JetPartonMatching.cc.
References matching, and findQualityFiles::size.
Referenced by calculate(), getDistanceForParton(), getMatchesForPartons(), print(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
inline |
Definition at line 31 of file JetPartonMatching.h.
References matching.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 32 of file JetPartonMatching.h.
References bookConverter::comb, and numberOfUnmatchedPartons.
|
inline |
Definition at line 39 of file JetPartonMatching.h.
References bookConverter::comb, findQualityFiles::size, and sumDeltaE.
Referenced by print().
|
inline |
Definition at line 40 of file JetPartonMatching.h.
References bookConverter::comb, and sumDeltaPt.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 41 of file JetPartonMatching.h.
References bookConverter::comb, findQualityFiles::size, and sumDeltaR.
Referenced by print(), and TtJetPartonMatch< C >::produce().
double JetPartonMatching::getSumDistances | ( | const unsigned int | comb = 0 | ) |
Definition at line 366 of file JetPartonMatching.cc.
References getDistanceForParton(), and partons.
Referenced by TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
private |
Definition at line 221 of file JetPartonMatching.cc.
References i, jets, matching, minSumDist_recursion(), partons, and python.multivaluedict::sort().
Referenced by calculate().
|
private |
Definition at line 256 of file JetPartonMatching.cc.
References distance(), jets, match(), matching, maxDist_, p4, partons, edm::second(), python.multivaluedict::sort(), and useMaxDist_.
Referenced by calculate().
|
private |
Definition at line 142 of file JetPartonMatching.cc.
References a, distance(), first, jets, match(), matching, maxDist_, p4, partons, python.multivaluedict::sort(), and useMaxDist_.
Referenced by calculate().
|
private |
Definition at line 302 of file JetPartonMatching.cc.
References distance(), jets, match(), matching, maxDist_, p4, and partons.
Referenced by calculate().
|
private |
Definition at line 192 of file JetPartonMatching.cc.
References distance(), jets, match(), maxDist_, p4, partons, and useMaxDist_.
Referenced by matchingMinSumDist().
void JetPartonMatching::print | ( | void | ) |
Definition at line 379 of file JetPartonMatching.cc.
References algorithm_, bookConverter::comb, getMatchForParton(), getNumberOfAvailableCombinations(), getSumDeltaE(), getSumDeltaPt(), getSumDeltaR(), jets, fff_deleter::log, matching, maxDist_, minSumDist, partons, ptOrderedMinDist, totalMinDist, unambiguousOnly, useDeltaR_, and useMaxDist_.
Referenced by TtJetPartonMatch< C >::produce().
|
private |
Definition at line 66 of file JetPartonMatching.h.
Referenced by calculate(), and print().
|
private |
Definition at line 58 of file JetPartonMatching.h.
Referenced by calculate(), getDistanceForParton(), JetPartonMatching(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 59 of file JetPartonMatching.h.
Referenced by calculate(), getMatchForParton(), getNumberOfAvailableCombinations(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), and print().
|
private |
Definition at line 69 of file JetPartonMatching.h.
Referenced by matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 61 of file JetPartonMatching.h.
Referenced by calculate(), and getNumberOfUnmatchedPartons().
|
private |
Definition at line 57 of file JetPartonMatching.h.
Referenced by calculate(), getDistanceForParton(), getMatchesForPartons(), getSumDistances(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 62 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaE().
|
private |
Definition at line 63 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaPt().
|
private |
Definition at line 64 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 68 of file JetPartonMatching.h.
Referenced by distance(), and print().
|
private |
Definition at line 67 of file JetPartonMatching.h.
Referenced by calculate(), matchingPtOrderedMinDist(), matchingTotalMinDist(), minSumDist_recursion(), and print().