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

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4BlockCellReco.h>

+ Inheritance diagram for PHG4BlockCellReco:
+ Collaboration diagram for PHG4BlockCellReco:

Public Member Functions

 PHG4BlockCellReco (const std::string &name="BLOCKRECO")
 
 ~PHG4BlockCellReco () override
 
int InitRun (PHCompositeNode *topNode) override
 module initialization
 
int process_event (PHCompositeNode *topNode) override
 event processing
 
int ResetEvent (PHCompositeNode *topNode) override
 Clean up after each event.
 
void SetDefaultParameters () override
 
void Detector (const std::string &d)
 
void etaxsize (const int i, const double deltaeta, const double deltax)
 
void checkenergy (const int i=1)
 
void set_timing_window (const int detid, const double tmin, const double tmax)
 
- Public Member Functions inherited from SubsysReco
 ~SubsysReco () override
 
virtual int End (PHCompositeNode *)
 Called at the end of all processing.
 
virtual int EndRun (const int)
 Called at the end of each run.
 
virtual int Init (PHCompositeNode *)
 
virtual int Reset (PHCompositeNode *)
 Reset.
 
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.
 
- Public Member Functions inherited from PHParameterContainerInterface
 PHParameterContainerInterface (const std::string &name)
 
 PHParameterContainerInterface (const PHParameterContainerInterface &)=delete
 
PHParameterContainerInterfaceoperator= (PHParameterContainerInterface const &)=delete
 
virtual ~PHParameterContainerInterface ()
 
void set_name (const std::string &name)
 
void set_double_param (const int id, const std::string &name, const double dval)
 
double get_double_param (const int id, const std::string &name) const
 
void set_int_param (const int id, const std::string &name, const int ival)
 
int get_int_param (const int id, const std::string &name) const
 
void set_string_param (const int id, const std::string &name, const std::string &sval)
 
std::string get_string_param (const int id, const std::string &name) const
 
void UpdateParametersWithMacro ()
 
void CreateInitialize (const int detid)
 
void SaveToNodeTree (PHCompositeNode *runNode, const std::string &nodename)
 
void PutOnParNode (PHCompositeNode *parNode, const std::string &nodename)
 
int ExistDetid (const int detid) const
 

Protected Member Functions

void set_size (const int i, const double sizeA, const double sizeB, const int what)
 
int CheckEnergy (PHCompositeNode *topNode)
 
- Protected Member Functions inherited from SubsysReco
 SubsysReco (const std::string &name="NONAME")
 
- Protected Member Functions inherited from Fun4AllBase
 Fun4AllBase (const std::string &name="NONAME")
 
- Protected Member Functions inherited from PHParameterContainerInterface
void set_default_double_param (const std::string &name, const double dval)
 
void set_default_int_param (const std::string &name, const int ival)
 
void set_default_string_param (const std::string &name, const std::string &sval)
 
void InitializeParameters ()
 
const PHParametersContainerGetParamsContainer ()
 
PHParametersContainerGetParamsContainerModify ()
 
const PHParametersGetDefaultParameters ()
 

Protected Attributes

double sum_energy_g4hit
 
std::map< int, int > binning
 
std::map< int, std::pair
< double, double > > 
cell_size
 
std::map< int, std::pair
< double, double > > 
zmin_max
 
std::map< int, doublexstep
 
std::map< int, doubleetastep
 
std::map< int, std::pair
< double, double > > 
tmin_max
 
std::set< int > implemented_detid
 
std::string detector
 
std::string hitnodename
 
std::string cellnodename
 
std::string geonodename
 
std::string seggeonodename
 
std::map< int, std::pair< int,
int > > 
n_x_z_bins
 
int chkenergyconservation
 

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
}
 

Detailed Description

Definition at line 17 of file PHG4BlockCellReco.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4BlockCellReco.h

Constructor & Destructor Documentation

PHG4BlockCellReco::PHG4BlockCellReco ( const std::string &  name = "BLOCKRECO")

Definition at line 40 of file PHG4BlockCellReco.cc.

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

References SetDefaultParameters().

+ Here is the call graph for this function:

PHG4BlockCellReco::~PHG4BlockCellReco ( )
inlineoverride

Definition at line 22 of file PHG4BlockCellReco.h.

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

Member Function Documentation

void PHG4BlockCellReco::checkenergy ( const int  i = 1)
inline

Definition at line 37 of file PHG4BlockCellReco.h.

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

References chkenergyconservation, and i.

int PHG4BlockCellReco::CheckEnergy ( PHCompositeNode topNode)
protected

Definition at line 519 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 519 of file PHG4BlockCellReco.cc

References cellnodename, Acts::UnitConstants::e, PHG4CellContainer::getCells(), Fun4AllBase::Name(), sum_energy_g4hit, and Fun4AllBase::Verbosity().

Referenced by process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4BlockCellReco::Detector ( const std::string &  d)
inline

Definition at line 35 of file PHG4BlockCellReco.h.

View newest version in sPHENIX GitHub at line 35 of file PHG4BlockCellReco.h

void PHG4BlockCellReco::etaxsize ( const int  i,
const double  deltaeta,
const double  deltax 
)

Definition at line 489 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 489 of file PHG4BlockCellReco.cc

References PHParameterContainerInterface::set_double_param().

+ Here is the call graph for this function:

int PHG4BlockCellReco::InitRun ( PHCompositeNode topNode)
overridevirtual

module initialization

Reimplemented from SubsysReco.

Definition at line 55 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 55 of file PHG4BlockCellReco.cc

References PHG4BlockCellGeomContainer::AddLayerCellGeom(), PHCompositeNode::addNode(), binning, cell_size, cellnodename, detector, Acts::UnitConstants::e, etamax, etamin, PHG4CellDefs::etaphibinning, etastep, Fun4AllReturnCodes::EVENT_OK, PHParameterContainerInterface::ExistDetid(), PHNodeIterator::findFirst(), geonodename, PHG4BlockGeomContainer::get_begin_end(), PHG4BlockGeom::get_center_x(), PHG4BlockGeom::get_center_y(), PHG4BlockGeom::get_center_z(), PHParameterContainerInterface::get_double_param(), PHG4Utils::get_eta(), PHG4BlockGeom::get_layer(), PHG4BlockGeom::get_size_x(), PHG4BlockGeom::get_size_y(), PHG4BlockGeom::get_size_z(), PHG4BlockGeom::get_width(), PHParameterContainerInterface::GetParamsContainer(), PHParameterContainerInterface::GetParamsContainerModify(), hitnodename, i, PHG4BlockCellGeom::identify(), PHG4BlockGeomContainer::identify(), implemented_detid, layer, n_x_z_bins, Fun4AllBase::Name(), PHParametersContainer::Name(), PHParameterContainerInterface::SaveToNodeTree(), seggeonodename, PHG4BlockCellGeom::set_binning(), PHG4BlockCellGeom::set_etabins(), PHG4BlockCellGeom::set_etamin(), PHG4BlockCellGeom::set_etastep(), PHG4BlockCellGeom::set_layer(), PHParametersContainer::set_name(), set_size(), PHG4BlockCellGeom::set_xbins(), PHG4BlockCellGeom::set_xmin(), PHG4BlockCellGeom::set_xstep(), tmin_max, PHParameterContainerInterface::UpdateParametersWithMacro(), Fun4AllBase::Verbosity(), width, xmin, xstep, and zmin_max.

+ Here is the call graph for this function:

int PHG4BlockCellReco::ResetEvent ( PHCompositeNode )
overridevirtual

Clean up after each event.

Reimplemented from SubsysReco.

Definition at line 49 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 49 of file PHG4BlockCellReco.cc

References Fun4AllReturnCodes::EVENT_OK, and sum_energy_g4hit.

void PHG4BlockCellReco::set_size ( const int  i,
const double  sizeA,
const double  sizeB,
const int  what 
)
protected

Definition at line 503 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 503 of file PHG4BlockCellReco.cc

References binning, cell_size, and i.

Referenced by InitRun().

+ Here is the caller graph for this function:

void PHG4BlockCellReco::set_timing_window ( const int  detid,
const double  tmin,
const double  tmax 
)

Definition at line 496 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 496 of file PHG4BlockCellReco.cc

References PHParameterContainerInterface::set_double_param().

+ Here is the call graph for this function:

void PHG4BlockCellReco::SetDefaultParameters ( )
overridevirtual

Implements PHParameterContainerInterface.

Definition at line 586 of file PHG4BlockCellReco.cc.

View newest version in sPHENIX GitHub at line 586 of file PHG4BlockCellReco.cc

References PHParameterContainerInterface::set_default_double_param().

Referenced by PHG4BlockCellReco().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::map<int, int> PHG4BlockCellReco::binning
protected

Definition at line 46 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), process_event(), and set_size().

std::map<int, std::pair<double, double> > PHG4BlockCellReco::cell_size
protected

Definition at line 47 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and set_size().

std::string PHG4BlockCellReco::cellnodename
protected

Definition at line 55 of file PHG4BlockCellReco.h.

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

Referenced by CheckEnergy(), InitRun(), and process_event().

int PHG4BlockCellReco::chkenergyconservation
protected

Definition at line 59 of file PHG4BlockCellReco.h.

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

Referenced by checkenergy(), and process_event().

std::string PHG4BlockCellReco::detector
protected

Definition at line 53 of file PHG4BlockCellReco.h.

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

Referenced by InitRun().

std::map<int, double> PHG4BlockCellReco::etastep
protected

Definition at line 50 of file PHG4BlockCellReco.h.

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

Referenced by InitRun().

std::string PHG4BlockCellReco::geonodename
protected

Definition at line 56 of file PHG4BlockCellReco.h.

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

Referenced by InitRun().

std::string PHG4BlockCellReco::hitnodename
protected

Definition at line 54 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and process_event().

std::set<int> PHG4BlockCellReco::implemented_detid
protected

Definition at line 52 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and process_event().

std::map<int, std::pair<int, int> > PHG4BlockCellReco::n_x_z_bins
protected

Definition at line 58 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and process_event().

std::string PHG4BlockCellReco::seggeonodename
protected

Definition at line 57 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and process_event().

double PHG4BlockCellReco::sum_energy_g4hit
protected

Definition at line 45 of file PHG4BlockCellReco.h.

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

Referenced by CheckEnergy(), process_event(), and ResetEvent().

std::map<int, std::pair<double, double> > PHG4BlockCellReco::tmin_max
protected

Definition at line 51 of file PHG4BlockCellReco.h.

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

Referenced by InitRun(), and process_event().

std::map<int, double> PHG4BlockCellReco::xstep
protected

Definition at line 49 of file PHG4BlockCellReco.h.

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

Referenced by InitRun().

std::map<int, std::pair<double, double> > PHG4BlockCellReco::zmin_max
protected

Definition at line 48 of file PHG4BlockCellReco.h.

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

Referenced by InitRun().


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