ATLAS Offline Software
Loading...
Searching...
No Matches
LArStraightElectrodes.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_LArStraightElectrodes_H
6#define LARG4BARREL_LArStraightElectrodes_H
7
9#include <string>
10
12private:
13 LArStraightElectrodes(const std::string& strDetector="");
14 void initXYCentEle(const PhysicalVolumeAccessor& theElectrodes, int stackid, int cellid);
15 void initHalfLength(const PhysicalVolumeAccessor& theElectrodes, int stackid, int cellid);
16 double SlantEle(const PhysicalVolumeAccessor& theElectrodes, 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]{};
23
24public:
25 static const LArStraightElectrodes* GetInstance(const std::string& strDetector="");
26 double XCentEle(int stackid, int cellid) const { return m_xcent[cellid][stackid]; }
27 double YCentEle(int stackid, int cellid) const { return m_ycent[cellid][stackid]; }
28 double HalfLength(int stackid, int cellid) const { return m_halflength[cellid][stackid]; }
29 double Cosu(int stackid, int cellid) const { return m_cosu[cellid][stackid]; }
30 double Sinu(int stackid, int cellid) const { return m_sinu[cellid][stackid]; }
31};
32
33#endif // LARG4BARREL_LArStraightElectrodes_H
double HalfLength(int stackid, int cellid) const
double Sinu(int stackid, int cellid) const
LArStraightElectrodes(const std::string &strDetector="")
static const LArStraightElectrodes * GetInstance(const std::string &strDetector="")
double SlantEle(const PhysicalVolumeAccessor &theElectrodes, int stackid, int cellid) const
double YCentEle(int stackid, int cellid) const
double Cosu(int stackid, int cellid) const
double XCentEle(int stackid, int cellid) const
void initHalfLength(const PhysicalVolumeAccessor &theElectrodes, int stackid, int cellid)
void initXYCentEle(const PhysicalVolumeAccessor &theElectrodes, int stackid, int cellid)