|
Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/simulation/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) | |
| virtual | ~PHG4HitContainer () |
| void | Reset () |
| Clear Event. More... | |
| void | identify (std::ostream &os=std::cout) const |
| void | SetID (int i) |
| container ID should follow definition of PHG4HitDefs::get_volume_id(DST nodename) More... | |
| 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 More... | |
| ConstRange | getHits (void) const |
| return all hist More... | |
| 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) |
| void | registerHitOnLayer (const PHG4Hit *hit) |
Public Member Functions inherited from PHObject | |
| PHObject () | |
| ctor More... | |
| virtual | ~PHObject () |
| dtor More... | |
| virtual PHObject * | clone () const |
| Virtual copy constructor. More... | |
| virtual int | isValid () const |
| isValid returns non zero if object contains vailid data More... | |
| 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 |
| void | SplitLevel (const int i) |
| int | SplitLevel () const |
| void | BufferSize (const int i) |
| int | BufferSize () const |
Protected Attributes | |
| int | id |
| Map | hitmap |
| std::set< unsigned int > | layers |
| std::map< unsigned int, PHG4HitDefs::keytype > | layerMaxID |
Definition at line 12 of file PHG4HitContainer.h.
| typedef Map::const_iterator PHG4HitContainer::ConstIterator |
Definition at line 18 of file PHG4HitContainer.h.
| typedef std::pair<ConstIterator, ConstIterator> PHG4HitContainer::ConstRange |
Definition at line 20 of file PHG4HitContainer.h.
| typedef Map::iterator PHG4HitContainer::Iterator |
Definition at line 17 of file PHG4HitContainer.h.
| typedef std::set<unsigned int>::const_iterator PHG4HitContainer::LayerIter |
Definition at line 21 of file PHG4HitContainer.h.
| typedef std::map<PHG4HitDefs::keytype, PHG4Hit *> PHG4HitContainer::Map |
Definition at line 16 of file PHG4HitContainer.h.
| typedef std::pair<Iterator, Iterator> PHG4HitContainer::Range |
Definition at line 19 of file PHG4HitContainer.h.
| PHG4HitContainer::PHG4HitContainer | ( | ) |
Definition at line 13 of file PHG4HitContainer.cc.
| PHG4HitContainer::PHG4HitContainer | ( | const std::string & | nodename | ) |
Definition at line 18 of file PHG4HitContainer.cc.
|
inlinevirtual |
Definition at line 26 of file PHG4HitContainer.h.
| PHG4HitContainer::ConstIterator PHG4HitContainer::AddHit | ( | const unsigned int | detid, |
| PHG4Hit * | newhit | ||
| ) |
Definition at line 108 of file PHG4HitContainer.cc.
References genkey(), hitmap, registerHitOnLayer(), and PHG4Hit::set_hit_id().
Here is the call graph for this function:| PHG4HitContainer::ConstIterator PHG4HitContainer::AddHit | ( | PHG4Hit * | newhit | ) |
Definition at line 93 of file PHG4HitContainer.cc.
References PHG4Hit::get_hit_id(), hitmap, and registerHitOnLayer().
Referenced by PHG4GenHit::process_event(), PHG4ConeRegionSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4BNLTargetCoilSteppingAction::UserSteppingAction(), PHG4CollimatorSteppingAction::UserSteppingAction(), PHG4ConeSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4EMCalSteppingAction::UserSteppingAction(), PHG4PolyconSteppingAction::UserSteppingAction(), PHG4SquareTubeSteppingAction::UserSteppingAction(), PHG4TargetCoilSteppingAction::UserSteppingAction(), and PHG4TargetCoilV2SteppingAction::UserSteppingAction().
Here is the call graph for this function:
Here is the caller graph for this function:| void PHG4HitContainer::AddLayer | ( | const unsigned int | ilayer | ) |
Definition at line 187 of file PHG4HitContainer.cc.
References layerMaxID, and layers.
Referenced by PHG4BlockSubsystem::InitRunSubsystem(), PHG4BNLTargetCoilSubsystem::InitRunSubsystem(), PHG4CollimatorSubsystem::InitRunSubsystem(), PHG4CylinderSubsystem::InitRunSubsystem(), PHG4PolyconSubsystem::InitRunSubsystem(), PHG4SquareTubeSubsystem::InitRunSubsystem(), PHG4TargetCoilSubsystem::InitRunSubsystem(), PHG4TargetCoilV2Subsystem::InitRunSubsystem(), and registerHitOnLayer().
Here is the caller graph for this function:| PHG4Hit * PHG4HitContainer::findHit | ( | PHG4HitDefs::keytype | key | ) |
Definition at line 152 of file PHG4HitContainer.cc.
| PHG4HitContainer::Iterator PHG4HitContainer::findOrAddHit | ( | PHG4HitDefs::keytype | key | ) |
Definition at line 137 of file PHG4HitContainer.cc.
References hitmap, registerHitOnLayer(), 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 65 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 117 of file PHG4HitContainer.cc.
References PHG4HitDefs::hit_idbits, hitmap, and PHG4HitDefs::keybits.
Referenced by SQDigitizer::digitizeEMCal(), SQDigitizer::digitizePlane(), PHG4DSTReader::process_event(), PHG4ConsistencyCheck::process_event(), TruthEval::process_event(), PHG4BlockCellReco::process_event(), PHG4CylinderCellReco::process_event(), PHG4CylinderCellTPCReco::process_event(), and PHG4HitReadBack::process_event().
Here is the caller graph for this function:| PHG4HitContainer::ConstRange PHG4HitContainer::getHits | ( | void | ) | const |
|
inline |
Definition at line 34 of file PHG4HitContainer.h.
References id.
Referenced by PHG4ConeRegionSteppingAction::UserSteppingAction(), PHG4BlockSteppingAction::UserSteppingAction(), PHG4BNLTargetCoilSteppingAction::UserSteppingAction(), PHG4CollimatorSteppingAction::UserSteppingAction(), PHG4ConeSteppingAction::UserSteppingAction(), PHG4CylinderSteppingAction::UserSteppingAction(), PHG4EMCalSteppingAction::UserSteppingAction(), PHG4PolyconSteppingAction::UserSteppingAction(), PHG4SquareTubeSteppingAction::UserSteppingAction(), PHG4TargetCoilSteppingAction::UserSteppingAction(), and PHG4TargetCoilV2SteppingAction::UserSteppingAction().
Here is the caller graph for this function:Definition at line 56 of file PHG4HitContainer.h.
References layers.
Referenced by PHG4BlockCellReco::process_event(), PHG4CylinderCellReco::process_event(), and PHG4CylinderCellTPCReco::process_event().
Here is the caller graph for this function:| PHG4HitDefs::keytype PHG4HitContainer::getmaxkey | ( | const unsigned int | detid | ) |
Definition at line 59 of file PHG4HitContainer.cc.
References layerMaxID.
Referenced by genkey().
Here is the caller graph for this function:
|
virtual |
identify Function from PHObject
| os | Output Stream |
Reimplemented from PHObject.
Definition at line 40 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:
|
inline |
Definition at line 54 of file PHG4HitContainer.h.
References layers.
Referenced by identify().
Here is the caller graph for this function:| void PHG4HitContainer::registerHitOnLayer | ( | const PHG4Hit * | hit | ) |
Definition at line 193 of file PHG4HitContainer.cc.
References AddLayer(), PHG4HitDefs::detid_mask, PHG4Hit::get_hit_id(), PHG4HitDefs::hit_idbits, PHG4HitDefs::hitid_mask, and layerMaxID.
Referenced by AddHit(), and findOrAddHit().
Here is the call graph for this function:
Here is the caller graph for this function:| void PHG4HitContainer::RemoveZeroEDep | ( | ) |
Definition at line 163 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:
|
virtual |
Clear Event.
Reimplemented from PHObject.
Definition at line 24 of file PHG4HitContainer.cc.
References hitmap, and layerMaxID.
|
inline |
container ID should follow definition of PHG4HitDefs::get_volume_id(DST nodename)
Definition at line 33 of file PHG4HitContainer.h.
|
inline |
Definition at line 52 of file PHG4HitContainer.h.
References hitmap.
Referenced by SQDigitizer::digitizeEMCal(), SQDigitizer::digitizePlane(), identify(), and PHG4DSTReader::process_event().
Here is the caller graph for this function:
|
protected |
Definition at line 67 of file PHG4HitContainer.h.
Referenced by AddHit(), findHit(), findOrAddHit(), genkey(), getHits(), identify(), RemoveZeroEDep(), Reset(), and size().
|
protected |
Definition at line 66 of file PHG4HitContainer.h.
Referenced by GetID().
|
protected |
Definition at line 69 of file PHG4HitContainer.h.
Referenced by AddLayer(), getmaxkey(), registerHitOnLayer(), and Reset().
|
protected |
Definition at line 68 of file PHG4HitContainer.h.
Referenced by AddLayer(), getLayers(), identify(), and num_layers().