ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
EMBDetectorRegion Class Reference

#include <EMBDetectorRegion.h>

Inheritance diagram for EMBDetectorRegion:
Collaboration diagram for EMBDetectorRegion:

Public Types

enum  DetectorSide { NEG =0, POS =1 }
 

Public Member Functions

 EMBDetectorRegion (const GeoVFullPhysVol *physVol, const EMBDetDescr *embDescriptor, DetectorSide endcap)
 Constructor. More...
 
 ~EMBDetectorRegion ()
 Destructor
More...
 
EMBCellConstLink getEMBCell (unsigned int ieta, unsigned int iphi) const
 Access to Cells. More...
 
const EMBDetDescrgetDescriptor () const
 Returns the Descriptor for this region. More...
 
unsigned int getSamplingIndex () const
 Returns the Sampling Layer Index. More...
 
unsigned int getRegionIndex () const
 Returns the Region Index. More...
 
unsigned int beginPhiIndex () const
 Returns the first phi index in the region. More...
 
unsigned int endPhiIndex () const
 Returns the end phi index in the region. More...
 
unsigned int beginEtaIndex () const
 Returns the first eta index in the region. More...
 
unsigned int endEtaIndex () const
 Returns the end eta index in the region. More...
 
const Amg::Transform3DgetAbsoluteTransform (const GeoAlignmentStore *alignStore=nullptr) const
 Returns the absolute transform of this element. More...
 
const Amg::Transform3DgetDefAbsoluteTransform (const GeoAlignmentStore *alignStore=nullptr) const
 Returns the absolute transform of this element. More...
 
EMBDetectorRegion::DetectorSide getEndcapIndex () const
 The endcap index. More...
 

Private Member Functions

 EMBDetectorRegion (const EMBDetectorRegion &right)
 
EMBDetectorRegionoperator= (const EMBDetectorRegion &right)
 

Private Attributes

GeoIntrusivePtr< const EMBDetDescrm_descriptor {}
 
EMBDetectorRegion::DetectorSide m_endcapIndex
 

Detailed Description

 @brief Description of a region of homogenous granularity in the 
 electromagnetic barrel calorimeter

This class combines a description of the cell granularity with a physical volume to create a description of an EMB region positioned within ATLAS. It provides access to the EMB Cells.

Definition at line 27 of file EMBDetectorRegion.h.

Member Enumeration Documentation

◆ DetectorSide

Enumerator
NEG 
POS 

Definition at line 32 of file EMBDetectorRegion.h.

32 {NEG=0,POS=1} DetectorSide;

Constructor & Destructor Documentation

◆ EMBDetectorRegion() [1/2]

EMBDetectorRegion::EMBDetectorRegion ( const GeoVFullPhysVol *  physVol,
const EMBDetDescr embDescriptor,
DetectorSide  endcap 
)

Constructor.

Definition at line 11 of file EMBDetectorRegion.cxx.

14  : GeoVDetectorElement(physVol)
15  , m_descriptor(embDescriptor)
16  , m_endcapIndex(endcap)
17 {
18 }

◆ ~EMBDetectorRegion()

EMBDetectorRegion::~EMBDetectorRegion ( )
default

Destructor

◆ EMBDetectorRegion() [2/2]

EMBDetectorRegion::EMBDetectorRegion ( const EMBDetectorRegion right)
private

Member Function Documentation

◆ beginEtaIndex()

unsigned int EMBDetectorRegion::beginEtaIndex ( ) const
inline

Returns the first eta index in the region.

Definition at line 147 of file EMBDetectorRegion.h.

148 {
149 
150  return m_descriptor->getEtaBinning().getFirstDivisionNumber();
151 
152 }

◆ beginPhiIndex()

unsigned int EMBDetectorRegion::beginPhiIndex ( ) const
inline

Returns the first phi index in the region.

Definition at line 133 of file EMBDetectorRegion.h.

134 {
135 
136  return m_descriptor->getPhiBinning().getFirstDivisionNumber();
137 
138 }

◆ endEtaIndex()

unsigned int EMBDetectorRegion::endEtaIndex ( ) const
inline

Returns the end eta index in the region.

Definition at line 154 of file EMBDetectorRegion.h.

155 {
156 
157  return m_descriptor->getEtaBinning().getFirstDivisionNumber() + m_descriptor->getEtaBinning().getNumDivisions();
158 
159 }

◆ endPhiIndex()

unsigned int EMBDetectorRegion::endPhiIndex ( ) const
inline

Returns the end phi index in the region.

Definition at line 140 of file EMBDetectorRegion.h.

141 {
142 
143  return m_descriptor->getPhiBinning().getFirstDivisionNumber() + m_descriptor->getPhiBinning().getNumDivisions();
144 
145 }

◆ getAbsoluteTransform()

const Amg::Transform3D & EMBDetectorRegion::getAbsoluteTransform ( const GeoAlignmentStore alignStore = nullptr) const

Returns the absolute transform of this element.

Definition at line 27 of file EMBDetectorRegion.cxx.

28 {
29  const GeoVFullPhysVol *fullPhysVol = getMaterialGeom();
30  return alignStore
31  ? fullPhysVol->getCachedAbsoluteTransform(alignStore)
32  : fullPhysVol->getAbsoluteTransform();
33 }

◆ getDefAbsoluteTransform()

const Amg::Transform3D & EMBDetectorRegion::getDefAbsoluteTransform ( const GeoAlignmentStore alignStore = nullptr) const

Returns the absolute transform of this element.

Definition at line 35 of file EMBDetectorRegion.cxx.

36 {
37  const GeoVFullPhysVol *fullPhysVol = getMaterialGeom();
38  return alignStore
39  ? fullPhysVol->getCachedDefAbsoluteTransform(alignStore)
40  : fullPhysVol->getDefAbsoluteTransform();
41 }

◆ getDescriptor()

const EMBDetDescr * EMBDetectorRegion::getDescriptor ( ) const
inline

Returns the Descriptor for this region.

Definition at line 112 of file EMBDetectorRegion.h.

113 {
114 
115  return m_descriptor;
116 
117 }

◆ getEMBCell()

EMBCellConstLink EMBDetectorRegion::getEMBCell ( unsigned int  ieta,
unsigned int  iphi 
) const

Access to Cells.

Definition at line 22 of file EMBDetectorRegion.cxx.

23 {
24  return {new EMBCell(m_endcapIndex,m_descriptor,ieta,iphi)};
25 }

◆ getEndcapIndex()

EMBDetectorRegion::DetectorSide EMBDetectorRegion::getEndcapIndex ( ) const
inline

The endcap index.

0=negative, 1=positive.

Definition at line 163 of file EMBDetectorRegion.h.

164 {
165 
166  return m_endcapIndex;
167 
168 }

◆ getRegionIndex()

unsigned int EMBDetectorRegion::getRegionIndex ( ) const
inline

Returns the Region Index.

Definition at line 126 of file EMBDetectorRegion.h.

127 {
128 
129  return m_descriptor->getRegionIndex();
130 
131 }

◆ getSamplingIndex()

unsigned int EMBDetectorRegion::getSamplingIndex ( ) const
inline

Returns the Sampling Layer Index.

Definition at line 119 of file EMBDetectorRegion.h.

120 {
121 
122  return m_descriptor->getSamplingIndex();
123 
124 }

◆ operator=()

EMBDetectorRegion& EMBDetectorRegion::operator= ( const EMBDetectorRegion right)
private

Member Data Documentation

◆ m_descriptor

GeoIntrusivePtr<const EMBDetDescr> EMBDetectorRegion::m_descriptor {}
private

Definition at line 104 of file EMBDetectorRegion.h.

◆ m_endcapIndex

EMBDetectorRegion::DetectorSide EMBDetectorRegion::m_endcapIndex
private

Definition at line 105 of file EMBDetectorRegion.h.


The documentation for this class was generated from the following files:
EMBDetectorRegion::m_descriptor
GeoIntrusivePtr< const EMBDetDescr > m_descriptor
Definition: EMBDetectorRegion.h:104
EMBDetectorRegion::NEG
@ NEG
Definition: EMBDetectorRegion.h:32
EMBCell
A cell of the electromagnetic barrel calorimeter readout geometry This class gives dimensions and pos...
Definition: EMBCell.h:31
EMBDetectorRegion::DetectorSide
DetectorSide
Definition: EMBDetectorRegion.h:32
EMBDetectorRegion::POS
@ POS
Definition: EMBDetectorRegion.h:32
EMBDetectorRegion::m_endcapIndex
EMBDetectorRegion::DetectorSide m_endcapIndex
Definition: EMBDetectorRegion.h:105