#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(), mps_fire::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(), mps_fire::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(), mps_fire::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_, distance(), plotBeamSpotDB::first, getMatchForParton(), mps_fire::i, jets, match(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist, numberOfUnmatchedPartons, p4, partons, common_cff::pdgId, EnergyCorrector::pt, ptOrderedMinDist, edm::second(), jetUpdater_cfi::sort, sumDeltaE, sumDeltaPt, sumDeltaR, TtFullHadEvtBuilder_cfi::sumDR, totalMinDist, unambiguousOnly, and useMaxDist_.
Referenced by getSumDeltaR(), and JetPartonMatching().
|
private |
Definition at line 133 of file JetPartonMatching.cc.
References HiRegitMuonDetachedTripletStep_cff::DeltaR, and useDeltaR_.
Referenced by calculate(), getDistanceForParton(), getSumDeltaR(), 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 getNumberOfUnmatchedPartons(), 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 getNumberOfUnmatchedPartons(), and TtJetPartonMatch< C >::produce().
int JetPartonMatching::getMatchForParton | ( | const unsigned int | part, |
const unsigned int | comb = 0 |
||
) |
Definition at line 336 of file JetPartonMatching.cc.
References findQualityFiles::size.
Referenced by calculate(), getDistanceForParton(), getMatchesForPartons(), getNumberOfUnmatchedPartons(), print(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
inline |
Definition at line 31 of file JetPartonMatching.h.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 32 of file JetPartonMatching.h.
References getDistanceForParton(), getMatchesForPartons(), getMatchForParton(), getSumDistances(), createfilelist::int, and numberOfUnmatchedPartons.
|
inline |
Definition at line 39 of file JetPartonMatching.h.
References findQualityFiles::size, and sumDeltaE.
Referenced by print().
|
inline |
Definition at line 40 of file JetPartonMatching.h.
References sumDeltaPt.
Referenced by print(), and TtJetPartonMatch< C >::produce().
|
inline |
Definition at line 41 of file JetPartonMatching.h.
References calculate(), distance(), matchingMinSumDist(), matchingPtOrderedMinDist(), matchingTotalMinDist(), matchingUnambiguousOnly(), minSumDist_recursion(), print(), 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 getNumberOfUnmatchedPartons(), TtSemiEvtSolutionMaker::produce(), and TtHadEvtSolutionMaker::produce().
|
private |
Definition at line 221 of file JetPartonMatching.cc.
References mps_fire::i, jets, minSumDist_recursion(), partons, and jetUpdater_cfi::sort.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 256 of file JetPartonMatching.cc.
References distance(), jets, match(), maxDist_, p4, partons, groupFilesInBlocks::reverse, edm::second(), jetUpdater_cfi::sort, and useMaxDist_.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 142 of file JetPartonMatching.cc.
References a, distance(), plotBeamSpotDB::first, jets, match(), maxDist_, p4, partons, jetUpdater_cfi::sort, and useMaxDist_.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 302 of file JetPartonMatching.cc.
References distance(), jets, match(), maxDist_, p4, and partons.
Referenced by calculate(), and getSumDeltaR().
|
private |
Definition at line 192 of file JetPartonMatching.cc.
References distance(), jets, match(), maxDist_, p4, partons, and useMaxDist_.
Referenced by getSumDeltaR(), and matchingMinSumDist().
void JetPartonMatching::print | ( | void | ) |
Definition at line 379 of file JetPartonMatching.cc.
References algorithm_, getMatchForParton(), getNumberOfAvailableCombinations(), getSumDeltaE(), getSumDeltaPt(), getSumDeltaR(), jets, cmsBatch::log, maxDist_, minSumDist, partons, ptOrderedMinDist, totalMinDist, unambiguousOnly, useDeltaR_, and useMaxDist_.
Referenced by getSumDeltaR(), and 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.
|
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().