Analysis Software
Documentation for sPHENIX simulation 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 Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Protected Attributes

int id
 
Map hitmap
 
std::set< unsigned int > layers
 

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(), PHG4GenHit::process_event(), PHG4ConeSteppingAction::UserSteppingAction(), PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4SectorSteppingAction::UserSteppingAction(), G4Example01SteppingAction::UserSteppingAction(), PHG4CEmcTestBeamSteppingAction::UserSteppingAction(), PHG4Prototype3InnerHcalSteppingAction::UserSteppingAction(), G4Example02SteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), PHG4EnvelopeSteppingAction::UserSteppingAction(), PHG4PSTOFSteppingAction::UserSteppingAction(), G4Example03SteppingAction::UserSteppingAction(), PHG4Prototype2OuterHcalSteppingAction::UserSteppingAction(), PHG4Prototype2InnerHcalSteppingAction::UserSteppingAction(), PHG4EPDSteppingAction::UserSteppingAction(), PHG4HcalSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4TpcSteppingAction::UserSteppingAction(), PHG4BbcSteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), BeamLineMagnetSteppingAction::UserSteppingAction(), PHG4InnerHcalSteppingAction::UserSteppingAction(), PHG4OuterHcalSteppingAction::UserSteppingAction(), PHG4TpcEndCapSteppingAction::UserSteppingAction(), PHG4HcalPrototypeSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4OHCalSteppingAction::UserSteppingAction(), PHG4IHCalSteppingAction::UserSteppingAction(), PHG4MicromegasSteppingAction::UserSteppingAction(), PHG4ZDCSteppingAction::UserSteppingAction(), PHG4SpacalPrototype4SteppingAction::UserSteppingAction(), PHG4SpacalPrototypeSteppingAction::UserSteppingAction(), and PHG4SpacalSteppingAction::UserSteppingAction().

+ Here is the call graph for this function:

+ Here is the caller 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

Definition at line 64 of file PHG4HitContainer.h.

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

References layers.

Referenced by PHG4HcalSubsystem::InitRun(), PHG4SpacalPrototype4Subsystem::InitRunSubsystem(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4SpacalPrototypeSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), and PHG4SpacalSubsystem::InitRunSubsystem().

+ Here is the caller graph for this function:

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

+ Here is the call 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 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 PHG4HitDefs::hit_idbits, hitmap, and PHG4HitDefs::keybits.

Referenced by SvtxTruthEval::all_truth_hits(), PHTruthClustering::all_truth_hits(), CaloTruthEval::all_truth_hits(), PHG4Prototype2HcalCellReco::CheckEnergy(), PHG4HcalCellReco::CheckEnergy(), PHAna::fill_sf_ntuple(), PHG4TrackFastSimEval::fill_track_tree(), EventEvaluator::fillOutputNtuples(), SvtxTruthEval::FillTruthHitsFromParticleCache(), SetupDualRICHAnalyzer::get_emission_momentum(), IsolatedTrackAnalysis::getAddTruth(), JetEnergies::GetTotalEnergy(), PHG4HitReadBack::process_event(), HCALAnalysis::process_event(), g4hitshifthcal::process_event(), PHG4ConsistencyCheck::process_event(), g4hitshift::process_event(), G4HitTTree::process_event(), PHG4Prototype2HcalCellReco::process_event(), TPCIntegratedCharge::process_event(), PHG4HcalCellReco::process_event(), PHG4EPDModuleReco::process_event(), RawTowerBuilderByHitIndex::process_event(), PHG4BlockCellReco::process_event(), PHG4CylinderCellReco::process_event(), G4EdepNtuple::process_event(), G4SnglNtuple::process_event(), G4HitNtuple::process_event(), ShowerSize::process_event(), EdepNtuple::process_event(), PHG4FullProjSpacalCellReco::process_event(), TimingNtuple::process_event(), TPCDataStreamEmulator::process_event(), PHG4InttHitReco::process_event(), HijingShowerSize::process_event(), SynRadAna::process_event(), SigmaTimingNtuple::process_event(), MBDStudy::process_event(), Proto4SampleFrac::process_event(), MbdDigitization::process_event(), BBCStudy::process_event(), TPCMLDataInterface::process_event(), PHG4DSTReader::process_event(), TruthCaloTree::process_event(), CaloWaveformSim::process_event(), fillSpaceChargeMaps::process_event(), QAG4SimulationCalorimeter::process_event_G4Hit(), EMCalAna::process_event_SF(), EMCalCalib::process_event_SF(), CaloWaveFormSim::process_g4hits(), CaloAna::process_g4hits(), G4SnglTree::process_hit(), and DumpPHG4HitContainer::process_Node().

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 PHG4ConeSteppingAction::UserSteppingAction(), PHG4EICMvtxSteppingAction::UserSteppingAction(), PHG4SectorSteppingAction::UserSteppingAction(), G4Example01SteppingAction::UserSteppingAction(), PHG4CEmcTestBeamSteppingAction::UserSteppingAction(), PHG4PSTOFSteppingAction::UserSteppingAction(), PHG4MvtxSteppingAction::UserSteppingAction(), G4Example03SteppingAction::UserSteppingAction(), G4Example02SteppingAction::UserSteppingAction(), PHG4EnvelopeSteppingAction::UserSteppingAction(), PHG4Prototype2InnerHcalSteppingAction::UserSteppingAction(), PHG4Prototype2OuterHcalSteppingAction::UserSteppingAction(), PHG4Prototype3InnerHcalSteppingAction::UserSteppingAction(), PHG4HcalSteppingAction::UserSteppingAction(), PHG4EPDSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4TpcSteppingAction::UserSteppingAction(), PHG4BbcSteppingAction::UserSteppingAction(), PHG4InttSteppingAction::UserSteppingAction(), BeamLineMagnetSteppingAction::UserSteppingAction(), PHG4InnerHcalSteppingAction::UserSteppingAction(), PHG4OuterHcalSteppingAction::UserSteppingAction(), PHG4TpcEndCapSteppingAction::UserSteppingAction(), PHG4HcalPrototypeSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4OHCalSteppingAction::UserSteppingAction(), PHG4IHCalSteppingAction::UserSteppingAction(), PHG4MicromegasSteppingAction::UserSteppingAction(), PHG4ZDCSteppingAction::UserSteppingAction(), PHG4SpacalPrototype4SteppingAction::UserSteppingAction(), PHG4SpacalPrototypeSteppingAction::UserSteppingAction(), and PHG4SpacalSteppingAction::UserSteppingAction().

+ Here is the caller graph for this function:

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 PHG4Prototype2HcalCellReco::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.

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

References i.

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 PHG4TrackFastSimEval::fill_track_tree(), EventEvaluator::fillOutputNtuples(), identify(), HitCountNtuple::process_event(), HijingCountNtuple::process_event(), SynRadAna::process_event(), Proto4SampleFrac::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: