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

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

+ Inheritance diagram for PHG4CylinderCellContainer:
+ Collaboration diagram for PHG4CylinderCellContainer:

Public Types

typedef std::map
< PHG4CylinderCellDefs::keytype,
PHG4CylinderCell * > 
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< int >
::const_iterator 
LayerIter
 
typedef std::pair< LayerIter,
LayerIter
LayerRange
 

Public Member Functions

 PHG4CylinderCellContainer ()
 
 ~PHG4CylinderCellContainer () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
ConstIterator AddCylinderCell (const unsigned int detid, PHG4CylinderCell *newcylinderCell)
 
ConstIterator AddCylinderCellSpecifyKey (const PHG4CylinderCellDefs::keytype key, PHG4CylinderCell *newcylinderCell)
 
void RemoveCylinderCell (PHG4CylinderCellDefs::keytype key)
 preferred removal method, key is currently the cell id
 
void RemoveCylinderCell (PHG4CylinderCell *cell)
 inefficent, use key where possible instead
 
Iterator findOrAddCylinderCell (PHG4CylinderCellDefs::keytype key)
 
PHG4CylinderCellDefs::keytype genkey (const unsigned int detid)
 
ConstRange getCylinderCells (const unsigned int detid) const
 return all cylinderCells matching a given detid
 
ConstRange getCylinderCells (void) const
 return all hist
 
PHG4CylinderCellfindCylinderCell (PHG4CylinderCellDefs::keytype key)
 
unsigned int size (void) const
 
unsigned int num_layers (void) const
 
LayerRange getLayers () 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
 
std::set< intlayers
 

Detailed Description

Definition at line 17 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 17 of file PHG4CylinderCellContainer.h

Member Typedef Documentation

typedef Map::const_iterator PHG4CylinderCellContainer::ConstIterator

Definition at line 23 of file PHG4CylinderCellContainer.h.

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

Definition at line 25 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 25 of file PHG4CylinderCellContainer.h

typedef Map::iterator PHG4CylinderCellContainer::Iterator

Definition at line 22 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 22 of file PHG4CylinderCellContainer.h

typedef std::set<int>::const_iterator PHG4CylinderCellContainer::LayerIter

Definition at line 26 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 26 of file PHG4CylinderCellContainer.h

Definition at line 27 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 27 of file PHG4CylinderCellContainer.h

Definition at line 21 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 21 of file PHG4CylinderCellContainer.h

Definition at line 24 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 24 of file PHG4CylinderCellContainer.h

Constructor & Destructor Documentation

PHG4CylinderCellContainer::PHG4CylinderCellContainer ( )
inline

Definition at line 29 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4CylinderCellContainer.h

PHG4CylinderCellContainer::~PHG4CylinderCellContainer ( )
inlineoverride

Definition at line 31 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 31 of file PHG4CylinderCellContainer.h

Member Function Documentation

PHG4CylinderCellContainer::ConstIterator PHG4CylinderCellContainer::AddCylinderCell ( const unsigned int  detid,
PHG4CylinderCell newcylinderCell 
)

Definition at line 63 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 63 of file PHG4CylinderCellContainer.cc

References PHG4CellDefs::SizeBinning::genkey(), PHG4CylinderCell::get_layer(), and PHG4CylinderCell::set_cell_id().

+ Here is the call graph for this function:

PHG4CylinderCellContainer::ConstIterator PHG4CylinderCellContainer::AddCylinderCellSpecifyKey ( const PHG4CylinderCellDefs::keytype  key,
PHG4CylinderCell newcylinderCell 
)

Definition at line 73 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 73 of file PHG4CylinderCellContainer.cc

References g4zmq::exit(), PHG4CylinderCell::get_layer(), and PHG4CylinderCell::set_cell_id().

Referenced by PHG4ForwardCalCellReco::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4CylinderCell * PHG4CylinderCellContainer::findCylinderCell ( PHG4CylinderCellDefs::keytype  key)

Definition at line 126 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 126 of file PHG4CylinderCellContainer.cc

References it.

PHG4CylinderCellContainer::Iterator PHG4CylinderCellContainer::findOrAddCylinderCell ( PHG4CylinderCellDefs::keytype  key)

Definition at line 111 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 111 of file PHG4CylinderCellContainer.cc

References PHG4CylinderCell::get_layer(), it, and PHG4CylinderCell::set_cell_id().

+ Here is the call graph for this function:

PHG4CylinderCellDefs::keytype PHG4CylinderCellContainer::genkey ( const unsigned int  detid)

Definition at line 43 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 43 of file PHG4CylinderCellContainer.cc

References PHG4CylinderCellDefs::cell_idbits, g4zmq::exit(), and PHG4CylinderCellDefs::keybits.

+ Here is the call graph for this function:

PHG4CylinderCellContainer::ConstRange PHG4CylinderCellContainer::getCylinderCells ( const unsigned int  detid) const

return all cylinderCells matching a given detid

Definition at line 87 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 87 of file PHG4CylinderCellContainer.cc

References PHG4CylinderCellDefs::cell_idbits, g4zmq::exit(), and PHG4CylinderCellDefs::keybits.

Referenced by DumpPHG4CylinderCellContainer::process_Node().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4CylinderCellContainer::ConstRange PHG4CylinderCellContainer::getCylinderCells ( void  ) const

return all hist

Definition at line 106 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 106 of file PHG4CylinderCellContainer.cc

LayerRange PHG4CylinderCellContainer::getLayers ( ) const
inline

Definition at line 80 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 80 of file PHG4CylinderCellContainer.h

References layers.

double PHG4CylinderCellContainer::getTotalEdep ( ) const

Definition at line 139 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 139 of file PHG4CylinderCellContainer.cc

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 23 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 23 of file PHG4CylinderCellContainer.cc

unsigned int PHG4CylinderCellContainer::num_layers ( void  ) const
inline

Definition at line 78 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 78 of file PHG4CylinderCellContainer.h

References layers.

void PHG4CylinderCellContainer::RemoveCylinderCell ( PHG4CylinderCellDefs::keytype  key)
inline

preferred removal method, key is currently the cell id

Definition at line 41 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 41 of file PHG4CylinderCellContainer.h

References cellmap.

void PHG4CylinderCellContainer::RemoveCylinderCell ( PHG4CylinderCell cell)
inline

inefficent, use key where possible instead

Definition at line 46 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 46 of file PHG4CylinderCellContainer.h

References cellmap.

void PHG4CylinderCellContainer::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 12 of file PHG4CylinderCellContainer.cc.

View newest version in sPHENIX GitHub at line 12 of file PHG4CylinderCellContainer.cc

unsigned int PHG4CylinderCellContainer::size ( void  ) const
inline

Definition at line 76 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 76 of file PHG4CylinderCellContainer.h

References cellmap.

Referenced by DumpPHG4CylinderCellContainer::process_Node().

+ Here is the caller graph for this function:

Member Data Documentation

Map PHG4CylinderCellContainer::cellmap
protected

Definition at line 86 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 86 of file PHG4CylinderCellContainer.h

Referenced by RemoveCylinderCell(), and size().

std::set<int> PHG4CylinderCellContainer::layers
protected

Definition at line 87 of file PHG4CylinderCellContainer.h.

View newest version in sPHENIX GitHub at line 87 of file PHG4CylinderCellContainer.h

Referenced by getLayers(), and num_layers().


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