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

#include <analysis/blob/master/Tracking/HitCountEval/HitCountEval.h>

+ Inheritance diagram for HitCountEval:
+ Collaboration diagram for HitCountEval:

Public Member Functions

 HitCountEval (const std::string &name="HitCountEval", const std::string &file_name="g4eval.root")
 
int Init (PHCompositeNode *const)
 
int process_event (PHCompositeNode *const)
 
int End (PHCompositeNode *const)
 Called at the end of all processing.
 
void set_filename (const char *const file)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int InitRun (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
virtual int ResetEvent (PHCompositeNode *)
 Clean up after each event.
 
void Print (const std::string &="ALL") const override
 
- Public Member Functions inherited from Fun4AllBase
virtual ~Fun4AllBase ()
 
virtual const std::string Name () const
 Returns the name of this module.
 
virtual void Name (const std::string &name)
 Sets the name of this module.
 
virtual void Verbosity (const int ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual void Verbosity (enu_Verbosity ival)
 Sets the verbosity of this module (0 by default=quiet).
 
virtual int Verbosity () const
 Gets the verbosity of this module.
 

Private Attributes

std::string output_file_name
 
unsigned event
 
TTree * hits [NELEMS(HitCountEval::hit_containers)]
 
TTree * normalized_hits [NELEMS(HitCountEval::hit_containers)]
 
TH1F * hit_count [NELEMS(HitCountEval::hit_containers)]
 
TH1F * eta_count [NELEMS(HitCountEval::hit_containers)]
 
Float_t hit_x
 
Float_t hit_y
 
Float_t hit_z
 
Float_t hit_px
 
Float_t hit_py
 
Float_t hit_pz
 
Float_t particle_initial_px
 
Float_t particle_initial_py
 
Float_t particle_initial_pz
 
Int_t hit_id
 
Int_t hit_layer
 
Int_t hit_event
 
Double_t normalized_hit_eta
 
Double_t normalized_hit_count
 

Static Private Attributes

static const char *const hit_containers [NHITCONTAINERS]
 

Additional Inherited Members

- Public Types inherited from Fun4AllBase
enum  enu_Verbosity {
  VERBOSITY_QUIET = 0, VERBOSITY_SOME = 1, VERBOSITY_MORE = 2, VERBOSITY_EVEN_MORE = 3,
  VERBOSITY_A_LOT = 4, VERBOSITY_MAX = std::numeric_limits<int>::max() - 10
}
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 

Detailed Description

Definition at line 32 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 32 of file HitCountEval.h

Constructor & Destructor Documentation

HitCountEval::HitCountEval ( const std::string &  name = "HitCountEval",
const std::string &  file_name = "g4eval.root" 
)

Definition at line 38 of file HitCountEval.cc.

View newest version in sPHENIX GitHub at line 38 of file HitCountEval.cc

Member Function Documentation

int HitCountEval::End ( PHCompositeNode )
virtual

Called at the end of all processing.

Reimplemented from SubsysReco.

int HitCountEval::Init ( PHCompositeNode )
virtual

Called during initialization. Typically this is where you can book histograms, and e.g. register them to Fun4AllServer (so they can be output to file using Fun4AllServer::dumpHistos() method).

Reimplemented from SubsysReco.

int HitCountEval::process_event ( PHCompositeNode )
virtual

Called for each event. This is where you do the real work.

Reimplemented from SubsysReco.

void HitCountEval::set_filename ( const char *const  file)

Member Data Documentation

TH1F* HitCountEval::eta_count[NELEMS(HitCountEval::hit_containers)]
private

Definition at line 50 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 50 of file HitCountEval.h

unsigned HitCountEval::event
private

Definition at line 44 of file HitCountEval.h.

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

const char *const HitCountEval::hit_containers
staticprivate
Initial value:
{"G4HIT_EGEM_0", "G4HIT_EGEM_1", "G4HIT_EGEM_3",
"G4HIT_FGEM_0", "G4HIT_FGEM_1", "G4HIT_FGEM_2", "G4HIT_FGEM_3","G4HIT_FGEM_4", "G4HIT_MAPS",
"G4HIT_SVTX"}

Definition at line 45 of file HitCountEval.h.

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

TH1F* HitCountEval::hit_count[NELEMS(HitCountEval::hit_containers)]
private

Definition at line 49 of file HitCountEval.h.

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

Int_t HitCountEval::hit_event
private

Definition at line 65 of file HitCountEval.h.

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

Int_t HitCountEval::hit_id
private

Definition at line 63 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 63 of file HitCountEval.h

Int_t HitCountEval::hit_layer
private

Definition at line 64 of file HitCountEval.h.

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

Float_t HitCountEval::hit_px
private

Definition at line 56 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 56 of file HitCountEval.h

Float_t HitCountEval::hit_py
private

Definition at line 57 of file HitCountEval.h.

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

Float_t HitCountEval::hit_pz
private

Definition at line 58 of file HitCountEval.h.

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

Float_t HitCountEval::hit_x
private

Definition at line 53 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 53 of file HitCountEval.h

Float_t HitCountEval::hit_y
private

Definition at line 54 of file HitCountEval.h.

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

Float_t HitCountEval::hit_z
private

Definition at line 55 of file HitCountEval.h.

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

TTree* HitCountEval::hits[NELEMS(HitCountEval::hit_containers)]
private

Definition at line 47 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 47 of file HitCountEval.h

Double_t HitCountEval::normalized_hit_count
private

Definition at line 68 of file HitCountEval.h.

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

Double_t HitCountEval::normalized_hit_eta
private

Definition at line 67 of file HitCountEval.h.

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

TTree* HitCountEval::normalized_hits[NELEMS(HitCountEval::hit_containers)]
private

Definition at line 48 of file HitCountEval.h.

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

std::string HitCountEval::output_file_name
private

Definition at line 42 of file HitCountEval.h.

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

Float_t HitCountEval::particle_initial_px
private

Definition at line 59 of file HitCountEval.h.

View newest version in sPHENIX GitHub at line 59 of file HitCountEval.h

Float_t HitCountEval::particle_initial_py
private

Definition at line 60 of file HitCountEval.h.

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

Float_t HitCountEval::particle_initial_pz
private

Definition at line 61 of file HitCountEval.h.

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


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