EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4CylinderCellReco.h>
Public Member Functions | |
PHG4CylinderCellReco (const std::string &name="CYLINDERRECO") | |
~PHG4CylinderCellReco () 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 | cellsize (const int i, const double sr, const double sz) |
void | etaphisize (const int i, const double deltaeta, const double deltaphi) |
void | checkenergy (const int i=1) |
void | OutputDetector (const std::string &d) |
double | get_timing_window_min (const int i) |
double | get_timing_window_max (const int i) |
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 | |
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) |
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 PHParametersContainer * | GetParamsContainer () |
PHParametersContainer * | GetParamsContainerModify () |
const PHParameters * | GetDefaultParameters () |
Protected Attributes | |
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, double > | phistep |
std::map< int, double > | etastep |
std::set< int > | implemented_detid |
std::string | detector |
std::string | outdetector |
std::string | hitnodename |
std::string | cellnodename |
std::string | geonodename |
std::string | seggeonodename |
std::map< int, std::pair< int, int > > | n_phi_z_bins |
std::map< unsigned long long, PHG4Cell * > | cellptmap |
std::map< unsigned long long, PHG4Cell * >::iterator | it |
std::map< int, std::pair < double, double > > | tmin_max |
int | nbins [2] |
int | chkenergyconservation |
double | sum_energy_before_cuts |
double | sum_energy_g4hit |
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 = INT_MAX - 10 } |
Definition at line 18 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 18 of file PHG4CylinderCellReco.h
|
explicit |
Definition at line 40 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 40 of file PHG4CylinderCellReco.cc
References nbins, and SetDefaultParameters().
|
inlineoverride |
Definition at line 23 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 23 of file PHG4CylinderCellReco.h
void PHG4CylinderCellReco::cellsize | ( | const int | i, |
const double | sr, | ||
const double | sz | ||
) |
Definition at line 876 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 876 of file PHG4CylinderCellReco.cc
References binning, PHParameterContainerInterface::set_double_param(), and PHG4CellDefs::sizebinning.
Referenced by CEMC_Cells().
|
inline |
Definition at line 38 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 38 of file PHG4CylinderCellReco.h
References chkenergyconservation.
|
protected |
Definition at line 914 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 914 of file PHG4CylinderCellReco.cc
References cellnodename, Acts::UnitConstants::e, PHG4CellContainer::getCells(), Fun4AllBase::Name(), sum_energy_before_cuts, sum_energy_g4hit, and Fun4AllBase::Verbosity().
Referenced by process_event().
void PHG4CylinderCellReco::Detector | ( | const std::string & | d | ) |
Definition at line 983 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 983 of file PHG4CylinderCellReco.cc
References d, detector, outdetector, and OutputDetector().
Referenced by CEMC_Cells(), and Fun4All_G4_Clusters().
void PHG4CylinderCellReco::etaphisize | ( | const int | i, |
const double | deltaeta, | ||
const double | deltaphi | ||
) |
Definition at line 888 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 888 of file PHG4CylinderCellReco.cc
References binning, PHG4CellDefs::etaphibinning, and PHParameterContainerInterface::set_double_param().
Referenced by Fun4All_G4_Clusters().
|
inline |
Definition at line 42 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 42 of file PHG4CylinderCellReco.h
References tmin_max.
|
inline |
Definition at line 41 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 41 of file PHG4CylinderCellReco.h
References tmin_max.
|
overridevirtual |
module initialization
Reimplemented from SubsysReco.
Definition at line 58 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 58 of file PHG4CylinderCellReco.cc
References PHG4CylinderCellGeomContainer::AddLayerCellGeom(), PHCompositeNode::addNode(), binning, cell_size, cellnodename, detector, Acts::UnitConstants::e, PHG4CellDefs::etaphibinning, etastep, Fun4AllReturnCodes::EVENT_OK, PHParameterContainerInterface::ExistDetid(), exit(), PHNodeIterator::findFirst(), geonodename, PHG4CylinderGeomContainer::get_begin_end(), PHParameterContainerInterface::get_double_param(), PHG4Utils::get_eta(), PHG4CylinderGeom::get_layer(), PHG4CylinderGeom::get_radius(), PHG4CylinderGeom::get_thickness(), PHG4CylinderGeom::get_zmax(), PHG4CylinderGeom::get_zmin(), PHParameterContainerInterface::GetParamsContainer(), PHParameterContainerInterface::GetParamsContainerModify(), hitnodename, PHG4CylinderCellGeom::identify(), PHG4CylinderGeomContainer::identify(), implemented_detid, G4TTL::layer, M_PI, n_phi_z_bins, Fun4AllBase::Name(), PHParametersContainer::Name(), nbins, outdetector, phibins, phimin, phistep, PHWHERE, PHParameterContainerInterface::SaveToNodeTree(), seggeonodename, PHG4CylinderCellGeom::set_binning(), PHG4CylinderCellGeom::set_etabins(), PHG4CylinderCellGeom::set_etamin(), PHG4CylinderCellGeom::set_etastep(), PHG4CylinderCellGeom::set_layer(), PHParametersContainer::set_name(), PHG4CylinderCellGeom::set_phibins(), PHG4CylinderCellGeom::set_phimin(), PHG4CylinderCellGeom::set_phistep(), PHG4CylinderCellGeom::set_radius(), set_size(), PHG4CylinderCellGeom::set_thickness(), PHG4CylinderCellGeom::set_zbins(), PHG4CylinderCellGeom::set_zmin(), PHG4CylinderCellGeom::set_zstep(), G4CTD::size_z, PHG4CellDefs::sizebinning, tmin_max, PHParameterContainerInterface::UpdateParametersWithMacro(), Fun4AllBase::Verbosity(), and zmin_max.
|
inline |
Definition at line 39 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 39 of file PHG4CylinderCellReco.h
References d, and outdetector.
Referenced by Detector().
|
overridevirtual |
event processing
Reimplemented from SubsysReco.
Definition at line 370 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 370 of file PHG4CylinderCellReco.cc
References PHG4Cell::add_edep(), PHG4Cell::add_light_yield(), PHG4Cell::add_shower_edep(), PHG4CellContainer::AddCell(), KF_timing::ax, binning, cell_size, cellnodename, cellptmap, CheckEnergy(), chkenergyconservation, dx, dy, KF_timing::etabin, PHG4CellDefs::etaphibinning, Fun4AllReturnCodes::EVENT_OK, exit(), PHG4CellDefs::SizeBinning::genkey(), PHG4CellDefs::EtaPhiBinning::genkey(), PHG4Cell::get_edep(), PHG4CylinderCellGeom::get_etabin(), PHG4CellDefs::EtaPhiBinning::get_etabin(), PHG4CylinderCellGeom::get_etacenter(), PHG4Utils::get_etaphi(), PHG4CylinderCellGeom::get_etastep(), PHG4CellDefs::SizeBinning::get_phibin(), PHG4CylinderCellGeom::get_phibin(), PHG4CellDefs::EtaPhiBinning::get_phibin(), PHG4CylinderCellGeom::get_phicenter(), PHG4CylinderCellGeom::get_phistep(), PHG4CellDefs::SizeBinning::get_zbin(), PHG4CylinderCellGeom::get_zbin(), PHG4CylinderCellGeom::get_zcenter(), PHG4CylinderCellGeom::get_zstep(), PHG4HitContainer::getHits(), PHG4CylinderCellGeomContainer::GetLayerCellGeom(), PHG4HitContainer::getLayers(), hitnodename, implemented_detid, Acts::PlanarHelper::intersect(), it, G4TTL::layer, PHG4Utils::line_and_rectangle_intersect(), M_PI, n_phi_z_bins, Fun4AllBase::Name(), phi, phistep, PHWHERE, PHG4Hit::prop_light_yield, seggeonodename, sum_energy_before_cuts, sum_energy_g4hit, tmin_max, Fun4AllBase::Verbosity(), z, and zmin_max.
|
overridevirtual |
Clean up after each event.
Reimplemented from SubsysReco.
Definition at line 51 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 51 of file PHG4CylinderCellReco.cc
References Fun4AllReturnCodes::EVENT_OK, sum_energy_before_cuts, and sum_energy_g4hit.
|
protected |
Definition at line 901 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 901 of file PHG4CylinderCellReco.cc
References cell_size.
Referenced by InitRun().
void PHG4CylinderCellReco::set_timing_window | ( | const int | detid, |
const double | tmin, | ||
const double | tmax | ||
) |
Definition at line 907 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 907 of file PHG4CylinderCellReco.cc
References PHParameterContainerInterface::set_double_param().
|
overridevirtual |
Implements PHParameterContainerInterface.
Definition at line 995 of file PHG4CylinderCellReco.cc.
View newest version in sPHENIX GitHub at line 995 of file PHG4CylinderCellReco.cc
References PHParameterContainerInterface::set_default_double_param().
Referenced by PHG4CylinderCellReco().
|
protected |
Definition at line 49 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 49 of file PHG4CylinderCellReco.h
Referenced by cellsize(), etaphisize(), InitRun(), and process_event().
|
protected |
Definition at line 50 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 50 of file PHG4CylinderCellReco.h
Referenced by InitRun(), process_event(), and set_size().
|
protected |
Definition at line 58 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 58 of file PHG4CylinderCellReco.h
Referenced by CheckEnergy(), InitRun(), and process_event().
|
protected |
Definition at line 62 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 62 of file PHG4CylinderCellReco.h
Referenced by process_event().
|
protected |
Definition at line 67 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 67 of file PHG4CylinderCellReco.h
Referenced by checkenergy(), and process_event().
|
protected |
Definition at line 55 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 55 of file PHG4CylinderCellReco.h
Referenced by Detector(), and InitRun().
|
protected |
Definition at line 53 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 53 of file PHG4CylinderCellReco.h
Referenced by InitRun().
|
protected |
Definition at line 59 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 59 of file PHG4CylinderCellReco.h
Referenced by InitRun().
|
protected |
Definition at line 57 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 57 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 54 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 54 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 63 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 63 of file PHG4CylinderCellReco.h
Referenced by process_event().
|
protected |
Definition at line 61 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 61 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 66 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 66 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and PHG4CylinderCellReco().
|
protected |
Definition at line 56 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 56 of file PHG4CylinderCellReco.h
Referenced by Detector(), InitRun(), and OutputDetector().
|
protected |
Definition at line 52 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 52 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 60 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 60 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().
|
protected |
Definition at line 69 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 69 of file PHG4CylinderCellReco.h
Referenced by CheckEnergy(), process_event(), and ResetEvent().
|
protected |
Definition at line 70 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 70 of file PHG4CylinderCellReco.h
Referenced by CheckEnergy(), process_event(), and ResetEvent().
|
protected |
Definition at line 64 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 64 of file PHG4CylinderCellReco.h
Referenced by get_timing_window_max(), get_timing_window_min(), InitRun(), and process_event().
|
protected |
Definition at line 51 of file PHG4CylinderCellReco.h.
View newest version in sPHENIX GitHub at line 51 of file PHG4CylinderCellReco.h
Referenced by InitRun(), and process_event().