ATLAS Offline Software
LArStraightAbsorbers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef LARG4BARREL_LArStraightAbsorbers_H
6 #define LARG4BARREL_LArStraightAbsorbers_H
7 
9 #include <string>
10 
12 private:
13  LArStraightAbsorbers(const std::string& strDetector="") ;
14  void initXYCentAbs(const PhysicalVolumeAccessor& theAbsorbers, int stackid, int cellid);
15  void initHalfLength(const PhysicalVolumeAccessor& theAbsorbers, int stackid, int cellid);
16  double SlantAbs(const PhysicalVolumeAccessor& theAbsorbers, int stackid, int cellid) const;
17  double m_xcent[1024][14]{};
18  double m_ycent[1024][14]{};
19  double m_cosu[1024][14]{};
20  double m_sinu[1024][14]{};
21  double m_halflength[1024][14]{};
22  int m_parity;
23 public:
24  static const LArStraightAbsorbers* GetInstance(const std::string& strDetector="") ;
25  double XCentAbs(int stackid, int cellid) const { return m_xcent[cellid][stackid]; }
26  double YCentAbs(int stackid, int cellid) const { return m_ycent[cellid][stackid]; }
27  double HalfLength(int stackid, int cellid) const { return m_halflength[cellid][stackid]; }
28  double Cosu(int stackid, int cellid) const { return m_cosu[cellid][stackid]; }
29  double Sinu(int stackid, int cellid) const { return m_sinu[cellid][stackid]; }
30 };
31 
32 #endif // LARG4BARREL_LArStraightAbsorbers_H
PhysicalVolumeAccessor.h
LArStraightAbsorbers::Sinu
double Sinu(int stackid, int cellid) const
Definition: LArStraightAbsorbers.h:29
LArStraightAbsorbers::GetInstance
static const LArStraightAbsorbers * GetInstance(const std::string &strDetector="")
Definition: LArStraightAbsorbers.cxx:11
LArStraightAbsorbers::XCentAbs
double XCentAbs(int stackid, int cellid) const
Definition: LArStraightAbsorbers.h:25
LArStraightAbsorbers::m_halflength
double m_halflength[1024][14]
Definition: LArStraightAbsorbers.h:21
LArStraightAbsorbers::YCentAbs
double YCentAbs(int stackid, int cellid) const
Definition: LArStraightAbsorbers.h:26
LArStraightAbsorbers::m_parity
int m_parity
Definition: LArStraightAbsorbers.h:22
LArStraightAbsorbers::m_xcent
double m_xcent[1024][14]
Definition: LArStraightAbsorbers.h:17
LArStraightAbsorbers
Definition: LArStraightAbsorbers.h:11
PhysicalVolumeAccessor
Definition: PhysicalVolumeAccessor.h:18
LArStraightAbsorbers::LArStraightAbsorbers
LArStraightAbsorbers(const std::string &strDetector="")
Definition: LArStraightAbsorbers.cxx:17
LArStraightAbsorbers::HalfLength
double HalfLength(int stackid, int cellid) const
Definition: LArStraightAbsorbers.h:27
LArStraightAbsorbers::initXYCentAbs
void initXYCentAbs(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid)
Definition: LArStraightAbsorbers.cxx:37
LArStraightAbsorbers::m_sinu
double m_sinu[1024][14]
Definition: LArStraightAbsorbers.h:20
LArStraightAbsorbers::m_cosu
double m_cosu[1024][14]
Definition: LArStraightAbsorbers.h:19
LArStraightAbsorbers::Cosu
double Cosu(int stackid, int cellid) const
Definition: LArStraightAbsorbers.h:28
LArStraightAbsorbers::SlantAbs
double SlantAbs(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid) const
Definition: LArStraightAbsorbers.cxx:65
LArStraightAbsorbers::m_ycent
double m_ycent[1024][14]
Definition: LArStraightAbsorbers.h:18
LArStraightAbsorbers::initHalfLength
void initHalfLength(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid)
Definition: LArStraightAbsorbers.cxx:78