ATLAS Offline Software
Loading...
Searching...
No Matches
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
12private:
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]{};
23public:
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
double SlantAbs(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid) const
void initXYCentAbs(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid)
double Cosu(int stackid, int cellid) const
LArStraightAbsorbers(const std::string &strDetector="")
double Sinu(int stackid, int cellid) const
void initHalfLength(const PhysicalVolumeAccessor &theAbsorbers, int stackid, int cellid)
double XCentAbs(int stackid, int cellid) const
double m_halflength[1024][14]
double YCentAbs(int stackid, int cellid) const
double HalfLength(int stackid, int cellid) const
static const LArStraightAbsorbers * GetInstance(const std::string &strDetector="")