EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4CellContainer.h>
Public Types | |
typedef std::map < PHG4CellDefs::keytype, PHG4Cell * > | Map |
typedef Map::iterator | Iterator |
typedef Map::const_iterator | ConstIterator |
typedef std::pair< Iterator, Iterator > | Range |
typedef std::pair < ConstIterator, ConstIterator > | ConstRange |
Public Member Functions | |
PHG4CellContainer () | |
~PHG4CellContainer () override | |
void | Reset () override |
Clear Event. | |
void | identify (std::ostream &os=std::cout) const override |
ConstIterator | AddCell (PHG4Cell *newCell) |
ConstIterator | AddCellSpecifyKey (const PHG4CellDefs::keytype key, PHG4Cell *newCell) |
void | RemoveCell (PHG4CellDefs::keytype key) |
preferred removal method, key is currently the cell id | |
void | RemoveCell (PHG4Cell *cell) |
inefficent, use key where possible instead | |
Iterator | findOrAddCell (PHG4CellDefs::keytype key) |
ConstRange | getCells (const unsigned short int detid) const |
return all Cells matching a given detid | |
ConstRange | getCells (void) const |
return all hist | |
PHG4Cell * | findCell (PHG4CellDefs::keytype key) |
unsigned int | size (void) const |
double | getTotalEdep () const |
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 | |
Map | cellmap |
Definition at line 16 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 16 of file PHG4CellContainer.h
typedef Map::const_iterator PHG4CellContainer::ConstIterator |
Definition at line 22 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 22 of file PHG4CellContainer.h
typedef std::pair<ConstIterator, ConstIterator> PHG4CellContainer::ConstRange |
Definition at line 24 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 24 of file PHG4CellContainer.h
typedef Map::iterator PHG4CellContainer::Iterator |
Definition at line 21 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 21 of file PHG4CellContainer.h
typedef std::map<PHG4CellDefs::keytype,PHG4Cell *> PHG4CellContainer::Map |
Definition at line 20 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 20 of file PHG4CellContainer.h
typedef std::pair<Iterator, Iterator> PHG4CellContainer::Range |
Definition at line 23 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 23 of file PHG4CellContainer.h
PHG4CellContainer::PHG4CellContainer | ( | ) |
Definition at line 11 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 11 of file PHG4CellContainer.cc
|
inlineoverride |
Definition at line 28 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 28 of file PHG4CellContainer.h
PHG4CellContainer::ConstIterator PHG4CellContainer::AddCell | ( | PHG4Cell * | newCell | ) |
Definition at line 39 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 39 of file PHG4CellContainer.cc
References PHG4Cell::get_cellid(), and PHG4CellDefs::get_detid().
Referenced by PHG4TpcPadPlaneReadout::MapToPadPlane(), PHG4HcalCellReco::process_event(), PHG4BlockCellReco::process_event(), PHG4CylinderCellReco::process_event(), and PHG4FullProjSpacalCellReco::process_event().
PHG4CellContainer::ConstIterator PHG4CellContainer::AddCellSpecifyKey | ( | const PHG4CellDefs::keytype | key, |
PHG4Cell * | newCell | ||
) |
Definition at line 52 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 52 of file PHG4CellContainer.cc
References exit(), and PHG4Cell::set_cellid().
PHG4Cell * PHG4CellContainer::findCell | ( | PHG4CellDefs::keytype | key | ) |
Definition at line 98 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 98 of file PHG4CellContainer.cc
References it.
Referenced by CaloRawTowerEval::all_truth_hits(), PHG4TpcPadPlaneReadout::MapToPadPlane(), and TPCDataStreamEmulator::process_event().
PHG4CellContainer::Iterator PHG4CellContainer::findOrAddCell | ( | PHG4CellDefs::keytype | key | ) |
Definition at line 84 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 84 of file PHG4CellContainer.cc
References it, and PHG4Cell::set_cellid().
PHG4CellContainer::ConstRange PHG4CellContainer::getCells | ( | const unsigned short int | detid | ) | const |
return all Cells matching a given detid
Definition at line 65 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 65 of file PHG4CellContainer.cc
Referenced by PHG4BlockCellReco::CheckEnergy(), PHG4CylinderCellReco::CheckEnergy(), PHG4FullProjSpacalCellReco::CheckEnergy(), RawTowerBuilder::process_event(), HcalRawTowerBuilder::process_event(), TPCIntegratedCharge::process_event(), G4CellNtuple::process_event(), CaloAna::process_g4cells(), and DumpPHG4CellContainer::process_Node().
PHG4CellContainer::ConstRange PHG4CellContainer::getCells | ( | void | ) | const |
return all hist
Definition at line 79 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 79 of file PHG4CellContainer.cc
double PHG4CellContainer::getTotalEdep | ( | ) | const |
Definition at line 111 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 111 of file PHG4CellContainer.cc
Referenced by RawTowerBuilder::process_event(), and HcalRawTowerBuilder::process_event().
|
overridevirtual |
identify Function from PHObject
os | Output Stream |
Reimplemented from PHObject.
Definition at line 26 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 26 of file PHG4CellContainer.cc
|
inline |
preferred removal method, key is currently the cell id
Definition at line 38 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 38 of file PHG4CellContainer.h
References cellmap.
|
inline |
inefficent, use key where possible instead
Definition at line 43 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 43 of file PHG4CellContainer.h
References cellmap.
|
overridevirtual |
Clear Event.
Reimplemented from PHObject.
Definition at line 15 of file PHG4CellContainer.cc.
View newest version in sPHENIX GitHub at line 15 of file PHG4CellContainer.cc
Referenced by PHG4DstCompressReco::process_event().
|
inline |
Definition at line 71 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 71 of file PHG4CellContainer.h
References cellmap.
Referenced by DumpPHG4CellContainer::process_Node().
|
protected |
Definition at line 77 of file PHG4CellContainer.h.
View newest version in sPHENIX GitHub at line 77 of file PHG4CellContainer.h
Referenced by RemoveCell(), and size().