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

#include <coresoftware/blob/master/offline/packages/CaloReco/RawClusterBuilderTemplate.h>

+ Inheritance diagram for RawClusterBuilderTemplate:
+ Collaboration diagram for RawClusterBuilderTemplate:

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
 
BEmcRecbemc
 
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")
 

Detailed Description

Definition at line 13 of file RawClusterBuilderTemplate.h.

View newest version in sPHENIX GitHub at line 13 of file RawClusterBuilderTemplate.h

Constructor & Destructor Documentation

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

RawClusterBuilderTemplate::~RawClusterBuilderTemplate ( )
override

Definition at line 61 of file RawClusterBuilderTemplate.cc.

View newest version in sPHENIX GitHub at line 61 of file RawClusterBuilderTemplate.cc

References bemc.

Member Function Documentation

bool RawClusterBuilderTemplate::Cell2Abs ( RawTowerGeomContainer towergeom,
float  phiC,
float  etaC,
float &  phi,
float &  eta 
)
private

Definition at line 262 of file RawClusterBuilderTemplate.cc.

View newest version in sPHENIX GitHub at line 262 of file RawClusterBuilderTemplate.cc

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

Definition at line 32 of file RawClusterBuilderTemplate.h.

View newest version in sPHENIX GitHub at line 32 of file RawClusterBuilderTemplate.h

References chkenergyconservation.

void RawClusterBuilderTemplate::CreateNodes ( PHCompositeNode topNode)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int RawClusterBuilderTemplate::InitRun ( PHCompositeNode )
overridevirtual
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

+ Here is the call graph for this function:

void RawClusterBuilderTemplate::PrintGeometry ( )
inline

Definition at line 25 of file RawClusterBuilderTemplate.h.

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

References bPrintGeom.

int RawClusterBuilderTemplate::process_event ( PHCompositeNode )
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.

+ Here is the call graph for this function:

void RawClusterBuilderTemplate::set_threshold_energy ( const float  e)
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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

void RawClusterBuilderTemplate::setEnergyNorm ( float  norm)
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().

+ Here is the call graph for this function:

void RawClusterBuilderTemplate::SetProbNoiseParam ( float  rn)
inline

Definition at line 28 of file RawClusterBuilderTemplate.h.

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

References fProbNoiseParam.

void RawClusterBuilderTemplate::SetProfileProb ( bool  pprob)
inline

Definition at line 27 of file RawClusterBuilderTemplate.h.

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

References bProfProb.

Member Data Documentation

RawClusterContainer* RawClusterBuilderTemplate::_clusters
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().

float RawClusterBuilderTemplate::_min_tower_e
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().

BEmcRec* RawClusterBuilderTemplate::bemc
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().

int RawClusterBuilderTemplate::BINX0
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().

int RawClusterBuilderTemplate::BINY0
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().

bool RawClusterBuilderTemplate::bPrintGeom
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().

bool RawClusterBuilderTemplate::bProfProb
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().

int RawClusterBuilderTemplate::chkenergyconservation
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().

std::string RawClusterBuilderTemplate::ClusterNodeName
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().

std::string RawClusterBuilderTemplate::detector
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().

float RawClusterBuilderTemplate::fEnergyNorm
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().

float RawClusterBuilderTemplate::fProbNoiseParam
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().

int RawClusterBuilderTemplate::NBINX
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().

int RawClusterBuilderTemplate::NBINY
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().


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