ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <coresoftware/blob/master/simulation/g4simulation/g4main/PHG4HitContainer.h>
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) |
PHG4Hit * | findHit (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, LayerIter > | getLayers () 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 PHObject * | CloneMe () const |
Virtual copy constructor. | |
virtual PHObject * | clone () const final |
PHObject * | Clone (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 int > | layers |
Definition at line 18 of file PHG4HitContainer.h.
View newest version in sPHENIX GitHub at line 18 of file PHG4HitContainer.h
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
typedef std::pair<ConstIterator, ConstIterator> PHG4HitContainer::ConstRange |
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
typedef std::map<PHG4HitDefs::keytype, PHG4Hit *> PHG4HitContainer::Map |
Definition at line 22 of file PHG4HitContainer.h.
View newest version in sPHENIX GitHub at line 22 of file PHG4HitContainer.h
typedef std::pair<Iterator, Iterator> PHG4HitContainer::Range |
Definition at line 25 of file PHG4HitContainer.h.
View newest version in sPHENIX GitHub at line 25 of file PHG4HitContainer.h
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
|
inlineoverride |
Definition at line 32 of file PHG4HitContainer.h.
View newest version in sPHENIX GitHub at line 32 of file PHG4HitContainer.h
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().
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().
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(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4BlockSubsystem::InitRunSubsystem(), EICG4BwdSubsystem::InitRunSubsystem(), EICG4RPSubsystem::InitRunSubsystem(), PHG4CylinderStripSubsystem::InitRunSubsystem(), EICG4B0ECALSubsystem::InitRunSubsystem(), EICG4B0Subsystem::InitRunSubsystem(), EICG4LumiSubsystem::InitRunSubsystem(), PHG4SpacalSubsystem::InitRunSubsystem(), and CreateCZHitContainer::process_event().
PHG4Hit * PHG4HitContainer::findHit | ( | PHG4HitDefs::keytype | key | ) |
Definition at line 166 of file PHG4HitContainer.cc.
View newest version in sPHENIX GitHub at line 166 of file PHG4HitContainer.cc
Referenced by SvtxHitEval::all_truth_hits(), SvtxClusterEval::all_truth_hits(), CaloTruthEval::all_truth_hits(), CaloRawTowerEval::all_truth_hits(), SvtxClusterEval::all_truth_hits_by_nhit(), QAG4SimulationIntt::find_g4hits(), QAG4SimulationMvtx::find_g4hits(), QAG4SimulationMicromegas::find_g4hits(), QAG4SimulationTpc::find_g4hits(), QAG4SimulationTracking::find_g4hits(), DSTEmulator::find_g4hits(), TrackEvaluation::find_g4hits(), PHTruthSiliconAssociation::getG4PrimaryParticle(), PHTruthSiliconAssociation::getSiliconClustersFromParticle(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), PHSiliconTruthTrackSeeding::Process(), and PHG4TruthEventAction::ProcessShowers().
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().
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().
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().
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().
|
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().
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().
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().
|
overridevirtual |
identify Function from PHObject
os | Output 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().
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().
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().
|
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().
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
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().
|
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().
|
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().
|
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().