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

#include <coresoftware/blob/master/simulation/g4simulation/g4eval/MomentumEvaluator.h>

+ Inheritance diagram for MomentumEvaluator:
+ Collaboration diagram for MomentumEvaluator:

Public Member Functions

 MomentumEvaluator (const std::string &fname, float pt_s=0.1, float pz_s=0.2, unsigned int n_l=62, unsigned int n_i=2, unsigned int n_r=50, float i_z=10., float o_z=80.)
 
 ~MomentumEvaluator () override
 
int Init (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
int End (PHCompositeNode *topNode) override
 Called at the end of all processing.
 
- 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

TNtuple * ntp_true
 
TNtuple * ntp_reco
 
float pt_search_scale
 
float pz_search_scale
 
unsigned int event_counter
 
std::string file_name
 
unsigned int n_inner_layers
 
unsigned int n_required_layers
 
float inner_z_length
 
float outer_z_length
 

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 11 of file MomentumEvaluator.h.

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

Constructor & Destructor Documentation

MomentumEvaluator::MomentumEvaluator ( const std::string &  fname,
float  pt_s = 0.1,
float  pz_s = 0.2,
unsigned int  n_l = 62,
unsigned int  n_i = 2,
unsigned int  n_r = 50,
float  i_z = 10.,
float  o_z = 80. 
)

Definition at line 357 of file MomentumEvaluator.cc.

View newest version in sPHENIX GitHub at line 357 of file MomentumEvaluator.cc

MomentumEvaluator::~MomentumEvaluator ( )
override

Definition at line 370 of file MomentumEvaluator.cc.

View newest version in sPHENIX GitHub at line 370 of file MomentumEvaluator.cc

References ntp_reco, and ntp_true.

Member Function Documentation

int MomentumEvaluator::End ( PHCompositeNode )
overridevirtual

Called at the end of all processing.

Reimplemented from SubsysReco.

Definition at line 602 of file MomentumEvaluator.cc.

View newest version in sPHENIX GitHub at line 602 of file MomentumEvaluator.cc

References Fun4AllReturnCodes::EVENT_OK, file_name, ntp_reco, ntp_true, and add_histos::outfile.

int MomentumEvaluator::Init ( PHCompositeNode )
overridevirtual

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.

Definition at line 382 of file MomentumEvaluator.cc.

View newest version in sPHENIX GitHub at line 382 of file MomentumEvaluator.cc

References event_counter, Fun4AllReturnCodes::EVENT_OK, ntp_reco, and ntp_true.

int MomentumEvaluator::process_event ( PHCompositeNode )
overridevirtual

Member Data Documentation

unsigned int MomentumEvaluator::event_counter
private

Definition at line 26 of file MomentumEvaluator.h.

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

Referenced by Init(), and process_event().

std::string MomentumEvaluator::file_name
private

Definition at line 27 of file MomentumEvaluator.h.

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

Referenced by End().

float MomentumEvaluator::inner_z_length
private

Definition at line 30 of file MomentumEvaluator.h.

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

Referenced by process_event().

unsigned int MomentumEvaluator::n_inner_layers
private

Definition at line 28 of file MomentumEvaluator.h.

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

Referenced by process_event().

unsigned int MomentumEvaluator::n_required_layers
private

Definition at line 29 of file MomentumEvaluator.h.

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

Referenced by process_event().

TNtuple* MomentumEvaluator::ntp_reco
private

Definition at line 23 of file MomentumEvaluator.h.

View newest version in sPHENIX GitHub at line 23 of file MomentumEvaluator.h

Referenced by End(), Init(), process_event(), and ~MomentumEvaluator().

TNtuple* MomentumEvaluator::ntp_true
private

Definition at line 22 of file MomentumEvaluator.h.

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

Referenced by End(), Init(), process_event(), and ~MomentumEvaluator().

float MomentumEvaluator::outer_z_length
private

Definition at line 31 of file MomentumEvaluator.h.

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

Referenced by process_event().

float MomentumEvaluator::pt_search_scale
private

Definition at line 24 of file MomentumEvaluator.h.

View newest version in sPHENIX GitHub at line 24 of file MomentumEvaluator.h

Referenced by process_event().

float MomentumEvaluator::pz_search_scale
private

Definition at line 25 of file MomentumEvaluator.h.

View newest version in sPHENIX GitHub at line 25 of file MomentumEvaluator.h

Referenced by process_event().


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