Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlatContainer Class Reference

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

+ Inheritance diagram for PHG4ScintillatorSlatContainer:
+ Collaboration diagram for PHG4ScintillatorSlatContainer:

Public Types

typedef std::map
< PHG4ScintillatorSlatDefs::keytype,
PHG4ScintillatorSlat * > 
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

 PHG4ScintillatorSlatContainer ()
 
 ~PHG4ScintillatorSlatContainer () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
ConstIterator AddScintillatorSlat (const PHG4ScintillatorSlatDefs::keytype key, PHG4ScintillatorSlat *newscintillatorSlat)
 
void RemoveScintillatorSlat (PHG4ScintillatorSlatDefs::keytype key)
 preferred removal method, key is currently the slat id
 
void RemoveScintillatorSlat (PHG4ScintillatorSlat *slat)
 inefficent, use key where possible instead
 
ConstRange getScintillatorSlats (const short icolumn) const
 return all scintillatorSlats matching a given detid
 
ConstRange getScintillatorSlats (void) const
 return all hist
 
PHG4ScintillatorSlatfindScintillatorSlat (PHG4ScintillatorSlatDefs::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 Integrate () const
 
virtual int Integrate (PHObject *)
 
virtual void CopyFrom (const PHObject *obj)
 

Protected Attributes

Map slatmap
 

Detailed Description

Definition at line 17 of file PHG4ScintillatorSlatContainer.h.

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

Member Typedef Documentation

typedef Map::const_iterator PHG4ScintillatorSlatContainer::ConstIterator

Definition at line 22 of file PHG4ScintillatorSlatContainer.h.

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

Definition at line 24 of file PHG4ScintillatorSlatContainer.h.

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

Definition at line 21 of file PHG4ScintillatorSlatContainer.h.

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

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

Definition at line 25 of file PHG4ScintillatorSlatContainer.h.

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

Definition at line 26 of file PHG4ScintillatorSlatContainer.h.

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

Definition at line 20 of file PHG4ScintillatorSlatContainer.h.

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

Definition at line 23 of file PHG4ScintillatorSlatContainer.h.

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

Constructor & Destructor Documentation

PHG4ScintillatorSlatContainer::PHG4ScintillatorSlatContainer ( )
inline

Definition at line 28 of file PHG4ScintillatorSlatContainer.h.

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

PHG4ScintillatorSlatContainer::~PHG4ScintillatorSlatContainer ( )
inlineoverride

Definition at line 30 of file PHG4ScintillatorSlatContainer.h.

View newest version in sPHENIX GitHub at line 30 of file PHG4ScintillatorSlatContainer.h

Member Function Documentation

PHG4ScintillatorSlatContainer::ConstIterator PHG4ScintillatorSlatContainer::AddScintillatorSlat ( const PHG4ScintillatorSlatDefs::keytype  key,
PHG4ScintillatorSlat newscintillatorSlat 
)

Definition at line 31 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 31 of file PHG4ScintillatorSlatContainer.cc

References PHG4ScintillatorSlat::set_key(), and slatmap.

Referenced by PHG4Prototype2HcalCellReco::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHG4ScintillatorSlat * PHG4ScintillatorSlatContainer::findScintillatorSlat ( PHG4ScintillatorSlatDefs::keytype  key)

Definition at line 69 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 69 of file PHG4ScintillatorSlatContainer.cc

References it, and slatmap.

PHG4ScintillatorSlatContainer::ConstRange PHG4ScintillatorSlatContainer::getScintillatorSlats ( const short  icolumn) const

return all scintillatorSlats matching a given detid

Definition at line 44 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 44 of file PHG4ScintillatorSlatContainer.cc

References PHG4ScintillatorSlatDefs::columnbits, and slatmap.

Referenced by Prototype2RawTowerBuilder::process_event(), HCalib::process_event(), and DumpPHG4ScintillatorSlatContainer::process_Node().

+ Here is the caller graph for this function:

PHG4ScintillatorSlatContainer::ConstRange PHG4ScintillatorSlatContainer::getScintillatorSlats ( void  ) const

return all hist

Definition at line 63 of file PHG4ScintillatorSlatContainer.cc.

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

References slatmap.

double PHG4ScintillatorSlatContainer::getTotalEdep ( ) const

Definition at line 82 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 82 of file PHG4ScintillatorSlatContainer.cc

References slatmap.

Referenced by Prototype2RawTowerBuilder::process_event().

+ Here is the caller graph for this function:

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from PHObject.

Definition at line 18 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 18 of file PHG4ScintillatorSlatContainer.cc

References size(), and slatmap.

+ Here is the call graph for this function:

void PHG4ScintillatorSlatContainer::RemoveScintillatorSlat ( PHG4ScintillatorSlatDefs::keytype  key)
inline

preferred removal method, key is currently the slat id

Definition at line 39 of file PHG4ScintillatorSlatContainer.h.

View newest version in sPHENIX GitHub at line 39 of file PHG4ScintillatorSlatContainer.h

References slatmap.

void PHG4ScintillatorSlatContainer::RemoveScintillatorSlat ( PHG4ScintillatorSlat slat)
inline

inefficent, use key where possible instead

Definition at line 45 of file PHG4ScintillatorSlatContainer.h.

View newest version in sPHENIX GitHub at line 45 of file PHG4ScintillatorSlatContainer.h

References slatmap.

void PHG4ScintillatorSlatContainer::Reset ( )
overridevirtual

Clear Event.

Reimplemented from PHObject.

Definition at line 8 of file PHG4ScintillatorSlatContainer.cc.

View newest version in sPHENIX GitHub at line 8 of file PHG4ScintillatorSlatContainer.cc

References slatmap.

unsigned int PHG4ScintillatorSlatContainer::size ( void  ) const
inline

Definition at line 70 of file PHG4ScintillatorSlatContainer.h.

View newest version in sPHENIX GitHub at line 70 of file PHG4ScintillatorSlatContainer.h

References slatmap.

Referenced by identify(), and DumpPHG4ScintillatorSlatContainer::process_Node().

+ Here is the caller graph for this function:

Member Data Documentation

Map PHG4ScintillatorSlatContainer::slatmap
protected

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