ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4CellContainer Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4detectors/PHG4CellContainer.h>

+ Inheritance diagram for PHG4CellContainer:
+ Collaboration diagram for PHG4CellContainer:

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
 
PHG4CellfindCell (PHG4CellDefs::keytype key)
 
unsigned int size (void) const
 
double getTotalEdep () const
 
- 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 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
 

Detailed Description

Definition at line 16 of file PHG4CellContainer.h.

View newest version in sPHENIX GitHub at line 16 of file PHG4CellContainer.h

Member Typedef Documentation

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

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

Definition at line 20 of file PHG4CellContainer.h.

View newest version in sPHENIX GitHub at line 20 of file PHG4CellContainer.h

Definition at line 23 of file PHG4CellContainer.h.

View newest version in sPHENIX GitHub at line 23 of file PHG4CellContainer.h

Constructor & Destructor Documentation

PHG4CellContainer::PHG4CellContainer ( )

Definition at line 11 of file PHG4CellContainer.cc.

View newest version in sPHENIX GitHub at line 11 of file PHG4CellContainer.cc

PHG4CellContainer::~PHG4CellContainer ( )
inlineoverride

Definition at line 28 of file PHG4CellContainer.h.

View newest version in sPHENIX GitHub at line 28 of file PHG4CellContainer.h

Member Function Documentation

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 g4zmq::exit(), and PHG4Cell::set_cellid().

+ Here is the call graph for this function:

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

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

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

References tmp.

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

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

void PHG4CellContainer::identify ( std::ostream &  os = std::cout) const
overridevirtual

identify Function from PHObject

Parameters
osOutput 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

void PHG4CellContainer::RemoveCell ( PHG4CellDefs::keytype  key)
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.

void PHG4CellContainer::RemoveCell ( PHG4Cell cell)
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.

void PHG4CellContainer::Reset ( )
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().

+ Here is the caller graph for this function:

unsigned int PHG4CellContainer::size ( void  ) const
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().

+ Here is the caller graph for this function:

Member Data Documentation

Map PHG4CellContainer::cellmap
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().


The documentation for this class was generated from the following files: