Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PidCandidate Class Reference

#include <analysis/blob/master/EICAnalysis/PidCandidate.h>

+ Inheritance diagram for PidCandidate:
+ Collaboration diagram for PidCandidate:

Public Types

enum  PROPERTY {
  evtgen_pid = 1, evtgen_ptotal = 2, evtgen_etotal = 3, evtgen_theta = 4,
  evtgen_phi = 5, evtgen_eta = 6, evtgen_charge = 7, evtgen_decay_prong = 8,
  evtgen_decay_hcharged = 9, evtgen_decay_lcharged = 10, jet_id = 101, jet_eta = 102,
  jet_phi = 103, jet_etotal = 104, jet_etrans = 105, jet_ptotal = 106,
  jet_ptrans = 107, jet_minv = 108, jet_mtrans = 109, jet_ncomp = 110,
  jet_ncomp_above_0p1 = 111, jet_ncomp_above_1 = 112, jet_ncomp_above_10 = 113, jet_ncomp_emcal = 115,
  jetshape_radius = 121, jetshape_rms = 122, jetshape_r90 = 123, jetshape_econe_r01 = 131,
  jetshape_econe_r02 = 132, jetshape_econe_r03 = 133, jetshape_econe_r04 = 134, jetshape_econe_r05 = 135,
  jetshape_emcal_radius = 161, jetshape_emcal_rms = 162, jetshape_emcal_r90 = 163, jetshape_emcal_econe_r01 = 171,
  jetshape_emcal_econe_r02 = 172, jetshape_emcal_econe_r03 = 173, jetshape_emcal_econe_r04 = 174, jetshape_emcal_econe_r05 = 175,
  tracks_count_r02 = 210, tracks_count_r04 = 211, tracks_count_R = 212, tracks_rmax_r02 = 215,
  tracks_rmax_r04 = 216, tracks_rmax_R = 217, tracks_chargesum_r02 = 220, tracks_chargesum_r04 = 221,
  tracks_chargesum_R = 222, tracks_vertex = 223, em_cluster_id = 301, em_cluster_prob = 302,
  em_cluster_posx = 303, em_cluster_posy = 304, em_cluster_posz = 305, em_cluster_e = 306,
  em_cluster_ecore = 307, em_cluster_et_iso = 308, em_cluster_theta = 309, em_cluster_phi = 310,
  em_cluster_eta = 311, em_cluster_pt = 312, em_cluster_ntower = 313, em_cluster_caloid = 314,
  em_track_id = 350, em_track_quality = 351, em_track_theta = 352, em_track_phi = 353,
  em_track_eta = 354, em_track_ptotal = 355, em_track_ptrans = 356, em_track_charge = 357,
  em_track_dca = 358, em_track_section = 359, em_track_e3x3_cemc = 360, em_track_e3x3_femc = 361,
  em_track_e3x3_eemc = 362, em_track_e3x3_ihcal = 363, em_track_e3x3_ohcal = 364, em_track_e3x3_fhcal = 365,
  em_track_e3x3_ehcal = 366, em_track_cluster_dr = 367, em_track_theta2cluster = 368, em_track_eta2cluster = 369,
  em_track_phi2cluster = 370, em_track_p2cluster = 371, em_track_x2cluster = 372, em_track_y2cluster = 373,
  em_track_z2cluster = 374, em_pid_prob_electron = 391, em_pid_prob_pion = 392, em_pid_prob_kaon = 393,
  em_pid_prob_proton = 394, em_evtgen_pid = 401, em_evtgen_ptotal = 402, em_evtgen_etotal = 403,
  em_evtgen_theta = 404, em_evtgen_phi = 405, em_evtgen_eta = 406, em_evtgen_charge = 407,
  em_evtgen_is_scattered_lepton = 408, em_reco_x_e = 410, em_reco_y_e = 411, em_reco_q2_e = 412,
  em_reco_w_e = 413, prop_MAX_NUMBER = UCHAR_MAX
}
 
enum  PROPERTY_TYPE { type_int = 1, type_uint = 2, type_float = 3, type_unknown = -1 }
 

Public Member Functions

 PidCandidate ()
 
virtual ~PidCandidate ()
 
virtual void identify (std::ostream &os=std::cout) const
 
virtual void Copy (PidCandidate const &tc)
 
virtual void Reset ()
 Clear Event.
 
virtual void print () const
 
virtual bool has_property (const PROPERTY prop_id) const
 
virtual float get_property_float (const PROPERTY prop_id) const
 
virtual int get_property_int (const PROPERTY prop_id) const
 
virtual unsigned int get_property_uint (const PROPERTY prop_id) const
 
virtual void set_property (const PROPERTY prop_id, const float value)
 
virtual void set_property (const PROPERTY prop_id, const int value)
 
virtual void set_property (const PROPERTY prop_id, const unsigned int value)
 
- 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 Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

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)
 

Protected Member Functions

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

Friends

std::ostream & operator<< (std::ostream &stream, const PidCandidate *tc)
 

Detailed Description

Definition at line 8 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 8 of file PidCandidate.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 PidCandidate::get_property_info

Enumerator:
evtgen_pid 
evtgen_ptotal 
evtgen_etotal 
evtgen_theta 
evtgen_phi 
evtgen_eta 
evtgen_charge 
evtgen_decay_prong 
evtgen_decay_hcharged 
evtgen_decay_lcharged 
jet_id 
jet_eta 
jet_phi 
jet_etotal 
jet_etrans 
jet_ptotal 
jet_ptrans 
jet_minv 
jet_mtrans 
jet_ncomp 
jet_ncomp_above_0p1 
jet_ncomp_above_1 
jet_ncomp_above_10 
jet_ncomp_emcal 
jetshape_radius 
jetshape_rms 
jetshape_r90 
jetshape_econe_r01 
jetshape_econe_r02 
jetshape_econe_r03 
jetshape_econe_r04 
jetshape_econe_r05 
jetshape_emcal_radius 
jetshape_emcal_rms 
jetshape_emcal_r90 
jetshape_emcal_econe_r01 
jetshape_emcal_econe_r02 
jetshape_emcal_econe_r03 
jetshape_emcal_econe_r04 
jetshape_emcal_econe_r05 
tracks_count_r02 
tracks_count_r04 
tracks_count_R 
tracks_rmax_r02 
tracks_rmax_r04 
tracks_rmax_R 
tracks_chargesum_r02 
tracks_chargesum_r04 
tracks_chargesum_R 
tracks_vertex 
em_cluster_id 
em_cluster_prob 
em_cluster_posx 
em_cluster_posy 
em_cluster_posz 
em_cluster_e 
em_cluster_ecore 
em_cluster_et_iso 
em_cluster_theta 
em_cluster_phi 
em_cluster_eta 
em_cluster_pt 
em_cluster_ntower 
em_cluster_caloid 
em_track_id 
em_track_quality 
em_track_theta 
em_track_phi 
em_track_eta 
em_track_ptotal 
em_track_ptrans 
em_track_charge 
em_track_dca 
em_track_section 
em_track_e3x3_cemc 
em_track_e3x3_femc 
em_track_e3x3_eemc 
em_track_e3x3_ihcal 
em_track_e3x3_ohcal 
em_track_e3x3_fhcal 
em_track_e3x3_ehcal 
em_track_cluster_dr 
em_track_theta2cluster 
em_track_eta2cluster 
em_track_phi2cluster 
em_track_p2cluster 
em_track_x2cluster 
em_track_y2cluster 
em_track_z2cluster 
em_pid_prob_electron 
em_pid_prob_pion 
em_pid_prob_kaon 
em_pid_prob_proton 
em_evtgen_pid 
em_evtgen_ptotal 
em_evtgen_etotal 
em_evtgen_theta 
em_evtgen_phi 
em_evtgen_eta 
em_evtgen_charge 
em_evtgen_is_scattered_lepton 
em_reco_x_e 
em_reco_y_e 
em_reco_q2_e 
em_reco_w_e 
prop_MAX_NUMBER 

max limit in order to fit into 8 bit unsigned number

Definition at line 27 of file PidCandidate.h.

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

Enumerator:
type_int 
type_uint 
type_float 
type_unknown 

Definition at line 162 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 162 of file PidCandidate.h

Constructor & Destructor Documentation

PidCandidate::PidCandidate ( )
inline

Definition at line 11 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 11 of file PidCandidate.h

virtual PidCandidate::~PidCandidate ( )
inlinevirtual

Definition at line 12 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 12 of file PidCandidate.h

Member Function Documentation

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

Definition at line 390 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 390 of file PidCandidate.C

virtual void PidCandidate::Copy ( PidCandidate const &  tc)
virtual
virtual float PidCandidate::get_property_float ( const PROPERTY  prop_id) const
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 171 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 171 of file PidCandidate.h

Referenced by LeptoquarksReco::AddGlobalEventInformation(), and DISKinematicsReco::AddReconstructedKinematics().

+ Here is the caller graph for this function:

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

Definition at line 44 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 44 of file PidCandidate.C

References type_float, type_int, and type_uint.

Referenced by LeptoquarksReco::Init(), DISKinematicsReco::Init(), DISKinematicsReco::WriteCandidatesToTree(), and LeptoquarksReco::WritePidCandidatesToTree().

+ Here is the caller graph for this function:

virtual int PidCandidate::get_property_int ( const PROPERTY  prop_id) const
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 172 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 172 of file PidCandidate.h

Referenced by LeptoquarksReco::AddGlobalEventInformation(), and LeptoquarksReco::AddTrueTauTag().

+ Here is the caller graph for this function:

virtual unsigned int PidCandidate::get_property_nocheck ( const PROPERTY  prop_id) const
inlineprotectedvirtual

Reimplemented in PidCandidatev1.

Definition at line 182 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 182 of file PidCandidate.h

string PidCandidate::get_property_type ( const PROPERTY_TYPE  prop_type)
static

Definition at line 402 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 402 of file PidCandidate.C

virtual unsigned int PidCandidate::get_property_uint ( const PROPERTY  prop_id) const
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 173 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 173 of file PidCandidate.h

virtual bool PidCandidate::has_property ( const PROPERTY  prop_id) const
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 170 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 170 of file PidCandidate.h

void PidCandidate::identify ( std::ostream &  os = std::cout) const
virtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Reimplemented in PidCandidatev1.

Definition at line 24 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 24 of file PidCandidate.C

virtual void PidCandidate::print ( ) const
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 22 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 22 of file PidCandidate.h

void PidCandidate::Reset ( )
virtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in PidCandidatev1.

Definition at line 36 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 36 of file PidCandidate.C

virtual void PidCandidate::set_property ( const PROPERTY  prop_id,
const float  value 
)
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 174 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 174 of file PidCandidate.h

Referenced by DISKinematicsReco::AddReconstructedKinematics(), and LeptoquarksReco::AddTrueTauTag().

+ Here is the caller graph for this function:

virtual void PidCandidate::set_property ( const PROPERTY  prop_id,
const int  value 
)
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 175 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 175 of file PidCandidate.h

virtual void PidCandidate::set_property ( const PROPERTY  prop_id,
const unsigned int  value 
)
inlinevirtual

Reimplemented in PidCandidatev1.

Definition at line 176 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 176 of file PidCandidate.h

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

Reimplemented in PidCandidatev1.

Definition at line 183 of file PidCandidate.h.

View newest version in sPHENIX GitHub at line 183 of file PidCandidate.h

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const PidCandidate tc 
)
friend

Definition at line 30 of file PidCandidate.C.

View newest version in sPHENIX GitHub at line 30 of file PidCandidate.C


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