Classes | |
struct | gammaMatchContainer |
Public Types | |
typedef std::list < CompositeCandidate > | compCandList |
typedef std::list < CompositeCandidate > ::reverse_iterator | compCandRevIter |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Member Functions | |
void | mergePiZeroes (compCandList &, compCandRevIter) |
void | mergePiZeroesByBestMatch (compCandList &) |
PFRecoTauDecayModeDeterminator (const edm::ParameterSet &iConfig) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
~PFRecoTauDecayModeDeterminator () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Static Protected Member Functions | |
static bool | gammaMatchSorter (const gammaMatchContainer &first, const gammaMatchContainer &second) |
Protected Attributes | |
const double | chargedPionMass |
const double | neutralPionMass |
Private Attributes | |
AddFourMomenta | addP4 |
TauTagTools::sortByAscendingPt < CompositeCandidate > | candAscendingSorter |
TauTagTools::sortByDescendingPt < CompositeCandidate > | candDescendingSorter |
bool | filterPhotons_ |
bool | filterTwoProngs_ |
uint32_t | maxPhotonsToMerge_ |
double | maxPiZeroMass_ |
bool | mergeByBestMatch_ |
bool | mergeLowPtPhotonsFirst_ |
double | minPtFractionForSecondProng_ |
double | minPtFractionPiZeroes_ |
double | minPtFractionSinglePhotons_ |
edm::InputTag | PFTauProducer_ |
bool | refitTracks_ |
bool | setChargedPionMass_ |
bool | setMergedPi0Mass_ |
bool | setPi0Mass_ |
PFCandCommonVertexFitterBase * | vertexFitter_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Definition at line 44 of file PFRecoTauDecayModeDeterminator.cc.
Definition at line 47 of file PFRecoTauDecayModeDeterminator.cc.
typedef std::list<CompositeCandidate>::reverse_iterator PFRecoTauDecayModeDeterminator::compCandRevIter |
Definition at line 48 of file PFRecoTauDecayModeDeterminator.cc.
|
explicit |
Definition at line 90 of file PFRecoTauDecayModeDeterminator.cc.
References filterPhotons_, filterTwoProngs_, edm::ParameterSet::getParameter(), maxPhotonsToMerge_, maxPiZeroMass_, mergeByBestMatch_, mergeLowPtPhotonsFirst_, minPtFractionForSecondProng_, minPtFractionPiZeroes_, minPtFractionSinglePhotons_, PFTauProducer_, refitTracks_, setChargedPionMass_, setMergedPi0Mass_, setPi0Mass_, and vertexFitter_.
PFRecoTauDecayModeDeterminator::~PFRecoTauDecayModeDeterminator | ( | ) |
Definition at line 110 of file PFRecoTauDecayModeDeterminator.cc.
|
staticprotected |
Definition at line 172 of file PFRecoTauDecayModeDeterminator.cc.
References PFRecoTauDecayModeDeterminator::gammaMatchContainer::matchQuality.
Referenced by mergePiZeroesByBestMatch().
void PFRecoTauDecayModeDeterminator::mergePiZeroes | ( | compCandList & | input, |
compCandRevIter | seed | ||
) |
Definition at line 121 of file PFRecoTauDecayModeDeterminator.cc.
References abs, addP4, newFWLiteAna::base, reco::Candidate::daughter(), maxPhotonsToMerge_, maxPiZeroMass_, neutralPionMass, and AddFourMomenta::set().
Referenced by produce().
void PFRecoTauDecayModeDeterminator::mergePiZeroesByBestMatch | ( | compCandList & | input | ) |
Definition at line 178 of file PFRecoTauDecayModeDeterminator.cc.
References abs, addP4, PFRecoTauDecayModeDeterminator::gammaMatchContainer::firstIndex, gammaMatchSorter(), PFRecoTauDecayModeDeterminator::gammaMatchContainer::matchQuality, maxPiZeroMass_, neutralPionMass, PFRecoTauDecayModeDeterminator::gammaMatchContainer::secondIndex, AddFourMomenta::set(), and python.multivaluedict::sort().
Referenced by produce().
|
virtual |
Implements edm::EDProducer.
Definition at line 241 of file PFRecoTauDecayModeDeterminator.cc.
References reco::CompositeCandidate::addDaughter(), addP4, edm::RefVector< C, T, F >::begin(), candAscendingSorter, candDescendingSorter, chargedPionMass, reco::CompositeCandidate::daughter(), edm::RefVector< C, T, F >::end(), filterPhotons_, filterTwoProngs_, edm::EventSetup::get(), edm::Event::getByLabel(), mergeByBestMatch_, mergeLowPtPhotonsFirst_, mergePiZeroes(), mergePiZeroesByBestMatch(), minPtFractionForSecondProng_, minPtFractionPiZeroes_, minPtFractionSinglePhotons_, neutralPionMass, reco::CompositeCandidate::numberOfDaughters(), reco::Candidate::p4(), reco::LeafCandidate::p4(), PFTauProducer_, edm::ESHandle< class >::product(), edm::Event::put(), refitTracks_, query::result, AddFourMomenta::set(), PFCandCommonVertexFitterBase::set(), setChargedPionMass_, reco::Candidate::setMass(), reco::LeafCandidate::setMass(), setMergedPi0Mass_, reco::PFTauDecayMode::setPFTauRef(), setPi0Mass_, reco::PFTau::signalPFChargedHadrCands(), reco::PFTau::signalPFGammaCands(), edm::RefVector< C, T, F >::size(), and vertexFitter_.
|
private |
Definition at line 72 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by mergePiZeroes(), mergePiZeroesByBestMatch(), and produce().
|
private |
Definition at line 87 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by produce().
|
private |
Definition at line 86 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by produce().
|
protected |
Definition at line 58 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by produce().
|
private |
Definition at line 82 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 81 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 73 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by mergePiZeroes(), and PFRecoTauDecayModeDeterminator().
|
private |
Definition at line 74 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by mergePiZeroes(), mergePiZeroesByBestMatch(), and PFRecoTauDecayModeDeterminator().
|
private |
Definition at line 76 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 75 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 83 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 85 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 84 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
protected |
Definition at line 59 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by mergePiZeroes(), mergePiZeroesByBestMatch(), and produce().
|
private |
Definition at line 71 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 80 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 77 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 79 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 78 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().
|
private |
Definition at line 70 of file PFRecoTauDecayModeDeterminator.cc.
Referenced by PFRecoTauDecayModeDeterminator(), and produce().