ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EICPIDParticle Class Reference

#include <fun4all_eicdetectors/blob/master/reconstruction/eicpidbase/EICPIDParticle.h>

+ Inheritance diagram for EICPIDParticle:
+ Collaboration diagram for EICPIDParticle:

Public Types

enum  PROPERTY_TYPE { type_int = 1, type_uint = 2, type_float = 3, type_unknown = -1 }
 
enum  PROPERTY {
  Truth_PID = 0, Truth_momentum, Truth_eta, CTTL_beta = 10,
  ETTL_beta, FTTL_beta, prop_MAX_NUMBER = UCHAR_MAX
}
 

Public Member Functions

 EICPIDParticle ()
 
 ~EICPIDParticle () override
 
void identify (std::ostream &os=std::cout) const override
 
void CopyFrom (const PHObject *phobj) override
 
void Reset () override
 Clear Event.
 
virtual EICPIDDefs::keytype get_id () const
 
virtual void set_id (const EICPIDDefs::keytype)
 
virtual float get_SumLogLikelyhood (EICPIDDefs::PIDCandidate) const
 
virtual float get_LogLikelyhood (EICPIDDefs::PIDCandidate, EICPIDDefs::PIDDetector) const
 
virtual void set_LogLikelyhood (EICPIDDefs::PIDCandidate, EICPIDDefs::PIDDetector, float)
 
virtual bool has_property (const PROPERTY) const
 
virtual float get_property_float (const PROPERTY) const
 
virtual int get_property_int (const PROPERTY) const
 
virtual unsigned int get_property_uint (const PROPERTY) const
 
virtual void set_property (const PROPERTY, const float)
 
virtual void set_property (const PROPERTY, const int)
 
virtual void set_property (const PROPERTY, const unsigned int)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid () const
 isValid returns non zero if object contains vailid data
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 

Static Public Member Functions

static std::pair< const
std::string, PROPERTY_TYPE
get_property_info (PROPERTY prop_id)
 
static bool check_property (const PROPERTY prop_id, const PROPERTY_TYPE prop_type)
 
static std::string get_property_type (const PROPERTY_TYPE prop_type)
 

Static Public Attributes

static const std::map
< PROPERTY, std::pair< const
std::string,
EICPIDParticle::PROPERTY_TYPE > > 
m_propertyInfo
 

Protected Member Functions

virtual unsigned int get_property_nocheck (const PROPERTY) const
 
virtual void set_property_nocheck (const PROPERTY, const unsigned int)
 

Static Protected Attributes

static constexpr float m_minLogLikelihood = -100
 

Detailed Description

Definition at line 16 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 16 of file EICPIDParticle.h

Member Enumeration Documentation

Procedure to add a new PROPERTY tag: 1.add new tag below with unique value, 2.add a short name to EICPIDParticle::m_propertyInfo

Enumerator:
Truth_PID 
Truth_momentum 
Truth_eta 
CTTL_beta 
ETTL_beta 
FTTL_beta 
prop_MAX_NUMBER 

max limit in order to fit into 8 bit unsigned number

Definition at line 44 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 44 of file EICPIDParticle.h

Enumerator:
type_int 
type_uint 
type_float 
type_unknown 

Definition at line 33 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 33 of file EICPIDParticle.h

Constructor & Destructor Documentation

EICPIDParticle::EICPIDParticle ( )
inline

Definition at line 19 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 19 of file EICPIDParticle.h

EICPIDParticle::~EICPIDParticle ( )
inlineoverride

Definition at line 20 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 20 of file EICPIDParticle.h

Member Function Documentation

bool EICPIDParticle::check_property ( const PROPERTY  prop_id,
const PROPERTY_TYPE  prop_type 
)
static

Definition at line 69 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 69 of file EICPIDParticle.cc

void EICPIDParticle::CopyFrom ( const PHObject phobj)
overridevirtual

Reimplemented from PHObject.

Definition at line 22 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 22 of file EICPIDParticle.cc

References get_id(), get_property_nocheck(), and has_property().

+ Here is the call graph for this function:

virtual EICPIDDefs::keytype EICPIDParticle::get_id ( ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 26 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 26 of file EICPIDParticle.h

References EICPIDDefs::INVALID_KEY.

Referenced by EICPIDParticleContainer::AddPIDParticle(), and CopyFrom().

+ Here is the caller graph for this function:

virtual float EICPIDParticle::get_LogLikelyhood ( EICPIDDefs::PIDCandidate  ,
EICPIDDefs::PIDDetector   
) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 30 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 30 of file EICPIDParticle.h

References m_minLogLikelihood.

virtual float EICPIDParticle::get_property_float ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 65 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 65 of file EICPIDParticle.h

std::pair< const std::string, EICPIDParticle::PROPERTY_TYPE > EICPIDParticle::get_property_info ( PROPERTY  prop_id)
static

Definition at line 53 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 53 of file EICPIDParticle.cc

References g4zmq::exit().

+ Here is the call graph for this function:

virtual int EICPIDParticle::get_property_int ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 66 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 66 of file EICPIDParticle.h

References INT_MIN.

virtual unsigned int EICPIDParticle::get_property_nocheck ( const PROPERTY  ) const
inlineprotectedvirtual

Reimplemented in EICPIDParticlev1.

Definition at line 78 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 78 of file EICPIDParticle.h

Referenced by CopyFrom().

+ Here is the caller graph for this function:

string EICPIDParticle::get_property_type ( const PROPERTY_TYPE  prop_type)
static

Definition at line 80 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 80 of file EICPIDParticle.cc

virtual unsigned int EICPIDParticle::get_property_uint ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 67 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 67 of file EICPIDParticle.h

virtual float EICPIDParticle::get_SumLogLikelyhood ( EICPIDDefs::PIDCandidate  ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 29 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 29 of file EICPIDParticle.h

Referenced by EventEvaluatorEIC::fillOutputNtuples(), AnaTutorialECCE::getTracks(), and eIDMLInterface::getTracks().

+ Here is the caller graph for this function:

virtual bool EICPIDParticle::has_property ( const PROPERTY  ) const
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 64 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 64 of file EICPIDParticle.h

Referenced by CopyFrom().

+ Here is the caller graph for this function:

void EICPIDParticle::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Reimplemented in EICPIDParticlev1.

Definition at line 40 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 40 of file EICPIDParticle.cc

Referenced by ECCEFastPIDReco::process_event().

+ Here is the caller graph for this function:

void EICPIDParticle::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in EICPIDParticlev1.

Definition at line 46 of file EICPIDParticle.cc.

View newest version in sPHENIX GitHub at line 46 of file EICPIDParticle.cc

virtual void EICPIDParticle::set_id ( const EICPIDDefs::keytype  )
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 27 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 27 of file EICPIDParticle.h

Referenced by EICPIDParticleContainer::findOrAddPIDParticle().

+ Here is the caller graph for this function:

virtual void EICPIDParticle::set_LogLikelyhood ( EICPIDDefs::PIDCandidate  ,
EICPIDDefs::PIDDetector  ,
float   
)
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 31 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 31 of file EICPIDParticle.h

Referenced by ECCEFastPIDReco::process_event().

+ Here is the caller graph for this function:

virtual void EICPIDParticle::set_property ( const PROPERTY  ,
const float   
)
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 68 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 68 of file EICPIDParticle.h

Referenced by ECCEFastPIDReco::process_event().

+ Here is the caller graph for this function:

virtual void EICPIDParticle::set_property ( const PROPERTY  ,
const int   
)
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 69 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 69 of file EICPIDParticle.h

virtual void EICPIDParticle::set_property ( const PROPERTY  ,
const unsigned int   
)
inlinevirtual

Reimplemented in EICPIDParticlev1.

Definition at line 70 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 70 of file EICPIDParticle.h

virtual void EICPIDParticle::set_property_nocheck ( const PROPERTY  ,
const unsigned int   
)
inlineprotectedvirtual

Reimplemented in EICPIDParticlev1.

Definition at line 79 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 79 of file EICPIDParticle.h

Member Data Documentation

constexpr float EICPIDParticle::m_minLogLikelihood = -100
staticprotected

Definition at line 76 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 76 of file EICPIDParticle.h

Referenced by get_LogLikelyhood().

const std::map< EICPIDParticle::PROPERTY, std::pair< const std::string, EICPIDParticle::PROPERTY_TYPE > > EICPIDParticle::m_propertyInfo
static
Initial value:
= {
{Truth_PID, {"Truth PID", type_int}},
{Truth_momentum, {"Truth Momentum", type_float}},
{Truth_eta, {"Truth eta", type_float}},
{CTTL_beta, {"Beta on CTTL", type_float}},
{ETTL_beta, {"Beta on ETTL", type_float}},
{FTTL_beta, {"Beta on FTTL", type_float}}
}

Definition at line 62 of file EICPIDParticle.h.

View newest version in sPHENIX GitHub at line 62 of file EICPIDParticle.h


The documentation for this class was generated from the following files: