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

#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4HitContainer.h>

+ Inheritance diagram for PHG4HitContainer:
+ Collaboration diagram for PHG4HitContainer:

Public Types

typedef std::map
< PHG4HitDefs::keytype,
PHG4Hit * > 
Map
 
typedef Map::iterator Iterator
 
typedef Map::const_iterator ConstIterator
 
typedef std::pair< Iterator,
Iterator
Range
 
typedef std::pair
< ConstIterator, ConstIterator
ConstRange
 
typedef std::set< unsigned int >
::const_iterator 
LayerIter
 

Public Member Functions

 PHG4HitContainer ()
 
 PHG4HitContainer (const std::string &nodename)
 
 ~PHG4HitContainer () override
 
void Reset () override
 Clear Event.
 
void identify (std::ostream &os=std::cout) const override
 
void SetID (int i)
 container ID should follow definition of PHG4HitDefs::get_volume_id(DST nodename)
 
int GetID () const
 
ConstIterator AddHit (PHG4Hit *newhit)
 
ConstIterator AddHit (const unsigned int detid, PHG4Hit *newhit)
 
Iterator findOrAddHit (PHG4HitDefs::keytype key)
 
PHG4HitfindHit (PHG4HitDefs::keytype key)
 
PHG4HitDefs::keytype genkey (const unsigned int detid)
 
ConstRange getHits (const unsigned int detid) const
 return all hits matching a given detid
 
ConstRange getHits (void) const
 return all hist
 
unsigned int size (void) const
 
unsigned int num_layers (void) const
 
std::pair< LayerIter, LayerItergetLayers () const
 
void AddLayer (const unsigned int ilayer)
 
void RemoveZeroEDep ()
 
PHG4HitDefs::keytype getmaxkey (const unsigned int detid)
 
- 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
 isValid returns non zero if object contains vailid data
 
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)
 

Protected Attributes

int id
 
Map hitmap
 
std::set< unsigned intlayers
 

Detailed Description

Definition at line 18 of file PHG4HitContainer.h.

View newest version in sPHENIX GitHub at line 18 of file PHG4HitContainer.h

Member Typedef Documentation

typedef Map::const_iterator PHG4HitContainer::ConstIterator

Definition at line 24 of file PHG4HitContainer.h.

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

Definition at line 26 of file PHG4HitContainer.h.

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

typedef Map::iterator PHG4HitContainer::Iterator

Definition at line 23 of file PHG4HitContainer.h.

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

typedef std::set<unsigned int>::const_iterator PHG4HitContainer::LayerIter

Definition at line 27 of file PHG4HitContainer.h.

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

Definition at line 22 of file PHG4HitContainer.h.

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

Definition at line 25 of file PHG4HitContainer.h.

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

Constructor & Destructor Documentation

PHG4HitContainer::PHG4HitContainer ( )

Definition at line 14 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 14 of file PHG4HitContainer.cc

PHG4HitContainer::PHG4HitContainer ( const std::string &  nodename)

Definition at line 19 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 19 of file PHG4HitContainer.cc

PHG4HitContainer::~PHG4HitContainer ( )
inlineoverride

Definition at line 32 of file PHG4HitContainer.h.

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

Member Function Documentation

PHG4HitContainer::ConstIterator PHG4HitContainer::AddHit ( PHG4Hit newhit)

Definition at line 108 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 108 of file PHG4HitContainer.cc

References PHG4Hit::get_hit_id(), PHG4HitDefs::hit_idbits, hitmap, and layers.

Referenced by PHG4TpcDirectLaser::AppendLaserTrack(), PHG4RICHSteppingAction::MakeHit(), PHG4GenHit::process_event(), CreateCZHitContainer::process_event(), PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4ConeSteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), PHG4TpcSteppingAction::UserSteppingAction(), PHG4EnvelopeSteppingAction::UserSteppingAction(), PHG4SectorSteppingAction::UserSteppingAction(), PHG4FPbScRegionSteppingAction::UserSteppingAction(), G4JLeicBeamLineMagnetSteppingAction::UserSteppingAction(), G4JLeicDIRCSteppingAction::UserSteppingAction(), G4JLeicVTXSteppingAction::UserSteppingAction(), G4LBLVtxSteppingAction::UserSteppingAction(), PHG4PSTOFSteppingAction::UserSteppingAction(), PHG4EPDSteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4HcalSteppingAction::UserSteppingAction(), AllSiliconTrackerSteppingAction::UserSteppingAction(), PHG4InnerHcalSteppingAction::UserSteppingAction(), PHG4CEmcTestBeamSteppingAction::UserSteppingAction(), AllSi_Al_support_SteppingAction::UserSteppingAction(), PHG4OuterHcalSteppingAction::UserSteppingAction(), EicFRichSteppingAction::UserSteppingAction(), PHG4CylinderStripSteppingAction::UserSteppingAction(), BeastMagnetSteppingAction::UserSteppingAction(), PHG4BbcSteppingAction::UserSteppingAction(), PHG4BarrelEcalSteppingAction::UserSteppingAction(), EICG4ZDCSteppingAction::UserSteppingAction(), BeamLineMagnetSteppingAction::UserSteppingAction(), EICG4dRICHSteppingAction::UserSteppingAction(), PHG4ForwardEcalSteppingAction::UserSteppingAction(), PHG4BackwardHcalSteppingAction::UserSteppingAction(), PHG4CrystalCalorimeterSteppingAction::UserSteppingAction(), PHG4LFHcalSteppingAction::UserSteppingAction(), PHG4HybridHomogeneousCalorimeterSteppingAction::UserSteppingAction(), PHG4TpcEndCapSteppingAction::UserSteppingAction(), PHG4mRICHSteppingAction::UserSteppingAction(), PHG4ForwardDualReadoutSteppingAction::UserSteppingAction(), PHG4ECAPToFSteppingAction::UserSteppingAction(), PHG4ForwardHcalSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), EICG4RPSteppingAction::UserSteppingAction(), PHG4TRDSteppingAction::UserSteppingAction(), G4EicDircSteppingAction::UserSteppingAction(), PHG4ZDCSteppingAction::UserSteppingAction(), PHG4MicromegasSteppingAction::UserSteppingAction(), EICG4BwdSteppingAction::UserSteppingAction(), EICG4B0ECALSteppingAction::UserSteppingAction(), EICG4B0SteppingAction::UserSteppingAction(), EICG4LumiSteppingAction::UserSteppingAction(), PHG4SpacalSteppingAction::UserSteppingAction(), and PHG4TTLSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

PHG4HitContainer::ConstIterator PHG4HitContainer::AddHit ( const unsigned int  detid,
PHG4Hit newhit 
)

Definition at line 123 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 123 of file PHG4HitContainer.cc

References genkey(), hitmap, layers, and PHG4Hit::set_hit_id().

+ Here is the call graph for this function:

void PHG4HitContainer::AddLayer ( const unsigned int  ilayer)
inline
PHG4HitContainer::Iterator PHG4HitContainer::findOrAddHit ( PHG4HitDefs::keytype  key)

Definition at line 151 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 151 of file PHG4HitContainer.cc

References PHG4Hit::get_layer(), hitmap, it, layers, PHG4Hit::set_edep(), and PHG4Hit::set_hit_id().

Referenced by PHG4FPbScSteppingAction::UserSteppingAction(), and PHG4FCalSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4HitDefs::keytype PHG4HitContainer::genkey ( const unsigned int  detid)

Definition at line 79 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 79 of file PHG4HitContainer.cc

References g4zmq::exit(), getmaxkey(), PHG4HitDefs::hit_idbits, hitmap, PHG4HitDefs::keybits, and PHWHERE.

Referenced by AddHit().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4HitContainer::ConstRange PHG4HitContainer::getHits ( const unsigned int  detid) const

return all hits matching a given detid

Definition at line 131 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 131 of file PHG4HitContainer.cc

References g4zmq::exit(), PHG4HitDefs::hit_idbits, hitmap, and PHG4HitDefs::keybits.

Referenced by SvtxTruthEval::all_truth_hits(), PHTruthClustering::all_truth_hits(), CaloTruthEval::all_truth_hits(), PHG4HcalCellReco::CheckEnergy(), PHG4ForwardCalCellReco::CheckEnergy(), B0TrackFastSimEval::fill_track_tree(), TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), SvtxTruthEval::FillTruthHitsFromParticleCache(), EICG4dRICHTree::getHits(), PHG4HitReadBack::process_event(), PHG4ConsistencyCheck::process_event(), G4HitTTree::process_event(), TPCIntegratedCharge::process_event(), PHG4MvtxHitReco::process_event(), PHG4HcalCellReco::process_event(), PHG4ForwardCalCellReco::process_event(), PHG4InttHitReco::process_event(), CreateCZHitContainer::process_event(), PHG4DstCompressReco::process_event(), PHG4BlockCellReco::process_event(), B0RawTowerBuilderByHitIndex::process_event(), BwdRawTowerBuilderByHitIndex::process_event(), RawTowerBuilderDRCALO::process_event(), RawTowerBuilderByHitIndexBECAL::process_event(), RawTowerBuilderByHitIndexLHCal::process_event(), RawTowerBuilderByHitIndex::process_event(), EICG4ZDCRawTowerBuilderByHitIndex::process_event(), PHG4CylinderCellReco::process_event(), G4EdepNtuple::process_event(), EICG4ZDCHitTree::process_event(), PHG4FullProjSpacalCellReco::process_event(), EICG4RPHitTree::process_event(), EICG4ZDCNtuple::process_event(), G4SnglNtuple::process_event(), SimpleNtuple::process_event(), G4HitNtuple::process_event(), TPCDataStreamEmulator::process_event(), PHG4DSTReader::process_event(), ECCEFastPIDReco::process_event(), TpcRS::process_event(), getVectors::process_event(), RawDigitBuilderTTL::process_event(), QAG4SimulationCalorimeter::process_event_G4Hit(), CaloAna::process_g4hits(), FarForwardEvaluator::process_g4hits_B0(), FarForwardEvaluator::process_g4hits_RomanPots(), FarForwardEvaluator::process_g4hits_ZDC(), G4SnglTree::process_hit(), G4DIRCTree::process_hit(), and DumpPHG4HitContainer::process_Node().

+ Here is the call graph for this function:

PHG4HitContainer::ConstRange PHG4HitContainer::getHits ( void  ) const

return all hist

Definition at line 147 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 147 of file PHG4HitContainer.cc

References hitmap.

Referenced by getmaxkey().

+ Here is the caller graph for this function:

int PHG4HitContainer::GetID ( ) const
inline

Definition at line 40 of file PHG4HitContainer.h.

View newest version in sPHENIX GitHub at line 40 of file PHG4HitContainer.h

References id.

Referenced by PHG4TrackFastSim::GetNodes(), B0TrackFastSim::GetNodes(), PHG4RICHSteppingAction::MakeHit(), PHG4FPbScSteppingAction::UserSteppingAction(), PHG4FCalSteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), PHG4ConeSteppingAction::UserSteppingAction(), PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4TpcSteppingAction::UserSteppingAction(), PHG4EnvelopeSteppingAction::UserSteppingAction(), PHG4SectorSteppingAction::UserSteppingAction(), PHG4FPbScRegionSteppingAction::UserSteppingAction(), PHG4PSTOFSteppingAction::UserSteppingAction(), G4JLeicBeamLineMagnetSteppingAction::UserSteppingAction(), G4JLeicDIRCSteppingAction::UserSteppingAction(), G4JLeicVTXSteppingAction::UserSteppingAction(), G4LBLVtxSteppingAction::UserSteppingAction(), AllSi_Al_support_SteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), PHG4InnerHcalSteppingAction::UserSteppingAction(), PHG4HcalSteppingAction::UserSteppingAction(), PHG4OuterHcalSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4CEmcTestBeamSteppingAction::UserSteppingAction(), AllSiliconTrackerSteppingAction::UserSteppingAction(), EicFRichSteppingAction::UserSteppingAction(), PHG4CylinderStripSteppingAction::UserSteppingAction(), BeastMagnetSteppingAction::UserSteppingAction(), PHG4EPDSteppingAction::UserSteppingAction(), PHG4BbcSteppingAction::UserSteppingAction(), PHG4BarrelEcalSteppingAction::UserSteppingAction(), EICG4ZDCSteppingAction::UserSteppingAction(), EICG4dRICHSteppingAction::UserSteppingAction(), BeamLineMagnetSteppingAction::UserSteppingAction(), PHG4ECAPToFSteppingAction::UserSteppingAction(), PHG4ForwardEcalSteppingAction::UserSteppingAction(), PHG4LFHcalSteppingAction::UserSteppingAction(), PHG4HybridHomogeneousCalorimeterSteppingAction::UserSteppingAction(), PHG4CrystalCalorimeterSteppingAction::UserSteppingAction(), PHG4TpcEndCapSteppingAction::UserSteppingAction(), PHG4mRICHSteppingAction::UserSteppingAction(), PHG4BackwardHcalSteppingAction::UserSteppingAction(), PHG4ForwardDualReadoutSteppingAction::UserSteppingAction(), EICG4RPSteppingAction::UserSteppingAction(), PHG4ForwardHcalSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4TRDSteppingAction::UserSteppingAction(), PHG4ZDCSteppingAction::UserSteppingAction(), PHG4MicromegasSteppingAction::UserSteppingAction(), EICG4B0SteppingAction::UserSteppingAction(), EICG4B0ECALSteppingAction::UserSteppingAction(), EICG4BwdSteppingAction::UserSteppingAction(), PHG4SpacalSteppingAction::UserSteppingAction(), EICG4LumiSteppingAction::UserSteppingAction(), and PHG4TTLSteppingAction::UserSteppingAction().

std::pair<LayerIter, LayerIter> PHG4HitContainer::getLayers ( ) const
inline

Definition at line 62 of file PHG4HitContainer.h.

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

References layers.

Referenced by PHG4MvtxHitReco::process_event(), PHG4ForwardCalCellReco::process_event(), CreateCZHitContainer::process_event(), PHG4BlockCellReco::process_event(), and PHG4CylinderCellReco::process_event().

+ Here is the caller graph for this function:

PHG4HitDefs::keytype PHG4HitContainer::getmaxkey ( const unsigned int  detid)

Definition at line 55 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 55 of file PHG4HitContainer.cc

References getHits(), PHG4HitDefs::hit_idbits, and hitmap.

Referenced by genkey().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4HitContainer::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 36 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 36 of file PHG4HitContainer.cc

References hitmap, layers, num_layers(), and size().

Referenced by PHG4HitReadBack::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int PHG4HitContainer::num_layers ( void  ) const
inline

Definition at line 60 of file PHG4HitContainer.h.

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

References layers.

Referenced by identify(), and DumpPHG4HitContainer::process_Node().

+ Here is the caller graph for this function:

void PHG4HitContainer::RemoveZeroEDep ( )

Definition at line 178 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 178 of file PHG4HitContainer.cc

References PHG4Hit::get_edep(), and hitmap.

Referenced by PHG4EventActionClearZeroEdep::EndOfEventAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PHG4HitContainer::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 25 of file PHG4HitContainer.cc.

View newest version in sPHENIX GitHub at line 25 of file PHG4HitContainer.cc

References hitmap.

Referenced by PHG4DstCompressReco::process_event().

+ Here is the caller graph for this function:

void PHG4HitContainer::SetID ( int  i)
inline

container ID should follow definition of PHG4HitDefs::get_volume_id(DST nodename)

Definition at line 39 of file PHG4HitContainer.h.

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

unsigned int PHG4HitContainer::size ( void  ) const
inline

Definition at line 58 of file PHG4HitContainer.h.

View newest version in sPHENIX GitHub at line 58 of file PHG4HitContainer.h

References hitmap.

Referenced by B0TrackFastSimEval::fill_track_tree(), PHG4TrackFastSimEval::fill_track_tree(), EventEvaluator::fillOutputNtuples(), EventEvaluatorEIC::fillOutputNtuples(), identify(), EICG4RPHitTree::process_event(), PHG4DSTReader::process_event(), QAG4SimulationCalorimeter::process_event_G4Hit(), and DumpPHG4HitContainer::process_Node().

+ Here is the caller graph for this function:

Member Data Documentation

Map PHG4HitContainer::hitmap
protected

Definition at line 71 of file PHG4HitContainer.h.

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

Referenced by AddHit(), findHit(), findOrAddHit(), genkey(), getHits(), getmaxkey(), identify(), RemoveZeroEDep(), Reset(), and size().

int PHG4HitContainer::id
protected

Definition at line 70 of file PHG4HitContainer.h.

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

Referenced by GetID().

std::set<unsigned int> PHG4HitContainer::layers
protected

Definition at line 72 of file PHG4HitContainer.h.

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

Referenced by AddHit(), AddLayer(), findOrAddHit(), getLayers(), identify(), and num_layers().


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