#include <PFTauDiscriminantBase.h>
Public Member Functions | |
virtual void | branchTree (TTree *theTree)=0 |
add a branch to a ttree corresponding to this variable | |
virtual void | compute (PFTauDiscriminantManager *input)=0 |
Discriminant (std::string name, std::string rootTypeName, bool branchAsSimpleDataType) | |
virtual void | fillMVA (std::vector< PhysicsTools::Variable::Value > &mvaHolder) const =0 |
std::string | name () const |
std::string | rootTypeName () const |
virtual void | setNullResult (PFTauDiscriminantManager *input)=0 |
PhysicsTools::AtomicId | theAtomicId () const |
virtual | ~Discriminant () |
Protected Member Functions | |
bool | branchSimply () const |
determines whether or not to use simple struct like branching or custom class branching (e.g. TLorentzVector) | |
Private Attributes | |
bool | branchAsSimpleDataType_ |
PhysicsTools::AtomicId | discriminantName_ |
std::string | rootTypeName_ |
Definition at line 40 of file PFTauDiscriminantBase.h.
PFTauDiscriminants::Discriminant::Discriminant | ( | std::string | name, |
std::string | rootTypeName, | ||
bool | branchAsSimpleDataType | ||
) | [inline, explicit] |
Definition at line 42 of file PFTauDiscriminantBase.h.
: discriminantName_(PhysicsTools::AtomicId(name)), rootTypeName_(rootTypeName), branchAsSimpleDataType_(branchAsSimpleDataType) {};
virtual PFTauDiscriminants::Discriminant::~Discriminant | ( | ) | [inline, virtual] |
Definition at line 47 of file PFTauDiscriminantBase.h.
{};
bool PFTauDiscriminants::Discriminant::branchSimply | ( | ) | const [inline, protected] |
determines whether or not to use simple struct like branching or custom class branching (e.g. TLorentzVector)
Definition at line 60 of file PFTauDiscriminantBase.h.
References branchAsSimpleDataType_.
Referenced by PFTauDiscriminants::DiscriminantBase< int >::branchTree().
{ return branchAsSimpleDataType_; }
virtual void PFTauDiscriminants::Discriminant::branchTree | ( | TTree * | theTree | ) | [pure virtual] |
add a branch to a ttree corresponding to this variable
Implemented in PFTauDiscriminants::DiscriminantBase< T >, PFTauDiscriminants::DiscriminantBase< double >, and PFTauDiscriminants::DiscriminantBase< int >.
Referenced by PFTauDiscriminants::PFTauDiscriminantManager::branchTree().
virtual void PFTauDiscriminants::Discriminant::compute | ( | PFTauDiscriminantManager * | input | ) | [pure virtual] |
virtual void PFTauDiscriminants::Discriminant::fillMVA | ( | std::vector< PhysicsTools::Variable::Value > & | mvaHolder | ) | const [pure virtual] |
std::string PFTauDiscriminants::Discriminant::name | ( | ) | const [inline] |
Definition at line 50 of file PFTauDiscriminantBase.h.
References discriminantName_.
Referenced by PFTauDiscriminants::PFTauDiscriminantManager::addDiscriminant(), PFTauDiscriminants::PFTauDiscriminantManager::branchTree(), and PFTauDiscriminants::DiscriminantBase< int >::branchTree().
{return discriminantName_;}
std::string PFTauDiscriminants::Discriminant::rootTypeName | ( | ) | const [inline] |
Definition at line 52 of file PFTauDiscriminantBase.h.
References rootTypeName_.
Referenced by PFTauDiscriminants::DiscriminantBase< int >::branchTree().
{return rootTypeName_;}
virtual void PFTauDiscriminants::Discriminant::setNullResult | ( | PFTauDiscriminantManager * | input | ) | [pure virtual] |
PhysicsTools::AtomicId PFTauDiscriminants::Discriminant::theAtomicId | ( | ) | const [inline] |
Definition at line 51 of file PFTauDiscriminantBase.h.
References discriminantName_.
Referenced by PFTauDiscriminants::DiscriminantBase< int >::fillMVA().
{return discriminantName_;}
bool PFTauDiscriminants::Discriminant::branchAsSimpleDataType_ [private] |
Definition at line 65 of file PFTauDiscriminantBase.h.
Referenced by branchSimply().
Definition at line 63 of file PFTauDiscriminantBase.h.
Referenced by name(), and theAtomicId().
std::string PFTauDiscriminants::Discriminant::rootTypeName_ [private] |
Definition at line 64 of file PFTauDiscriminantBase.h.
Referenced by rootTypeName().