CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
PFTauDiscriminants::DecayMode Class Reference

#include <Discriminants.h>

Inheritance diagram for PFTauDiscriminants::DecayMode:
PFTauDiscriminants::DiscriminantBase< int > PFTauDiscriminants::Discriminant

Public Member Functions

 DecayMode ()
 
 ~DecayMode ()
 
- Public Member Functions inherited from PFTauDiscriminants::DiscriminantBase< int >
void branchTree (TTree *theTree)
 add a branch to a ttree corresponding to this variable More...
 
void compute (PFTauDiscriminantManager *input)
 
 DiscriminantBase (std::string name, std::string rootTypeName, bool branchAsSimpleDataType, bool isMultiple, intdefaultValue)
 
void fillMVA (std::vector< PhysicsTools::Variable::Value > &mvaHolder) const
 
virtual void setNullResult (PFTauDiscriminantManager *input)
 
virtual ~DiscriminantBase ()
 
- Public Member Functions inherited from PFTauDiscriminants::Discriminant
 Discriminant (std::string name, std::string rootTypeName, bool branchAsSimpleDataType)
 
std::string name () const
 
std::string rootTypeName () const
 
PhysicsTools::AtomicId theAtomicId () const
 
virtual ~Discriminant ()
 

Protected Member Functions

void doComputation (PFTauDiscriminantManager *input, std::vector< int > &result)
 
- Protected Member Functions inherited from PFTauDiscriminants::Discriminant
bool branchSimply () const
 determines whether or not to use simple struct like branching or custom class branching (e.g. TLorentzVector) More...
 

Additional Inherited Members

- Public Types inherited from PFTauDiscriminants::DiscriminantBase< int >
typedef std::vector< int >
::const_iterator 
myVectorIterator
 

Detailed Description

Definition at line 36 of file Discriminants.h.

Constructor & Destructor Documentation

PFTauDiscriminants::DecayMode::DecayMode ( )
inline

Definition at line 38 of file Discriminants.h.

38 :DiscriminantBase<int>("DecayMode", "I", true, false, -1){};
PFTauDiscriminants::DecayMode::~DecayMode ( )
inline

Definition at line 39 of file Discriminants.h.

39 {};

Member Function Documentation

void PFTauDiscriminants::DecayMode::doComputation ( PFTauDiscriminantManager input,
std::vector< int > &  result 
)
protectedvirtual

Implements PFTauDiscriminants::DiscriminantBase< int >.

Definition at line 9 of file Discriminants.cc.

References PFTauDiscriminants::PFTauDiscriminantManager::getDecayMode(), and reco::PFTauDecayMode::getDecayMode().

10 {
11  // convert to int for TTree
12  result.push_back(static_cast<int>(input->getDecayMode()->getDecayMode()));
13 }
tuple result
Definition: query.py:137