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

#include <coresoftware/blob/master/offline/packages/CaloBase/TowerInfoContainerv2.h>

+ Inheritance diagram for TowerInfoContainerv2:
+ Collaboration diagram for TowerInfoContainerv2:

Public Member Functions

 TowerInfoContainerv2 (DETECTOR detec)
 
 TowerInfoContainerv2 ()
 
PHObjectCloneMe () const override
 Virtual copy constructor.
 
 TowerInfoContainerv2 (const TowerInfoContainerv2 &)
 
 ~TowerInfoContainerv2 () override
 
void identify (std::ostream &os=std::cout) const override
 
void Reset () override
 Clear Event.
 
TowerInfov2get_tower_at_channel (int pos) override
 
TowerInfov2get_tower_at_key (int pos) override
 
unsigned int encode_key (unsigned int towerIndex) override
 
unsigned int decode_key (unsigned int tower_key) override
 
size_t size () const override
 
DETECTOR get_detectorid () const override
 
- Public Member Functions inherited from TowerInfoContainer
 TowerInfoContainer ()=default
 
 ~TowerInfoContainer () override=default
 
virtual unsigned int encode_epd (unsigned int)
 
virtual unsigned int encode_hcal (unsigned int)
 
virtual unsigned int encode_emcal (unsigned int)
 
virtual unsigned int encode_mbd (unsigned int)
 
virtual unsigned int encode_zdc (unsigned int)
 
virtual unsigned int decode_epd (unsigned int)
 
virtual unsigned int decode_hcal (unsigned int)
 
virtual unsigned int decode_emcal (unsigned int)
 
virtual unsigned int decode_mbd (unsigned int)
 
virtual unsigned int decode_zdc (unsigned int)
 
virtual unsigned int getTowerPhiBin (unsigned int)
 
virtual unsigned int getTowerEtaBin (unsigned int)
 
- Public Member Functions inherited from PHObject
 PHObject ()
 ctor
 
 ~PHObject () override
 dtor
 
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

TClonesArray * _clones = nullptr
 
DETECTOR _detector = DETECTOR_INVALID
 

Private Member Functions

 ClassDefOverride (TowerInfoContainerv2, 1)
 

Additional Inherited Members

- Public Types inherited from TowerInfoContainer
enum  DETECTOR {
  EMCAL = 0, HCAL = 1, SEPD = 2, MBD = 3,
  ZDC = 4, DETECTOR_INVALID = 9999
}
 
typedef std::map< unsigned int,
TowerInfo * > 
TowerMap
 
typedef TowerMap::const_iterator ConstIter
 
typedef TowerMap::iterator Iter
 

Detailed Description

Definition at line 11 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 11 of file TowerInfoContainerv2.h

Constructor & Destructor Documentation

TowerInfoContainerv2::TowerInfoContainerv2 ( DETECTOR  detec)

Definition at line 12 of file TowerInfoContainerv2.cc.

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

References _clones, _detector, i, Enable::MBD, CaloTowerDefs::SEPD, and RawTowerDefs::ZDC.

TowerInfoContainerv2::TowerInfoContainerv2 ( )
inline

Definition at line 17 of file TowerInfoContainerv2.h.

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

Referenced by CloneMe().

+ Here is the caller graph for this function:

TowerInfoContainerv2::TowerInfoContainerv2 ( const TowerInfoContainerv2 source)

Definition at line 47 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 47 of file TowerInfoContainerv2.cc

References _clones, _detector, get_detectorid(), i, and size().

+ Here is the call graph for this function:

TowerInfoContainerv2::~TowerInfoContainerv2 ( )
override

Definition at line 61 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 61 of file TowerInfoContainerv2.cc

References _clones.

Member Function Documentation

TowerInfoContainerv2::ClassDefOverride ( TowerInfoContainerv2  ,
 
)
private
PHObject* TowerInfoContainerv2::CloneMe ( ) const
inlineoverridevirtual

Virtual copy constructor.

Reimplemented from PHObject.

Definition at line 18 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 18 of file TowerInfoContainerv2.h

References TowerInfoContainerv2().

+ Here is the call graph for this function:

unsigned int TowerInfoContainerv2::decode_key ( unsigned int  tower_key)
overridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 134 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 134 of file TowerInfoContainerv2.cc

References _detector, TowerInfoContainer::decode_emcal(), TowerInfoContainer::decode_epd(), TowerInfoContainer::decode_hcal(), TowerInfoContainer::decode_mbd(), TowerInfoContainer::decode_zdc(), index, Enable::MBD, CaloTowerDefs::SEPD, and RawTowerDefs::ZDC.

Referenced by get_tower_at_key().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

unsigned int TowerInfoContainerv2::encode_key ( unsigned int  towerIndex)
overridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 108 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 108 of file TowerInfoContainerv2.cc

References _detector, TowerInfoContainer::encode_emcal(), TowerInfoContainer::encode_epd(), TowerInfoContainer::encode_hcal(), TowerInfoContainer::encode_mbd(), TowerInfoContainer::encode_zdc(), Enable::MBD, CaloTowerDefs::SEPD, and RawTowerDefs::ZDC.

+ Here is the call graph for this function:

DETECTOR TowerInfoContainerv2::get_detectorid ( ) const
inlineoverridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 33 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 33 of file TowerInfoContainerv2.h

References _detector.

Referenced by TowerInfoContainerv2().

+ Here is the caller graph for this function:

TowerInfov2 * TowerInfoContainerv2::get_tower_at_channel ( int  pos)
overridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 97 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 97 of file TowerInfoContainerv2.cc

References _clones.

TowerInfov2 * TowerInfoContainerv2::get_tower_at_key ( int  pos)
overridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 102 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 102 of file TowerInfoContainerv2.cc

References _clones, decode_key(), and index.

+ Here is the call graph for this function:

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

identify Function from PHObject

Parameters
osOutput Stream

Reimplemented from TowerInfoContainer.

Definition at line 66 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 66 of file TowerInfoContainerv2.cc

References size().

+ Here is the call graph for this function:

void TowerInfoContainerv2::Reset ( )
overridevirtual

Clear Event.

Reimplemented from TowerInfoContainer.

Definition at line 71 of file TowerInfoContainerv2.cc.

View newest version in sPHENIX GitHub at line 71 of file TowerInfoContainerv2.cc

References _clones, assert, and i.

size_t TowerInfoContainerv2::size ( void  ) const
inlineoverridevirtual

Reimplemented from TowerInfoContainer.

Definition at line 32 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 32 of file TowerInfoContainerv2.h

References _clones.

Referenced by identify(), and TowerInfoContainerv2().

+ Here is the caller graph for this function:

Member Data Documentation

TClonesArray* TowerInfoContainerv2::_clones = nullptr
protected

Definition at line 36 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 36 of file TowerInfoContainerv2.h

Referenced by get_tower_at_channel(), get_tower_at_key(), Reset(), size(), TowerInfoContainerv2(), and ~TowerInfoContainerv2().

DETECTOR TowerInfoContainerv2::_detector = DETECTOR_INVALID
protected

Definition at line 37 of file TowerInfoContainerv2.h.

View newest version in sPHENIX GitHub at line 37 of file TowerInfoContainerv2.h

Referenced by decode_key(), encode_key(), get_detectorid(), and TowerInfoContainerv2().


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