#include <RecoTauTag/TauTagTools/src/TauMVATrainer.cc>
Classes | |
struct | tauMatchingInfoHolder |
Public Types | |
typedef std::vector < tauMatchingInfoHolder > | tauMatchingInfos |
typedef std::vector< std::pair < TTree *, const PFTauDecayModeMatchMap * > > | treeToMatchTuple |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
TauMVATrainer (const edm::ParameterSet &) | |
~TauMVATrainer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Attributes | |
PFTauDiscriminantManager | discriminantManager_ |
bool | iAmSignal_ |
std::vector < tauMatchingInfoHolder > | matchingInfo_ |
std::vector< ParameterSet > | matchingSources_ |
uint32_t | maxPiZeroes_ |
uint32_t | maxTracks_ |
InputTag | mcTruthSource_ |
DiscriminantList | myDiscriminants_ |
std::map< string, TTree * > | myTrainerTrees_ |
TFile * | outputFile_ |
std::string | outputRootFileName_ |
TTree * | theTruthTree_ |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: Generates ROOT trees used to train PhysicsTools::MVAComputers
Implementation: <Notes on="" implementation>="">
Definition at line 47 of file TauMVATrainer.cc.
typedef std::vector<tauMatchingInfoHolder> TauMVATrainer::tauMatchingInfos |
Definition at line 58 of file TauMVATrainer.cc.
typedef std::vector<std::pair<TTree*, const PFTauDecayModeMatchMap*> > TauMVATrainer::treeToMatchTuple |
Definition at line 59 of file TauMVATrainer.cc.
|
explicit |
Definition at line 90 of file TauMVATrainer.cc.
References PFTauDiscriminants::PFTauDiscriminantManager::addDiscriminant(), TauMVATrainer::tauMatchingInfoHolder::associatedTTree, PFTauDiscriminants::DiscriminantList::begin(), PFTauDiscriminants::PFTauDiscriminantManager::branchTree(), TauMVATrainer::tauMatchingInfoHolder::decayModeToRecoTauAssociationTag, discriminantManager_, PFTauDiscriminants::DiscriminantList::end(), iAmSignal_, diffTwoXMLs::label, edm::InputTag::label(), matchingInfo_, matchingSources_, myDiscriminants_, myTrainerTrees_, outputFile_, outputRootFileName_, PFTauDiscriminants::PFTauDiscriminantManager::setSignalFlag(), theTruthTree_, and TauMVATrainer::tauMatchingInfoHolder::truthToRecoTauMatchingTag.
TauMVATrainer::~TauMVATrainer | ( | ) |
Definition at line 143 of file TauMVATrainer.cc.
|
virtual |
Implements edm::EDAnalyzer.
Definition at line 150 of file TauMVATrainer.cc.
References abs, DeDxDiscriminatorTools::charge(), reco::LeafCandidate::charge(), reco::PFTauDecayMode::chargedPions(), discriminantManager_, edm::Event::getByLabel(), edm::Ref< C, T, F >::isNonnull(), matchingInfo_, maxPiZeroes_, maxTracks_, mcTruthSource_, reco::PFTauDecayMode::neutralPions(), reco::CompositeCandidate::numberOfDaughters(), reco::PFTauDecayMode::pfTauRef(), L1Trigger_dataformats::reco, PFTauDiscriminants::PFTauDiscriminantManager::setEvent(), PFTauDiscriminants::PFTauDiscriminantManager::setNullResult(), PFTauDiscriminants::PFTauDiscriminantManager::setTau(), and theTruthTree_.
|
virtual |
|
virtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 233 of file TauMVATrainer.cc.
References myTrainerTrees_, and outputFile_.
|
private |
Definition at line 81 of file TauMVATrainer.cc.
Referenced by analyze(), and TauMVATrainer().
|
private |
Definition at line 73 of file TauMVATrainer.cc.
Referenced by TauMVATrainer().
|
private |
Definition at line 72 of file TauMVATrainer.cc.
Referenced by analyze(), and TauMVATrainer().
|
private |
Definition at line 71 of file TauMVATrainer.cc.
Referenced by TauMVATrainer().
|
private |
Definition at line 76 of file TauMVATrainer.cc.
Referenced by analyze().
|
private |
Definition at line 75 of file TauMVATrainer.cc.
Referenced by analyze().
|
private |
Definition at line 69 of file TauMVATrainer.cc.
Referenced by analyze().
|
private |
Definition at line 83 of file TauMVATrainer.cc.
Referenced by TauMVATrainer().
|
private |
Definition at line 79 of file TauMVATrainer.cc.
Referenced by endJob(), and TauMVATrainer().
|
private |
Definition at line 82 of file TauMVATrainer.cc.
Referenced by endJob(), and TauMVATrainer().
|
private |
Definition at line 78 of file TauMVATrainer.cc.
Referenced by TauMVATrainer().
|
private |
Definition at line 80 of file TauMVATrainer.cc.
Referenced by analyze(), and TauMVATrainer().