ATLAS Offline Software
EMBDetectorRegion.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "GeoModelKernel/GeoVFullPhysVol.h"
6 
10 
11 EMBDetectorRegion::EMBDetectorRegion (const GeoVFullPhysVol *physVol
12  , const EMBDetDescr *embDescriptor
13  , DetectorSide endcap)
14  : GeoVDetectorElement(physVol)
15  , m_descriptor(embDescriptor)
16  , m_endcapIndex(endcap)
17 {
18 }
19 
21 
22 EMBCellConstLink EMBDetectorRegion::getEMBCell (unsigned int ieta, unsigned int iphi) const
23 {
24  return {new EMBCell(m_endcapIndex,m_descriptor,ieta,iphi)};
25 }
26 
28 {
29  const GeoVFullPhysVol *fullPhysVol = getMaterialGeom();
30  return alignStore
31  ? fullPhysVol->getCachedAbsoluteTransform(alignStore)
32  : fullPhysVol->getAbsoluteTransform();
33 }
34 
36 {
37  const GeoVFullPhysVol *fullPhysVol = getMaterialGeom();
38  return alignStore
39  ? fullPhysVol->getCachedDefAbsoluteTransform(alignStore)
40  : fullPhysVol->getDefAbsoluteTransform();
41 }
EMBDetDescr
Descriptor for regions of the electromagnetic barrel calorimeter.
Definition: EMBDetDescr.h:27
GeoAlignmentStore
Ensure that the extensions for the Vector3D are properly loaded.
Definition: GeoAlignmentStore.h:24
EMBDetectorRegion.h
EMBDetectorRegion::getDefAbsoluteTransform
const Amg::Transform3D & getDefAbsoluteTransform(const GeoAlignmentStore *alignStore=nullptr) const
Returns the absolute transform of this element.
Definition: EMBDetectorRegion.cxx:35
EMBDetectorRegion::m_descriptor
GeoIntrusivePtr< const EMBDetDescr > m_descriptor
Definition: EMBDetectorRegion.h:104
EMBDetectorRegion::EMBDetectorRegion
EMBDetectorRegion(const GeoVFullPhysVol *physVol, const EMBDetDescr *embDescriptor, DetectorSide endcap)
Constructor.
Definition: EMBDetectorRegion.cxx:11
GeoPrimitives.h
EMBCell
A cell of the electromagnetic barrel calorimeter readout geometry This class gives dimensions and pos...
Definition: EMBCell.h:31
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
EMBDetectorRegion::getAbsoluteTransform
const Amg::Transform3D & getAbsoluteTransform(const GeoAlignmentStore *alignStore=nullptr) const
Returns the absolute transform of this element.
Definition: EMBDetectorRegion.cxx:27
EMBDetectorRegion::DetectorSide
DetectorSide
Definition: EMBDetectorRegion.h:32
GeoAlignmentStore.h
EMBDetectorRegion::getEMBCell
EMBCellConstLink getEMBCell(unsigned int ieta, unsigned int iphi) const
Access to Cells.
Definition: EMBDetectorRegion.cxx:22
EMBDetectorRegion::~EMBDetectorRegion
~EMBDetectorRegion()
Destructor
EMBDetectorRegion::m_endcapIndex
EMBDetectorRegion::DetectorSide m_endcapIndex
Definition: EMBDetectorRegion.h:105