#include <RecoTauTag/RecoTau/plugins/PFTauMVADiscriminator.cc>
Classes | |
struct | MVAComputerFromDB |
Public Types | |
typedef std::map< int, MVAList::iterator > | DecayModeToMVAMap |
typedef std::vector < MVAComputerFromDB > | MVAList |
Public Types inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator > | |
typedef std::vector< TauType > | TauCollection |
typedef edm::Ref< TauCollection > | TauRef |
typedef edm::RefProd < TauCollection > | TauRefProd |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Private Attributes | |
bool | applyCut_ |
DecayModeToMVAMap | computerMap_ |
MVAList | computers_ |
std::string | dbLabel_ |
PFTauDiscriminantManager | discriminantManager_ |
std::vector < PhysicsTools::Variable::Value > | mvaComputerInput_ |
DiscriminantList | myDiscriminants_ |
edm::Handle < PFTauDecayModeAssociation > | pfTauDecayModes |
edm::InputTag | pfTauDecayModeSrc_ |
bool | remapOutput_ |
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 | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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) |
Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator > | |
std::string | moduleLabel_ |
double | prediscriminantFailValue_ |
edm::InputTag | TauProducer_ |
Description: Produces a PFTauDiscriminator mapping MVA outputs to PFTau objects Requires an AssociationVector of PFTauDecayModes->PFTau objects See RecoTauTag/RecoTau/src/PFTauDecayModeDeterminator.cc
Definition at line 41 of file PFTauMVADiscriminator.cc.
typedef std::map<int, MVAList::iterator> PFTauMVADiscriminator::DecayModeToMVAMap |
Definition at line 53 of file PFTauMVADiscriminator.cc.
typedef std::vector<MVAComputerFromDB> PFTauMVADiscriminator::MVAList |
Definition at line 52 of file PFTauMVADiscriminator.cc.
|
explicit |
Definition at line 74 of file PFTauMVADiscriminator.cc.
References PFTauDiscriminants::PFTauDiscriminantManager::addDiscriminant(), applyCut_, PFTauDiscriminants::DiscriminantList::begin(), PFTauMVADiscriminator::MVAComputerFromDB::computer, computerMap_, PFTauMVADiscriminator::MVAComputerFromDB::computerName, computers_, dbLabel_, discriminantManager_, PFTauDiscriminants::DiscriminantList::end(), edm::hlt::Exception, edm::ParameterSet::getParameter(), myDiscriminants_, pfTauDecayModeSrc_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_, remapOutput_, AlCaHLTBitMon_QueryRunRegistry::string, and PFTauMVADiscriminator::MVAComputerFromDB::userCut.
PFTauMVADiscriminator::~PFTauMVADiscriminator | ( | ) |
Definition at line 121 of file PFTauMVADiscriminator.cc.
References computers_.
|
virtual |
Reimplemented from TauDiscriminationProducerBase< TauType, TauDiscriminator >.
Definition at line 130 of file PFTauMVADiscriminator.cc.
References computers_, dbLabel_, discriminantManager_, edm::Event::getByLabel(), pfTauDecayModes, pfTauDecayModeSrc_, PFTauDiscriminants::PFTauDiscriminantManager::setEvent(), and AlCaHLTBitMon_QueryRunRegistry::string.
double PFTauMVADiscriminator::discriminate | ( | const PFTauRef & | pfTau | ) |
Definition at line 149 of file PFTauMVADiscriminator.cc.
References applyCut_, PFTauDiscriminants::PFTauDiscriminantManager::buildMVAComputerLink(), computerMap_, discriminantManager_, reco::PFTauDecayMode::getDecayMode(), mvaComputerInput_, TauDiscriminationProducerBase< TauType, TauDiscriminator >::prediscriminantFailValue_, remapOutput_, query::result, and PFTauDiscriminants::PFTauDiscriminantManager::setTau().
|
private |
Definition at line 61 of file PFTauMVADiscriminator.cc.
Referenced by discriminate(), and PFTauMVADiscriminator().
|
private |
Definition at line 63 of file PFTauMVADiscriminator.cc.
Referenced by discriminate(), and PFTauMVADiscriminator().
|
private |
Definition at line 64 of file PFTauMVADiscriminator.cc.
Referenced by beginEvent(), PFTauMVADiscriminator(), and ~PFTauMVADiscriminator().
|
private |
Definition at line 65 of file PFTauMVADiscriminator.cc.
Referenced by beginEvent(), and PFTauMVADiscriminator().
|
private |
Definition at line 67 of file PFTauMVADiscriminator.cc.
Referenced by beginEvent(), discriminate(), and PFTauMVADiscriminator().
|
private |
Definition at line 71 of file PFTauMVADiscriminator.cc.
Referenced by discriminate().
|
private |
Definition at line 66 of file PFTauMVADiscriminator.cc.
Referenced by PFTauMVADiscriminator().
|
private |
Definition at line 69 of file PFTauMVADiscriminator.cc.
Referenced by beginEvent().
|
private |
Definition at line 59 of file PFTauMVADiscriminator.cc.
Referenced by beginEvent(), and PFTauMVADiscriminator().
|
private |
Definition at line 60 of file PFTauMVADiscriminator.cc.
Referenced by discriminate(), and PFTauMVADiscriminator().