#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 |
Public Member Functions | |
void | beginEvent (const edm::Event &, const edm::EventSetup &) |
double | discriminate (const PFTauRef &) |
PFTauMVADiscriminator (const edm::ParameterSet &) | |
~PFTauMVADiscriminator () | |
Public Member Functions inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator > | |
virtual double | discriminate (const TauRef &tau)=0 |
virtual void | endEvent (edm::Event &evt) |
void | produce (edm::Event &, const edm::EventSetup &) |
TauDiscriminationProducerBase (const edm::ParameterSet &iConfig) | |
TauDiscriminationProducerBase () | |
virtual | ~TauDiscriminationProducerBase () |
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 () |
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 | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Protected Attributes inherited from TauDiscriminationProducerBase< TauType, TauDiscriminator > | |
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_, 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_, and PFTauDiscriminants::PFTauDiscriminantManager::setEvent().
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().