Analysis Software
Documentation for sPHENIX simulation software
|
#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 | 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(), 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().
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().
|
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().
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().
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().
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().
|
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().
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().
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().
|
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().
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.
|
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.
|
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().
|
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().