ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/offline/packages/CaloReco/RawClusterBuilderTemplate.h>
Public Member Functions | |
RawClusterBuilderTemplate (const std::string &name="RawClusterBuilderTemplate") | |
~RawClusterBuilderTemplate () override | |
int | InitRun (PHCompositeNode *topNode) override |
int | process_event (PHCompositeNode *topNode) override |
void | Detector (const std::string &d) |
void | SetCylindricalGeometry () |
void | SetPlanarGeometry () |
void | PrintGeometry () |
void | PrintCylGeom (RawTowerGeomContainer *towergeom, const std::string &fname) |
void | SetProfileProb (bool pprob) |
void | SetProbNoiseParam (float rn) |
void | set_threshold_energy (const float e) |
void | setEnergyNorm (float norm) |
void | checkenergy (const int i=1) |
void | LoadProfile (const std::string &fname) |
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. | |
Private Member Functions | |
void | CreateNodes (PHCompositeNode *topNode) |
bool | Cell2Abs (RawTowerGeomContainer *towergeom, float phiC, float etaC, float &phi, float &eta) |
Private Attributes | |
RawClusterContainer * | _clusters |
BEmcRec * | bemc |
float | fEnergyNorm |
float | _min_tower_e |
int | chkenergyconservation |
std::string | detector |
std::string | ClusterNodeName |
int | BINX0 |
int | NBINX |
int | BINY0 |
int | NBINY |
bool | bPrintGeom |
bool | bProfProb |
float | fProbNoiseParam |
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 } |
Protected Member Functions inherited from SubsysReco | |
SubsysReco (const std::string &name="NONAME") | |
Definition at line 13 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 13 of file RawClusterBuilderTemplate.h
RawClusterBuilderTemplate::RawClusterBuilderTemplate | ( | const std::string & | name = "RawClusterBuilderTemplate" | ) |
Definition at line 43 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 43 of file RawClusterBuilderTemplate.cc
|
override |
Definition at line 61 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 61 of file RawClusterBuilderTemplate.cc
References bemc.
|
private |
Definition at line 262 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 262 of file RawClusterBuilderTemplate.cc
Definition at line 32 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 32 of file RawClusterBuilderTemplate.h
References chkenergyconservation.
|
private |
Definition at line 506 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 506 of file RawClusterBuilderTemplate.cc
References _clusters, PHCompositeNode::addNode(), ClusterNodeName, detector, PHNodeIterator::findFirst(), and PHWHERE.
Referenced by InitRun().
void RawClusterBuilderTemplate::Detector | ( | const std::string & | d | ) |
Definition at line 67 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 67 of file RawClusterBuilderTemplate.cc
References _min_tower_e, bemc, d, detector, fProbNoiseParam, Fun4AllBase::Name(), BEmcRec::SetProbNoiseParam(), BEmcRec::SetTowerThreshold(), and BEmcRec::SetVertex().
Referenced by CEMC_Clusters(), and EEMC_Clusters().
|
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 137 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 137 of file RawClusterBuilderTemplate.cc
References Fun4AllReturnCodes::ABORTEVENT, bemc, BINX0, BINY0, bPrintGeom, BEmcRec::CompleteTowerGeometry(), CreateNodes(), RawTowerDefs::decode_index1(), RawTowerDefs::decode_index2(), detector, e, RawTowerDefs::EEMC, RawTowerDefs::EEMC_crystal, RawTowerDefs::EEMC_glass, Fun4AllReturnCodes::EVENT_OK, test::fname, RawTowerGeomContainer::get_calorimeter_id(), RawTowerGeom::get_center_x(), RawTowerGeom::get_center_y(), RawTowerGeom::get_center_z(), RawTowerGeom::get_id(), RawTowerGeom::get_size_z(), RawTowerGeomContainer::get_tower_geometries(), NBINX, NBINY, PHWHERE, BEmcRec::PrintTowerGeometry(), BEmcRec::SetCalotype(), BEmcRec::SetDim(), BEmcRec::SetScinSize(), BEmcRec::SetTowerGeometry(), and Fun4AllBase::Verbosity().
void RawClusterBuilderTemplate::LoadProfile | ( | const std::string & | fname | ) |
Definition at line 109 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 109 of file RawClusterBuilderTemplate.cc
References bemc, and BEmcRec::LoadProfile().
Referenced by CEMC_Clusters().
void RawClusterBuilderTemplate::PrintCylGeom | ( | RawTowerGeomContainer * | towergeom, |
const std::string & | fname | ||
) |
Definition at line 241 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 241 of file RawClusterBuilderTemplate.cc
References RawTowerGeomContainer::get_etacenter(), RawTowerGeomContainer::get_phicenter(), NBINX, and NBINY.
|
inline |
Definition at line 25 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 25 of file RawClusterBuilderTemplate.h
References bPrintGeom.
|
overridevirtual |
Called for each event. This is where you do the real work.
Reimplemented from SubsysReco.
Definition at line 268 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 268 of file RawClusterBuilderTemplate.cc
References _clusters, _min_tower_e, Fun4AllReturnCodes::ABORTEVENT, RawClusterContainer::AddCluster(), RawCluster::addTower(), EmcModule::amp, GlobalVertexMap::begin(), bemc, BINX0, BINY0, bProfProb, chkenergyconservation, RawTowerDefs::decode_index1(), RawTowerDefs::decode_index2(), detector, Fun4AllReturnCodes::DISCARDEVENT, e, GlobalVertexMap::empty(), RawTowerDefs::encode_towerid(), Fun4AllReturnCodes::EVENT_OK, fEnergyNorm, BEmcRec::FindClusters(), fProbNoiseParam, RawTower::get_energy(), RawTower::get_id(), GlobalVertex::get_x(), GlobalVertex::get_y(), GlobalVertex::get_z(), RawTowerContainer::getCalorimeterID(), BEmcRec::GetClusters(), RawClusterContainer::getTotalEdep(), RawTowerContainer::getTotalEdep(), RawTowerContainer::getTowers(), EmcModule::ich, NBINX, NBINY, pc, PHWHERE, G4InuclParticleNames::pp, RawCluster::set_chi2(), RawCluster::set_ecore(), RawCluster::set_energy(), RawCluster::set_phi(), RawCluster::set_prob(), RawCluster::set_r(), RawCluster::set_z(), BEmcRec::SetModules(), BEmcRec::SetProbNoiseParam(), BEmcRec::SetProfileProb(), BEmcRec::SetTowerThreshold(), BEmcRec::SetVertex(), EmcModule::tof, and xx.
|
inline |
Definition at line 30 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 30 of file RawClusterBuilderTemplate.h
References _min_tower_e, and e.
Referenced by CEMC_Clusters().
void RawClusterBuilderTemplate::SetCylindricalGeometry | ( | ) |
Definition at line 115 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 115 of file RawClusterBuilderTemplate.cc
References bemc, and BEmcRec::SetCylindricalGeometry().
|
inline |
Definition at line 31 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 31 of file RawClusterBuilderTemplate.h
References fEnergyNorm, and norm.
void RawClusterBuilderTemplate::SetPlanarGeometry | ( | ) |
Definition at line 126 of file RawClusterBuilderTemplate.cc.
View newest version in sPHENIX GitHub at line 126 of file RawClusterBuilderTemplate.cc
References bemc, and BEmcRec::SetPlanarGeometry().
|
inline |
Definition at line 28 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 28 of file RawClusterBuilderTemplate.h
References fProbNoiseParam.
|
inline |
Definition at line 27 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 27 of file RawClusterBuilderTemplate.h
References bProfProb.
|
private |
Definition at line 39 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 39 of file RawClusterBuilderTemplate.h
Referenced by CreateNodes(), and process_event().
|
private |
Definition at line 45 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 45 of file RawClusterBuilderTemplate.h
Referenced by Detector(), process_event(), and set_threshold_energy().
|
private |
Definition at line 42 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 42 of file RawClusterBuilderTemplate.h
Referenced by Detector(), InitRun(), LoadProfile(), process_event(), SetCylindricalGeometry(), SetPlanarGeometry(), and ~RawClusterBuilderTemplate().
|
private |
Definition at line 51 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 51 of file RawClusterBuilderTemplate.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 53 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 53 of file RawClusterBuilderTemplate.h
Referenced by InitRun(), and process_event().
|
private |
Definition at line 56 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 56 of file RawClusterBuilderTemplate.h
Referenced by InitRun(), and PrintGeometry().
|
private |
Definition at line 57 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 57 of file RawClusterBuilderTemplate.h
Referenced by process_event(), and SetProfileProb().
|
private |
Definition at line 46 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 46 of file RawClusterBuilderTemplate.h
Referenced by checkenergy(), and process_event().
|
private |
Definition at line 49 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 49 of file RawClusterBuilderTemplate.h
Referenced by CreateNodes().
|
private |
Definition at line 48 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 48 of file RawClusterBuilderTemplate.h
Referenced by CreateNodes(), Detector(), InitRun(), and process_event().
|
private |
Definition at line 43 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 43 of file RawClusterBuilderTemplate.h
Referenced by process_event(), and setEnergyNorm().
|
private |
Definition at line 58 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 58 of file RawClusterBuilderTemplate.h
Referenced by Detector(), process_event(), and SetProbNoiseParam().
|
private |
Definition at line 52 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 52 of file RawClusterBuilderTemplate.h
Referenced by InitRun(), PrintCylGeom(), and process_event().
|
private |
Definition at line 54 of file RawClusterBuilderTemplate.h.
View newest version in sPHENIX GitHub at line 54 of file RawClusterBuilderTemplate.h
Referenced by InitRun(), PrintCylGeom(), and process_event().