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

#include <fun4all_eic_qa/blob/master/source/EvalRootTTree.h>

+ Inheritance diagram for EvalRootTTree:
+ Collaboration diagram for EvalRootTTree:

Public Member Functions

 EvalRootTTree ()
 
virtual ~EvalRootTTree ()
 
void Reset ()
 Clear Event.
 
EvalHitAddHit (const PHG4Hit *g4hit)
 
EvalTowerAddTower (const RawTower *twr)
 
EvalClusterAddCluster (const RawCluster *clus)
 
void set_event_number (const int i)
 
int get_event_number () const
 
void set_gpid (const int i)
 
int get_gpid () const
 
void set_gvx (const double v)
 
double get_gvx () const
 
void set_gvy (const double v)
 
double get_gvy () const
 
void set_gvz (const double v)
 
double get_gvz () const
 
void set_gpx (const double p)
 
double get_gpx () const
 
void set_gpy (const double p)
 
double get_gpy () const
 
void set_gpz (const double p)
 
double get_gpz () const
 
void set_ge (const double p)
 
double get_ge () const
 
void set_geta (const double d)
 
double get_geta () const
 
void set_gphi (const double d)
 
double get_gphi () const
 
void set_gtheta (const double d)
 
double get_gtheta () const
 
void set_nhits (const int n)
 
int get_nhits () const
 
void set_hesum (const double d)
 
double get_hesum () const
 
EvalHitget_hit (const size_t i) const
 
void set_ntowers (const int n)
 
int get_ntowers () const
 
void set_tesum (const double d)
 
double get_tesum () const
 
EvalTowerget_tower (const size_t i) const
 
void set_nclusters (const int n)
 
int get_nclusters () const
 
void set_cesum (const double d)
 
double get_cesum () const
 
EvalClusterget_cluster (const size_t i) const
 
- 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 void identify (std::ostream &os=std::cout) const
 
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 *)
 
virtual void CopyFrom (const PHObject *obj)
 

Private Attributes

TClonesArray * SnglHits = nullptr
 
TClonesArray * SnglTowers = nullptr
 
TClonesArray * SnglClusters = nullptr
 
int event = 0
 
int gpid = -99999
 
int nhits = 0
 
int ntowers = 0
 
int nclusters = 0
 
double hesum = 0.
 
double tesum = 0.
 
double cesum = 0.
 
double gvx = NAN
 
double gvy = NAN
 
double gvz = NAN
 
double gpx = NAN
 
double gpy = NAN
 
double ge = NAN
 
double gpz = NAN
 
double geta = NAN
 
double gphi = NAN
 
double gtheta = NAN
 

Detailed Description

Definition at line 16 of file EvalRootTTree.h.

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

Constructor & Destructor Documentation

EvalRootTTree::EvalRootTTree ( )

Definition at line 18 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 18 of file EvalRootTTree.cc

References NCLU, NHIT, NTWR, SnglClusters, SnglHits, and SnglTowers.

EvalRootTTree::~EvalRootTTree ( )
virtual

Definition at line 25 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 25 of file EvalRootTTree.cc

References SnglClusters, SnglHits, and SnglTowers.

Member Function Documentation

EvalCluster * EvalRootTTree::AddCluster ( const RawCluster clus)

Definition at line 112 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 112 of file EvalRootTTree.cc

References NCLU, and SnglClusters.

EvalHit * EvalRootTTree::AddHit ( const PHG4Hit g4hit)

Definition at line 74 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 74 of file EvalRootTTree.cc

References NHIT, and SnglHits.

EvalTower * EvalRootTTree::AddTower ( const RawTower twr)

Definition at line 93 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 93 of file EvalRootTTree.cc

References NTWR, and SnglTowers.

double EvalRootTTree::get_cesum ( ) const
inline

Definition at line 81 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 81 of file EvalRootTTree.h

References cesum.

EvalCluster * EvalRootTTree::get_cluster ( const size_t  i) const

Definition at line 125 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 125 of file EvalRootTTree.cc

References SnglClusters.

Referenced by LoopEval().

+ Here is the caller graph for this function:

int EvalRootTTree::get_event_number ( ) const
inline

Definition at line 28 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 28 of file EvalRootTTree.h

References event.

double EvalRootTTree::get_ge ( ) const
inline

Definition at line 52 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 52 of file EvalRootTTree.h

References ge.

Referenced by LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

double EvalRootTTree::get_geta ( ) const
inline

Definition at line 55 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 55 of file EvalRootTTree.h

References geta.

Referenced by LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

double EvalRootTTree::get_gphi ( ) const
inline

Definition at line 58 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 58 of file EvalRootTTree.h

References gphi.

Referenced by LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

int EvalRootTTree::get_gpid ( ) const
inline

Definition at line 31 of file EvalRootTTree.h.

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

References gpid.

double EvalRootTTree::get_gpx ( ) const
inline

Definition at line 43 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 43 of file EvalRootTTree.h

References gpx.

double EvalRootTTree::get_gpy ( ) const
inline

Definition at line 46 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 46 of file EvalRootTTree.h

References gpy.

double EvalRootTTree::get_gpz ( ) const
inline

Definition at line 49 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 49 of file EvalRootTTree.h

References gpz.

double EvalRootTTree::get_gtheta ( ) const
inline

Definition at line 61 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 61 of file EvalRootTTree.h

References gtheta.

Referenced by LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

double EvalRootTTree::get_gvx ( ) const
inline

Definition at line 34 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 34 of file EvalRootTTree.h

References gvx.

double EvalRootTTree::get_gvy ( ) const
inline

Definition at line 37 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 37 of file EvalRootTTree.h

References gvy.

double EvalRootTTree::get_gvz ( ) const
inline

Definition at line 40 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 40 of file EvalRootTTree.h

References gvz.

double EvalRootTTree::get_hesum ( ) const
inline

Definition at line 67 of file EvalRootTTree.h.

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

References hesum.

EvalHit * EvalRootTTree::get_hit ( const size_t  i) const

Definition at line 87 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 87 of file EvalRootTTree.cc

References SnglHits.

Referenced by LoopEval().

+ Here is the caller graph for this function:

int EvalRootTTree::get_nclusters ( ) const
inline

Definition at line 79 of file EvalRootTTree.h.

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

References nclusters.

Referenced by LoopEval().

+ Here is the caller graph for this function:

int EvalRootTTree::get_nhits ( ) const
inline

Definition at line 65 of file EvalRootTTree.h.

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

References nhits.

Referenced by LoopEval().

+ Here is the caller graph for this function:

int EvalRootTTree::get_ntowers ( ) const
inline

Definition at line 72 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 72 of file EvalRootTTree.h

References ntowers.

Referenced by LoopEval(), LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

double EvalRootTTree::get_tesum ( ) const
inline

Definition at line 74 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 74 of file EvalRootTTree.h

References tesum.

EvalTower * EvalRootTTree::get_tower ( const size_t  i) const

Definition at line 106 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 106 of file EvalRootTTree.cc

References SnglTowers.

Referenced by LoopEval(), LoopEvalFR(), LoopEvalHR(), and LoopEvalPortableCircularCut().

+ Here is the caller graph for this function:

void EvalRootTTree::Reset ( )
virtual

Clear Event.

Reimplemented from PHObject.

Definition at line 35 of file EvalRootTTree.cc.

View newest version in sPHENIX GitHub at line 35 of file EvalRootTTree.cc

References cesum, ge, geta, gphi, gpid, gpx, gpy, gpz, gtheta, gvx, gvy, gvz, hesum, nclusters, NHIT, nhits, ntowers, NTWR, SnglClusters, SnglHits, SnglTowers, and tesum.

void EvalRootTTree::set_cesum ( const double  d)
inline

Definition at line 80 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 80 of file EvalRootTTree.h

References cesum, and d.

void EvalRootTTree::set_event_number ( const int  i)
inline

Definition at line 27 of file EvalRootTTree.h.

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

void EvalRootTTree::set_ge ( const double  p)
inline

Definition at line 51 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 51 of file EvalRootTTree.h

References ge, and p.

void EvalRootTTree::set_geta ( const double  d)
inline

Definition at line 54 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 54 of file EvalRootTTree.h

References d, and geta.

void EvalRootTTree::set_gphi ( const double  d)
inline

Definition at line 57 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 57 of file EvalRootTTree.h

References d, and gphi.

void EvalRootTTree::set_gpid ( const int  i)
inline

Definition at line 30 of file EvalRootTTree.h.

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

References gpid.

void EvalRootTTree::set_gpx ( const double  p)
inline

Definition at line 42 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 42 of file EvalRootTTree.h

References gpx, and p.

void EvalRootTTree::set_gpy ( const double  p)
inline

Definition at line 45 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 45 of file EvalRootTTree.h

References gpy, and p.

void EvalRootTTree::set_gpz ( const double  p)
inline

Definition at line 48 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 48 of file EvalRootTTree.h

References gpz, and p.

void EvalRootTTree::set_gtheta ( const double  d)
inline

Definition at line 60 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 60 of file EvalRootTTree.h

References d, and gtheta.

void EvalRootTTree::set_gvx ( const double  v)
inline

Definition at line 33 of file EvalRootTTree.h.

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

References gvx, and v.

void EvalRootTTree::set_gvy ( const double  v)
inline

Definition at line 36 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 36 of file EvalRootTTree.h

References gvy, and v.

void EvalRootTTree::set_gvz ( const double  v)
inline

Definition at line 39 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 39 of file EvalRootTTree.h

References gvz, and v.

void EvalRootTTree::set_hesum ( const double  d)
inline

Definition at line 66 of file EvalRootTTree.h.

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

References d, and hesum.

void EvalRootTTree::set_nclusters ( const int  n)
inline

Definition at line 78 of file EvalRootTTree.h.

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

References n, and nclusters.

void EvalRootTTree::set_nhits ( const int  n)
inline

Definition at line 64 of file EvalRootTTree.h.

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

References n, and nhits.

void EvalRootTTree::set_ntowers ( const int  n)
inline

Definition at line 71 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 71 of file EvalRootTTree.h

References n, and ntowers.

void EvalRootTTree::set_tesum ( const double  d)
inline

Definition at line 73 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 73 of file EvalRootTTree.h

References d, and tesum.

Member Data Documentation

double EvalRootTTree::cesum = 0.
private

Definition at line 97 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 97 of file EvalRootTTree.h

Referenced by get_cesum(), Reset(), and set_cesum().

int EvalRootTTree::event = 0
private

Definition at line 90 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 90 of file EvalRootTTree.h

Referenced by get_event_number().

double EvalRootTTree::ge = NAN
private

Definition at line 103 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 103 of file EvalRootTTree.h

Referenced by get_ge(), Reset(), and set_ge().

double EvalRootTTree::geta = NAN
private

Definition at line 105 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 105 of file EvalRootTTree.h

Referenced by get_geta(), Reset(), and set_geta().

double EvalRootTTree::gphi = NAN
private

Definition at line 106 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 106 of file EvalRootTTree.h

Referenced by get_gphi(), Reset(), and set_gphi().

int EvalRootTTree::gpid = -99999
private

Definition at line 91 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 91 of file EvalRootTTree.h

Referenced by get_gpid(), Reset(), and set_gpid().

double EvalRootTTree::gpx = NAN
private

Definition at line 101 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 101 of file EvalRootTTree.h

Referenced by get_gpx(), Reset(), and set_gpx().

double EvalRootTTree::gpy = NAN
private

Definition at line 102 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 102 of file EvalRootTTree.h

Referenced by get_gpy(), Reset(), and set_gpy().

double EvalRootTTree::gpz = NAN
private

Definition at line 104 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 104 of file EvalRootTTree.h

Referenced by get_gpz(), Reset(), and set_gpz().

double EvalRootTTree::gtheta = NAN
private

Definition at line 107 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 107 of file EvalRootTTree.h

Referenced by get_gtheta(), Reset(), and set_gtheta().

double EvalRootTTree::gvx = NAN
private

Definition at line 98 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 98 of file EvalRootTTree.h

Referenced by get_gvx(), Reset(), and set_gvx().

double EvalRootTTree::gvy = NAN
private

Definition at line 99 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 99 of file EvalRootTTree.h

Referenced by get_gvy(), Reset(), and set_gvy().

double EvalRootTTree::gvz = NAN
private

Definition at line 100 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 100 of file EvalRootTTree.h

Referenced by get_gvz(), Reset(), and set_gvz().

double EvalRootTTree::hesum = 0.
private

Definition at line 95 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 95 of file EvalRootTTree.h

Referenced by get_hesum(), Reset(), and set_hesum().

int EvalRootTTree::nclusters = 0
private

Definition at line 94 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 94 of file EvalRootTTree.h

Referenced by get_nclusters(), Reset(), and set_nclusters().

int EvalRootTTree::nhits = 0
private

Definition at line 92 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 92 of file EvalRootTTree.h

Referenced by get_nhits(), Reset(), and set_nhits().

int EvalRootTTree::ntowers = 0
private

Definition at line 93 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 93 of file EvalRootTTree.h

Referenced by get_ntowers(), Reset(), and set_ntowers().

TClonesArray* EvalRootTTree::SnglClusters = nullptr
private

Definition at line 88 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 88 of file EvalRootTTree.h

Referenced by AddCluster(), EvalRootTTree(), get_cluster(), Reset(), and ~EvalRootTTree().

TClonesArray* EvalRootTTree::SnglHits = nullptr
private

Definition at line 86 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 86 of file EvalRootTTree.h

Referenced by AddHit(), EvalRootTTree(), get_hit(), Reset(), and ~EvalRootTTree().

TClonesArray* EvalRootTTree::SnglTowers = nullptr
private

Definition at line 87 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 87 of file EvalRootTTree.h

Referenced by AddTower(), EvalRootTTree(), get_tower(), Reset(), and ~EvalRootTTree().

double EvalRootTTree::tesum = 0.
private

Definition at line 96 of file EvalRootTTree.h.

View newest version in sPHENIX GitHub at line 96 of file EvalRootTTree.h

Referenced by get_tesum(), Reset(), and set_tesum().


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