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

#include <coresoftware/blob/master/simulation/g4simulation/g4calo/RawTowerBuilder.h>

+ Inheritance diagram for RawTowerBuilder:
+ Collaboration diagram for RawTowerBuilder:

Public Types

enum  enu_tower_energy_src { kEnergyDeposition, kLightYield }
 

Public Member Functions

 RawTowerBuilder (const std::string &name="RawTowerBuilder")
 
 ~RawTowerBuilder () override
 
int InitRun (PHCompositeNode *topNode) override
 
int process_event (PHCompositeNode *topNode) override
 
void Detector (const std::string &d)
 
void EminCut (const double e)
 
void checkenergy (const int i=1)
 
enu_tower_energy_src get_tower_energy_src () const
 
void set_tower_energy_src (enu_tower_energy_src towerEnergySrc)
 
std::string get_sim_tower_node_prefix () const
 
void set_sim_tower_node_prefix (const std::string &simTowerNodePrefix)
 
- 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.
 
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.
 

Protected Member Functions

void CreateNodes (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 Attributes

RawTowerContainerm_TowerContainer
 
RawTowerGeomContainerm_RawTowerGeomContainer
 
std::string m_Detector
 
std::string m_TowerNodeName
 
std::string m_TowerGeomNodeName
 
std::string m_SimTowerNodePrefix
 
enu_tower_energy_src m_TowerEnergySrcEnum
 
int m_CellBinning
 
int m_ChkEnergyConservationFlag
 
int m_NumLayers
 
int m_NumPhiBins
 
int m_NumEtaBins
 
double m_Emin
 
double m_EtaMin
 
double m_PhiMin
 
double m_EtaStep
 
double m_PhiStep
 

Detailed Description

Definition at line 12 of file RawTowerBuilder.h.

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

Member Enumeration Documentation

Enumerator:
kEnergyDeposition 

save Geant4 energy deposition as the weight of the cells

kLightYield 

save light yield as the weight of the cells

Definition at line 22 of file RawTowerBuilder.h.

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

Constructor & Destructor Documentation

RawTowerBuilder::RawTowerBuilder ( const std::string &  name = "RawTowerBuilder")

Definition at line 44 of file RawTowerBuilder.cc.

View newest version in sPHENIX GitHub at line 44 of file RawTowerBuilder.cc

RawTowerBuilder::~RawTowerBuilder ( )
inlineoverride

Definition at line 16 of file RawTowerBuilder.h.

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

Member Function Documentation

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

Definition at line 21 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 21 of file RawTowerBuilder.h

References m_ChkEnergyConservationFlag.

void RawTowerBuilder::CreateNodes ( PHCompositeNode topNode)
protected

Definition at line 236 of file RawTowerBuilder.cc.

View newest version in sPHENIX GitHub at line 236 of file RawTowerBuilder.cc

References RawTowerGeomContainer::add_tower_geometry(), PHCompositeNode::addNode(), RawTowerDefs::convert_name_to_caloid(), e, RawTowerDefs::encode_towerid(), PHG4CellDefs::etaphibinning, PHG4CellDefs::etaslatbinning, g4zmq::exit(), PHNodeIterator::findFirst(), PHG4CylinderCellGeomContainer::get_begin_end(), PHG4CylinderCellGeom::get_binning(), RawTowerGeom::get_center_x(), PHG4CylinderCellGeom::get_etabins(), RawTowerGeomContainer::get_etabins(), PHG4CylinderCellGeom::get_etabounds(), RawTowerGeomContainer::get_etacenter(), PHG4CylinderCellGeom::get_etamin(), PHG4CylinderCellGeom::get_etastep(), PHG4CylinderCellGeom::get_layer(), PHG4CylinderCellGeomContainer::get_NLayers(), PHG4CylinderCellGeom::get_phibins(), RawTowerGeomContainer::get_phibins(), PHG4CylinderCellGeom::get_phibounds(), RawTowerGeomContainer::get_phicenter(), PHG4CylinderCellGeom::get_phimin(), PHG4CylinderCellGeom::get_phistep(), PHG4CylinderCellGeom::get_radius(), PHG4Utils::get_theta(), PHG4CylinderCellGeom::get_thickness(), RawTowerGeomContainer::get_tower_geometry(), PHG4CylinderCellGeom::get_zbins(), PHG4CylinderCellGeom::get_zbounds(), PHG4CylinderCellGeom::get_zcenter(), PHG4CylinderCellGeom::identify(), RawTowerGeomContainer::identify(), G4CEMCALBEDO::inner_radius, m_CellBinning, m_Detector, m_EtaMin, m_EtaStep, m_NumEtaBins, m_NumLayers, m_NumPhiBins, m_PhiMin, m_PhiStep, m_RawTowerGeomContainer, m_SimTowerNodePrefix, m_TowerContainer, m_TowerGeomNodeName, m_TowerNodeName, Fun4AllBase::Name(), PHWHERE, r, RawTowerGeomContainer::set_etabins(), RawTowerGeomContainer::set_etabounds(), RawTowerGeomContainer::set_phibins(), RawTowerGeomContainer::set_phibounds(), RawTowerGeomContainer::set_radius(), RawTowerGeomContainer::set_thickness(), PHG4CellDefs::sizebinning, PHG4CellDefs::spacalbinning, thickness, Fun4AllBase::Verbosity(), x, y, and z.

Referenced by InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 19 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 19 of file RawTowerBuilder.h

References d, and m_Detector.

Referenced by CEMC_Towers(), and Fun4All_G4_Clusters().

+ Here is the caller graph for this function:

void RawTowerBuilder::EminCut ( const double  e)
inline

Definition at line 20 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 20 of file RawTowerBuilder.h

References e, and m_Emin.

Referenced by CEMC_Towers().

+ Here is the caller graph for this function:

std::string RawTowerBuilder::get_sim_tower_node_prefix ( ) const
inline

Definition at line 45 of file RawTowerBuilder.h.

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

References m_SimTowerNodePrefix.

enu_tower_energy_src RawTowerBuilder::get_tower_energy_src ( ) const
inline

Definition at line 33 of file RawTowerBuilder.h.

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

References m_TowerEnergySrcEnum.

int RawTowerBuilder::InitRun ( PHCompositeNode )
overridevirtual

Called for first event when run number is known. Typically this is where you may want to fetch data from database, because you know the run number.

Reimplemented from SubsysReco.

Definition at line 63 of file RawTowerBuilder.cc.

View newest version in sPHENIX GitHub at line 63 of file RawTowerBuilder.cc

References CreateNodes(), e, Fun4AllReturnCodes::EVENT_OK, g4zmq::exit(), PHNodeIterator::findFirst(), PHG4CylinderCellGeomContainer::get_NLayers(), findNode::getClass(), kEnergyDeposition, kLightYield, m_Detector, m_NumLayers, m_TowerEnergySrcEnum, PHWHERE, and Fun4AllBase::Verbosity().

+ Here is the call graph for this function:

int RawTowerBuilder::process_event ( PHCompositeNode )
overridevirtual
void RawTowerBuilder::set_sim_tower_node_prefix ( const std::string &  simTowerNodePrefix)
inline

Definition at line 51 of file RawTowerBuilder.h.

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

References m_SimTowerNodePrefix.

Referenced by CEMC_Towers().

+ Here is the caller graph for this function:

void RawTowerBuilder::set_tower_energy_src ( enu_tower_energy_src  towerEnergySrc)
inline

Definition at line 39 of file RawTowerBuilder.h.

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

References m_TowerEnergySrcEnum.

Member Data Documentation

int RawTowerBuilder::m_CellBinning
protected

Definition at line 68 of file RawTowerBuilder.h.

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

Referenced by CreateNodes().

int RawTowerBuilder::m_ChkEnergyConservationFlag
protected

Definition at line 69 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 69 of file RawTowerBuilder.h

Referenced by checkenergy(), and process_event().

std::string RawTowerBuilder::m_Detector
protected

Definition at line 62 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 62 of file RawTowerBuilder.h

Referenced by CreateNodes(), Detector(), InitRun(), and process_event().

double RawTowerBuilder::m_Emin
protected

Definition at line 73 of file RawTowerBuilder.h.

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

Referenced by EminCut(), and process_event().

double RawTowerBuilder::m_EtaMin
protected

Definition at line 74 of file RawTowerBuilder.h.

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

Referenced by CreateNodes().

double RawTowerBuilder::m_EtaStep
protected

Definition at line 76 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 76 of file RawTowerBuilder.h

Referenced by CreateNodes().

int RawTowerBuilder::m_NumEtaBins
protected

Definition at line 72 of file RawTowerBuilder.h.

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

Referenced by CreateNodes().

int RawTowerBuilder::m_NumLayers
protected

Definition at line 70 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 70 of file RawTowerBuilder.h

Referenced by CreateNodes(), and InitRun().

int RawTowerBuilder::m_NumPhiBins
protected

Definition at line 71 of file RawTowerBuilder.h.

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

Referenced by CreateNodes().

double RawTowerBuilder::m_PhiMin
protected

Definition at line 75 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 75 of file RawTowerBuilder.h

Referenced by CreateNodes().

double RawTowerBuilder::m_PhiStep
protected

Definition at line 77 of file RawTowerBuilder.h.

View newest version in sPHENIX GitHub at line 77 of file RawTowerBuilder.h

Referenced by CreateNodes().

RawTowerGeomContainer* RawTowerBuilder::m_RawTowerGeomContainer
protected

Definition at line 60 of file RawTowerBuilder.h.

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

Referenced by CreateNodes(), and process_event().

std::string RawTowerBuilder::m_SimTowerNodePrefix
protected

Definition at line 65 of file RawTowerBuilder.h.

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

Referenced by CreateNodes(), get_sim_tower_node_prefix(), and set_sim_tower_node_prefix().

RawTowerContainer* RawTowerBuilder::m_TowerContainer
protected

Definition at line 59 of file RawTowerBuilder.h.

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

Referenced by CreateNodes(), and process_event().

enu_tower_energy_src RawTowerBuilder::m_TowerEnergySrcEnum
protected

Definition at line 67 of file RawTowerBuilder.h.

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

Referenced by get_tower_energy_src(), InitRun(), process_event(), and set_tower_energy_src().

std::string RawTowerBuilder::m_TowerGeomNodeName
protected

Definition at line 64 of file RawTowerBuilder.h.

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

Referenced by CreateNodes(), and process_event().

std::string RawTowerBuilder::m_TowerNodeName
protected

Definition at line 63 of file RawTowerBuilder.h.

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

Referenced by CreateNodes().


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