#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 15 of file JetPartonMatching.h.
Enumerator | |
---|---|
totalMinDist | |
minSumDist | |
ptOrderedMinDist | |
unambiguousOnly |
Definition at line 16 of file JetPartonMatching.h.
|
inline |
Definition at line 18 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(), mps_fire::i, dqmiolumiharvest::j, 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 19 of file JetPartonMatching.cc.
References calculate(), mps_fire::i, dqmiolumiharvest::j, 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 33 of file JetPartonMatching.cc.
References calculate(), mps_fire::i, dqmiolumiharvest::j, 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 47 of file JetPartonMatching.cc.
References calculate().
|
inline |
Definition at line 43 of file JetPartonMatching.h.
|
private |
Definition at line 57 of file JetPartonMatching.cc.
References algorithm_, bookConverter::comb, distance(), HCALHighEnergyHPDFilter_cfi::energy, first, getMatchForParton(), mps_fire::i, jets, match(), matching, matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist, numberOfUnmatchedPartons, partons, EgammaValidation_cff::pdgId, DiDispStaMuonMonitor_cfi::pt, ptOrderedMinDist, edm::second(), jetUpdater_cfi::sort, sumDeltaE, sumDeltaPt, sumDeltaR, TtFullHadEvtBuilder_cfi::sumDR, totalMinDist, unambiguousOnly, and useMaxDist_.
Referenced by JetPartonMatching().
|
private |
Definition at line 141 of file JetPartonMatching.cc.
References electronAnalyzer_cfi::DeltaR, and 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 bookConverter::comb, distance(), getMatchForParton(), jets, and partons.
Referenced by getSumDistances(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
std::vector< int > JetPartonMatching::getMatchesForPartons | ( | const unsigned int | comb = 0 | ) |
Definition at line 349 of file JetPartonMatching.cc.
References bookConverter::comb, getMatchForParton(), and partons.
Referenced by TtJetPartonMatch< C >::produce().
int JetPartonMatching::getMatchForParton | ( | const unsigned int | part, |
const unsigned int | comb = 0 |
||
) |
Definition at line 338 of file JetPartonMatching.cc.
References bookConverter::comb, matching, and findQualityFiles::size.
Referenced by calculate(), getDistanceForParton(), getMatchesForPartons(), print(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
inline |
Definition at line 46 of file JetPartonMatching.h.
References matching.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 47 of file JetPartonMatching.h.
References bookConverter::comb, createfilelist::int, and numberOfUnmatchedPartons.
|
inline |
Definition at line 56 of file JetPartonMatching.h.
References bookConverter::comb, and sumDeltaE.
Referenced by print().
|
inline |
Definition at line 57 of file JetPartonMatching.h.
References bookConverter::comb, and sumDeltaPt.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 58 of file JetPartonMatching.h.
References bookConverter::comb, and sumDeltaR.
Referenced by print(), and TtJetPartonMatch< C >::produce().
double JetPartonMatching::getSumDistances | ( | const unsigned int | comb = 0 | ) |
Definition at line 365 of file JetPartonMatching.cc.
References bookConverter::comb, getDistanceForParton(), and partons.
Referenced by TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
private |
Definition at line 230 of file JetPartonMatching.cc.
References mps_fire::i, jets, matching, minSumDist_recursion(), partons, and jetUpdater_cfi::sort.
Referenced by calculate().
|
private |
Definition at line 262 of file JetPartonMatching.cc.
References distance(), jets, match(), matching, maxDist_, partons, groupFilesInBlocks::reverse, edm::second(), jetUpdater_cfi::sort, and useMaxDist_.
Referenced by calculate().
|
private |
Definition at line 149 of file JetPartonMatching.cc.
References a, distance(), first, jets, match(), matching, maxDist_, partons, jetUpdater_cfi::sort, and useMaxDist_.
Referenced by calculate().
|
private |
Definition at line 306 of file JetPartonMatching.cc.
References distance(), jets, match(), matching, maxDist_, and partons.
Referenced by calculate().
|
private |
Definition at line 198 of file JetPartonMatching.cc.
References distance(), jets, match(), maxDist_, partons, and useMaxDist_.
Referenced by matchingMinSumDist().
void JetPartonMatching::print | ( | void | ) |
Definition at line 377 of file JetPartonMatching.cc.
References algorithm_, bookConverter::comb, getMatchForParton(), getNumberOfAvailableCombinations(), getSumDeltaE(), getSumDeltaPt(), getSumDeltaR(), jets, dqm-mbProfile::log, matching, maxDist_, minSumDist, partons, ptOrderedMinDist, totalMinDist, unambiguousOnly, useDeltaR_, and useMaxDist_.
Referenced by TtJetPartonMatch< C >::produce().
|
private |
Definition at line 84 of file JetPartonMatching.h.
Referenced by calculate(), and print().
|
private |
Definition at line 76 of file JetPartonMatching.h.
Referenced by calculate(), getDistanceForParton(), JetPartonMatching(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 77 of file JetPartonMatching.h.
Referenced by calculate(), getMatchForParton(), getNumberOfAvailableCombinations(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), and print().
|
private |
Definition at line 87 of file JetPartonMatching.h.
Referenced by matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 79 of file JetPartonMatching.h.
Referenced by calculate(), and getNumberOfUnmatchedPartons().
|
private |
Definition at line 75 of file JetPartonMatching.h.
Referenced by calculate(), getDistanceForParton(), getMatchesForPartons(), getSumDistances(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), and print().
|
private |
Definition at line 80 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaE().
|
private |
Definition at line 81 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaPt().
|
private |
Definition at line 82 of file JetPartonMatching.h.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 86 of file JetPartonMatching.h.
Referenced by distance(), and print().
|
private |
Definition at line 85 of file JetPartonMatching.h.
Referenced by calculate(), matchingPtOrderedMinDist(), matchingTotalMinDist(), minSumDist_recursion(), and print().