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

#include <coresoftware/blob/master/offline/packages/CaloBase/RawTower.h>

+ Inheritance diagram for RawTower:
+ Collaboration diagram for RawTower:

Public Types

enum  PROPERTY { prop_scint_gammas = 1, prop_cerenkov_gammas = 2, prop_MAX_NUMBER = UCHAR_MAX }
 
typedef unsigned long long CellKeyType
 key type for cell map which should be consistent with CellKeyType
 
typedef std::map< CellKeyType,
float > 
CellMap
 
typedef CellMap::iterator CellIterator
 
typedef CellMap::const_iterator CellConstIterator
 
typedef std::pair
< CellIterator, CellIterator
CellRange
 
typedef std::pair
< CellConstIterator,
CellConstIterator
CellConstRange
 
typedef std::map< int, float > ShowerMap
 
typedef ShowerMap::iterator ShowerIterator
 
typedef ShowerMap::const_iterator ShowerConstIterator
 
typedef std::pair
< ShowerIterator,
ShowerIterator
ShowerRange
 
typedef std::pair
< ShowerConstIterator,
ShowerConstIterator
ShowerConstRange
 

Public Member Functions

 ~RawTower () override
 
void Reset () override
 Clear Event.
 
int isValid () const override
 isValid returns non zero if object contains vailid data
 
void identify (std::ostream &=std::cout) const override
 
virtual void set_id (RawTowerDefs::keytype)
 
virtual RawTowerDefs::keytype get_id () const
 
virtual void set_key (RawTowerDefs::keytype id)
 
virtual RawTowerDefs::keytype get_key () const
 
virtual int get_bineta () const
 
virtual int get_bintheta () const
 
virtual int get_binphi () const
 
virtual int get_binl () const
 return layer ID assigned to tower
 
virtual int get_column () const
 
virtual int get_row () const
 
virtual double get_energy () const
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual void set_energy (const double)
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual double get_scint_gammas () const
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual void set_scint_gammas (const double)
 scint_gammas assigned to the tower. Depending on stage of process and DST node name, it could be scint_gammas deposition, light yield or calibrated energies
 
virtual double get_cerenkov_gammas () const
 energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies
 
virtual void set_cerenkov_gammas (const double)
 cerenkov_gammas assigned to the tower. Depending on stage of process and DST node name, it could be cerenkov_gammas deposition, light yield or calibrated energies
 
virtual float get_time () const
 Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.
 
virtual void set_time (const float)
 Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.
 
virtual bool empty_g4cells () const
 
virtual size_t size_g4cells () const
 
virtual CellConstRange get_g4cells () const
 
virtual CellIterator find_g4cell (CellKeyType id)
 
virtual CellConstIterator find_g4cell (CellKeyType id) const
 
virtual void add_ecell (const CellKeyType, const float)
 
virtual void clear_g4cells ()
 
virtual bool empty_g4showers () const
 
virtual size_t size_g4showers () const
 
virtual ShowerConstRange get_g4showers () const
 
virtual ShowerIterator find_g4shower (int)
 
virtual ShowerConstIterator find_g4shower (int) const
 
virtual void add_eshower (const int, const float)
 
virtual void clear_g4showers ()
 
virtual bool has_property (const PROPERTY) const
 
virtual double get_property (const PROPERTY) const
 
virtual void set_property (const PROPERTY, const double)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
virtual PHObjectCloneMe () const
 Virtual copy constructor.
 
virtual PHObjectclone () const final
 
PHObjectClone (const char *newname="") const final
 
void Copy (TObject &object) const final
 
virtual int isValid (const float) const
 
virtual int isValid (const double) const
 
virtual int isValid (const int) const
 
virtual int isValid (const unsigned int) const
 
virtual int isImplemented (const float f) const
 
virtual int isImplemented (const double f) const
 
virtual int isImplemented (const int i) const
 
virtual int isImplemented (const unsigned int i) const
 
virtual int Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Static Public Member Functions

static const std::string get_property_info (PROPERTY prop_id)
 

Protected Member Functions

 RawTower ()
 
virtual unsigned int get_property_nocheck (const PROPERTY) const
 
virtual void set_property_nocheck (const PROPERTY, const unsigned int)
 

Detailed Description

Definition at line 17 of file RawTower.h.

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

Member Typedef Documentation

typedef CellMap::const_iterator RawTower::CellConstIterator

Definition at line 25 of file RawTower.h.

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

Definition at line 27 of file RawTower.h.

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

typedef CellMap::iterator RawTower::CellIterator

Definition at line 24 of file RawTower.h.

View newest version in sPHENIX GitHub at line 24 of file RawTower.h

typedef unsigned long long RawTower::CellKeyType

key type for cell map which should be consistent with CellKeyType

Definition at line 21 of file RawTower.h.

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

typedef std::map<CellKeyType, float> RawTower::CellMap

Definition at line 23 of file RawTower.h.

View newest version in sPHENIX GitHub at line 23 of file RawTower.h

Definition at line 26 of file RawTower.h.

View newest version in sPHENIX GitHub at line 26 of file RawTower.h

typedef ShowerMap::const_iterator RawTower::ShowerConstIterator

Definition at line 31 of file RawTower.h.

View newest version in sPHENIX GitHub at line 31 of file RawTower.h

Definition at line 33 of file RawTower.h.

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

typedef ShowerMap::iterator RawTower::ShowerIterator

Definition at line 30 of file RawTower.h.

View newest version in sPHENIX GitHub at line 30 of file RawTower.h

typedef std::map<int, float> RawTower::ShowerMap

Definition at line 29 of file RawTower.h.

View newest version in sPHENIX GitHub at line 29 of file RawTower.h

Definition at line 32 of file RawTower.h.

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

Member Enumeration Documentation

Procedure to add a new PROPERTY tag: 1.add new tag below with unique value, 2.add a short name to RawTower::get_property_info

Enumerator:
prop_scint_gammas 

Scintillation photon count or energy.

prop_cerenkov_gammas 

Cherenkov photon count or energy.

prop_MAX_NUMBER 

max limit in order to fit into 8 bit unsigned number

Definition at line 168 of file RawTower.h.

View newest version in sPHENIX GitHub at line 168 of file RawTower.h

Constructor & Destructor Documentation

RawTower::~RawTower ( )
inlineoverride

Definition at line 35 of file RawTower.h.

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

RawTower::RawTower ( )
inlineprotected

Definition at line 187 of file RawTower.h.

View newest version in sPHENIX GitHub at line 187 of file RawTower.h

Member Function Documentation

virtual void RawTower::add_ecell ( const CellKeyType  ,
const float   
)
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 146 of file RawTower.h.

View newest version in sPHENIX GitHub at line 146 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerBuilder::process_event(), HcalRawTowerBuilder::process_event(), and RawTowerCombiner::process_event().

+ Here is the caller graph for this function:

virtual void RawTower::add_eshower ( const int  ,
const float   
)
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 158 of file RawTower.h.

View newest version in sPHENIX GitHub at line 158 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerBuilder::process_event(), HcalRawTowerBuilder::process_event(), and RawTowerCombiner::process_event().

+ Here is the caller graph for this function:

virtual void RawTower::clear_g4cells ( )
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 151 of file RawTower.h.

View newest version in sPHENIX GitHub at line 151 of file RawTower.h

Referenced by PHG4DstCompressReco::process_event().

+ Here is the caller graph for this function:

virtual void RawTower::clear_g4showers ( )
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 163 of file RawTower.h.

View newest version in sPHENIX GitHub at line 163 of file RawTower.h

virtual bool RawTower::empty_g4cells ( ) const
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 141 of file RawTower.h.

View newest version in sPHENIX GitHub at line 141 of file RawTower.h

virtual bool RawTower::empty_g4showers ( ) const
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 153 of file RawTower.h.

View newest version in sPHENIX GitHub at line 153 of file RawTower.h

RawTower::CellIterator RawTower::find_g4cell ( CellKeyType  id)
virtual

Reimplemented in RawTowerv1.

Definition at line 10 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 10 of file RawTower.cc

References DummyCellMap.

RawTower::CellConstIterator RawTower::find_g4cell ( CellKeyType  id) const
virtual

Reimplemented in RawTowerv1.

Definition at line 15 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 15 of file RawTower.cc

References DummyCellMap.

RawTower::ShowerIterator RawTower::find_g4shower ( int  )
virtual

Reimplemented in RawTowerv1.

Definition at line 32 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 32 of file RawTower.cc

References DummyShowerMap.

Referenced by CaloRawTowerEval::get_energy_contribution().

+ Here is the caller graph for this function:

RawTower::ShowerConstIterator RawTower::find_g4shower ( int  ) const
virtual

Reimplemented in RawTowerv1.

Definition at line 37 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 37 of file RawTower.cc

References DummyShowerMap.

virtual int RawTower::get_binl ( ) const
inlinevirtual

return layer ID assigned to tower

Reimplemented in RawTowerv1.

Definition at line 73 of file RawTower.h.

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

References PHOOL_VIRTUAL_WARN.

Referenced by EventEvaluatorEIC::fillOutputNtuples(), RawTowerCalibration::process_event(), and RawClusterBuilderHelper::process_event().

+ Here is the caller graph for this function:

virtual int RawTower::get_bintheta ( ) const
inlinevirtual

Definition at line 61 of file RawTower.h.

View newest version in sPHENIX GitHub at line 61 of file RawTower.h

References get_bineta().

+ Here is the call graph for this function:

virtual double RawTower::get_cerenkov_gammas ( ) const
inlinevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented in RawTowerv2.

Definition at line 116 of file RawTower.h.

View newest version in sPHENIX GitHub at line 116 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by EventEvaluatorEIC::fillOutputNtuples().

+ Here is the caller graph for this function:

virtual int RawTower::get_column ( ) const
inlinevirtual

Definition at line 78 of file RawTower.h.

View newest version in sPHENIX GitHub at line 78 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

virtual double RawTower::get_energy ( ) const
inlinevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented in RawTowerv1.

Definition at line 90 of file RawTower.h.

View newest version in sPHENIX GitHub at line 90 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerContainer::compress(), RawClusterBuilderFwd::CorrectPhi(), QAG4SimulationCalorimeterSum::eval_trk_proj(), CaloEvaluator::fillOutputNtuples(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), JetRecoEval::get_energy_contribution(), TowerJetInput::get_input(), PHActsTrackProjection::getSquareTowerEnergies(), RawClusterBuilderGraph::process_event(), RawTowerBuilder::process_event(), RawClusterBuilderTemplate::process_event(), RawClusterDeadAreaMask::process_event(), RawClusterPositionCorrection::process_event(), RawClusterBuilderFwd::process_event(), G4ScintillatorTowerTTree::process_event(), G4RawTowerTTree::process_event(), HcalRawTowerBuilder::process_event(), RawTowerDeadTowerInterp::process_event(), RawTowerCalibration::process_event(), RawClusterBuilderTopo::process_event(), RawTowerDigitizer::process_event(), RawClusterBuilderHelper::process_event(), ClusterIso::process_event(), SubtractTowersCS::process_event(), SubtractTowers::process_event(), CopyAndSubtractJets::process_event(), RetowerCEMC::process_event(), CaloTriggerSim::process_event(), DetermineTowerBackground::process_event(), CaloCalibEmc_Pi0::process_event(), PHGenFitTrackProjection::process_event(), LiteCaloEval::process_event(), eIDMLInterface::process_event(), RawTowerCombiner::process_event(), QAG4SimulationCalorimeter::process_event_Tower(), DumpRawTowerContainer::process_Node(), RawTowerv1::RawTowerv1(), RawTowerDigitizer::simple_photon_digitization(), and RawTowerDigitizer::sipm_photon_digitization().

+ Here is the caller graph for this function:

RawTower::CellConstRange RawTower::get_g4cells ( ) const
virtual

Reimplemented in RawTowerv1.

Definition at line 20 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 20 of file RawTower.cc

References DummyCellMap, and PHOOL_VIRTUAL_WARN.

Referenced by CaloRawTowerEval::all_truth_hits(), RawTowerCombiner::process_event(), DumpRawTowerContainer::process_Node(), and RawTowerv1::RawTowerv1().

+ Here is the caller graph for this function:

RawTower::ShowerConstRange RawTower::get_g4showers ( ) const
virtual

Reimplemented in RawTowerv1.

Definition at line 26 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 26 of file RawTower.cc

References DummyShowerMap, and PHOOL_VIRTUAL_WARN.

Referenced by CaloRawTowerEval::all_truth_primary_showers(), CaloRawTowerEval::get_energy_contribution(), RawTowerCombiner::process_event(), DumpRawTowerContainer::process_Node(), and RawTowerv1::RawTowerv1().

+ Here is the caller graph for this function:

virtual RawTowerDefs::keytype RawTower::get_id ( ) const
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 46 of file RawTower.h.

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

References PHOOL_VIRTUAL_WARN.

Referenced by RawClusterBuilderFwd::CorrectPhi(), CaloEvaluator::fillOutputNtuples(), TowerJetInput::get_input(), get_key(), RawClusterBuilderGraph::process_event(), RawClusterBuilderTemplate::process_event(), RawClusterBuilderFwd::process_event(), RawTowerDeadTowerInterp::process_event(), RawTowerCalibration::process_event(), LiteCaloEval::process_event(), and RawTowerv1::RawTowerv1().

+ Here is the caller graph for this function:

virtual RawTowerDefs::keytype RawTower::get_key ( ) const
inlinevirtual

Definition at line 53 of file RawTower.h.

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

References get_id().

Referenced by TowerJetInput::get_input(), RawClusterBuilderTopo::process_event(), ParticleFlowReco::process_event(), ClusterIso::process_event(), SubtractTowersCS::process_event(), SubtractTowers::process_event(), RetowerCEMC::process_event(), CaloTriggerSim::process_event(), CopyAndSubtractJets::process_event(), and DetermineTowerBackground::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual double RawTower::get_property ( const PROPERTY  ) const
inlinevirtual

Reimplemented in RawTowerv2.

Definition at line 182 of file RawTower.h.

View newest version in sPHENIX GitHub at line 182 of file RawTower.h

Referenced by RawTowerv2::RawTowerv2().

+ Here is the caller graph for this function:

const std::string RawTower::get_property_info ( RawTower::PROPERTY  prop_id)
static

Definition at line 42 of file RawTower.cc.

View newest version in sPHENIX GitHub at line 42 of file RawTower.cc

References g4zmq::exit(), prop_cerenkov_gammas, and prop_scint_gammas.

Referenced by RawTowerv2::identify().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual unsigned int RawTower::get_property_nocheck ( const PROPERTY  ) const
inlineprotectedvirtual

Definition at line 189 of file RawTower.h.

View newest version in sPHENIX GitHub at line 189 of file RawTower.h

virtual int RawTower::get_row ( ) const
inlinevirtual

Definition at line 83 of file RawTower.h.

View newest version in sPHENIX GitHub at line 83 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

virtual double RawTower::get_scint_gammas ( ) const
inlinevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented in RawTowerv2.

Definition at line 103 of file RawTower.h.

View newest version in sPHENIX GitHub at line 103 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by EventEvaluatorEIC::fillOutputNtuples().

+ Here is the caller graph for this function:

virtual float RawTower::get_time ( ) const
inlinevirtual

Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.

Reimplemented in RawTowerv1.

Definition at line 129 of file RawTower.h.

View newest version in sPHENIX GitHub at line 129 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerCombiner::process_event(), and RawTowerv1::RawTowerv1().

+ Here is the caller graph for this function:

virtual bool RawTower::has_property ( const PROPERTY  ) const
inlinevirtual

Reimplemented in RawTowerv2.

Definition at line 181 of file RawTower.h.

View newest version in sPHENIX GitHub at line 181 of file RawTower.h

Referenced by RawTowerv2::RawTowerv2().

+ Here is the caller graph for this function:

void RawTower::identify ( std::ostream &  os = std::cout) const
inlineoverridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Reimplemented in RawTowerv1, and RawTowerv2.

Definition at line 43 of file RawTower.h.

View newest version in sPHENIX GitHub at line 43 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by CaloEvaluator::fillOutputNtuples(), RawTowerBuilder::process_event(), RawTowerDigitizer::process_event(), LiteCaloEval::process_event(), eIDMLInterface::process_event(), RawTowerCombiner::process_event(), RawTowerDigitizer::simple_photon_digitization(), and RawTowerDigitizer::sipm_photon_digitization().

+ Here is the caller graph for this function:

int RawTower::isValid ( ) const
inlineoverridevirtual

isValid returns non zero if object contains vailid data

Reimplemented from PHObject.

Reimplemented in RawTowerv1, and RawTowerv2.

Definition at line 38 of file RawTower.h.

View newest version in sPHENIX GitHub at line 38 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

void RawTower::Reset ( )
inlineoverridevirtual

Clear Event.

Reimplemented from PHObject.

Reimplemented in RawTowerv1, and RawTowerv2.

Definition at line 37 of file RawTower.h.

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

References PHOOL_VIRTUAL_WARNING.

virtual void RawTower::set_cerenkov_gammas ( const double  )
inlinevirtual

cerenkov_gammas assigned to the tower. Depending on stage of process and DST node name, it could be cerenkov_gammas deposition, light yield or calibrated energies

Reimplemented in RawTowerv2.

Definition at line 122 of file RawTower.h.

View newest version in sPHENIX GitHub at line 122 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

virtual void RawTower::set_energy ( const double  )
inlinevirtual

energy assigned to the tower. Depending on stage of process and DST node name, it could be energy deposition, light yield or calibrated energies

Reimplemented in RawTowerv1.

Definition at line 96 of file RawTower.h.

View newest version in sPHENIX GitHub at line 96 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerBuilder::process_event(), RawTowerDeadTowerInterp::process_event(), HcalRawTowerBuilder::process_event(), RawTowerCalibration::process_event(), SubtractTowers::process_event(), SubtractTowersCS::process_event(), RetowerCEMC::process_event(), RawTowerCombiner::process_event(), RawTowerDigitizer::simple_photon_digitization(), and RawTowerDigitizer::sipm_photon_digitization().

+ Here is the caller graph for this function:

virtual void RawTower::set_id ( RawTowerDefs::keytype  )
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 45 of file RawTower.h.

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

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerContainer::AddTower(), and set_key().

+ Here is the caller graph for this function:

virtual void RawTower::set_key ( RawTowerDefs::keytype  id)
inlinevirtual

Definition at line 52 of file RawTower.h.

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

References set_id().

+ Here is the call graph for this function:

virtual void RawTower::set_property ( const PROPERTY  ,
const double   
)
inlinevirtual

Reimplemented in RawTowerv2.

Definition at line 183 of file RawTower.h.

View newest version in sPHENIX GitHub at line 183 of file RawTower.h

virtual void RawTower::set_property_nocheck ( const PROPERTY  ,
const unsigned  int 
)
inlineprotectedvirtual

Definition at line 190 of file RawTower.h.

View newest version in sPHENIX GitHub at line 190 of file RawTower.h

virtual void RawTower::set_scint_gammas ( const double  )
inlinevirtual

scint_gammas assigned to the tower. Depending on stage of process and DST node name, it could be scint_gammas deposition, light yield or calibrated energies

Reimplemented in RawTowerv2.

Definition at line 109 of file RawTower.h.

View newest version in sPHENIX GitHub at line 109 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

virtual void RawTower::set_time ( const float  )
inlinevirtual

Time stamp assigned to the tower. Depending on the tower maker, it could be rise time or peak time.

Reimplemented in RawTowerv1.

Definition at line 135 of file RawTower.h.

View newest version in sPHENIX GitHub at line 135 of file RawTower.h

References PHOOL_VIRTUAL_WARN.

Referenced by RawTowerCombiner::process_event().

+ Here is the caller graph for this function:

virtual size_t RawTower::size_g4cells ( ) const
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 142 of file RawTower.h.

View newest version in sPHENIX GitHub at line 142 of file RawTower.h

virtual size_t RawTower::size_g4showers ( ) const
inlinevirtual

Reimplemented in RawTowerv1.

Definition at line 154 of file RawTower.h.

View newest version in sPHENIX GitHub at line 154 of file RawTower.h


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