ATLAS Offline Software
TileCellDim.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 /*
6  * Updates:
7  * - 2022 Jan, Riccardo Maria BIANCHI <riccardo.maria.bianchi@cern.ch>
8  * Added MsgStream for logging
9  */
10 
11 #ifndef TileCellDim_h
12 #define TileCellDim_h 1
13 
15 #include <vector>
16 
18  : public AthMessaging
19 {
20  public:
21  TileCellDim(unsigned int nRows);
22  ~TileCellDim();
23 
24  // Data access
25  inline unsigned int getNRows() const { return m_nRows;}
26  inline double getVolume() const { return m_volume; }
27 
28  double getRMin(unsigned int index) const;
29  double getRMax(unsigned int index) const;
30  double getZMin(unsigned int index) const;
31  double getZMax(unsigned int index) const;
32 
33  // Filling in the contents
34  void addRMin(double rMin);
35  void addRMax(double rMax);
36  void addZMin(double zMin);
37  void addZMax(double zMax);
38  void computeVolume();
39  double computeRowVolume(int iRow);
40 
41  void print() const;
42 
43  private:
44  unsigned int m_nRows;
45  std::vector<double> m_rMin;
46  std::vector<double> m_rMax;
47  std::vector<double> m_zMin;
48  std::vector<double> m_zMax;
50 };
51 
52 #endif
TileCellDim::addRMax
void addRMax(double rMax)
Definition: TileCellDim.cxx:71
TileCellDim::m_rMin
std::vector< double > m_rMin
Definition: TileCellDim.h:45
TileCellDim::m_volume
double m_volume
Definition: TileCellDim.h:49
TileCellDim::computeRowVolume
double computeRowVolume(int iRow)
Definition: TileCellDim.cxx:103
TileCellDim::m_zMax
std::vector< double > m_zMax
Definition: TileCellDim.h:48
TileCellDim::TileCellDim
TileCellDim(unsigned int nRows)
Definition: TileCellDim.cxx:17
index
Definition: index.py:1
TileCellDim::computeVolume
void computeVolume()
Definition: TileCellDim.cxx:95
TileCellDim::getVolume
double getVolume() const
Definition: TileCellDim.h:26
TileCellDim::m_rMax
std::vector< double > m_rMax
Definition: TileCellDim.h:46
TileCellDim::m_zMin
std::vector< double > m_zMin
Definition: TileCellDim.h:47
TileCellDim
Definition: TileCellDim.h:19
TileCellDim::getRMax
double getRMax(unsigned int index) const
Definition: TileCellDim.cxx:39
TileCellDim::addZMin
void addZMin(double zMin)
Definition: TileCellDim.cxx:79
TileCellDim::getNRows
unsigned int getNRows() const
Definition: TileCellDim.h:25
TileCellDim::m_Radius2HalfLength
double m_Radius2HalfLength
Definition: TileCellDim.h:49
TileCellDim::~TileCellDim
~TileCellDim()
Definition: TileCellDim.cxx:27
TileCellDim::addRMin
void addRMin(double rMin)
Definition: TileCellDim.cxx:63
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
TileCellDim::getRMin
double getRMin(unsigned int index) const
Definition: TileCellDim.cxx:31
TileCellDim::m_nRows
unsigned int m_nRows
Definition: TileCellDim.h:44
TileCellDim::getZMax
double getZMax(unsigned int index) const
Definition: TileCellDim.cxx:55
AthMessaging.h
TileCellDim::print
void print() const
Definition: TileCellDim.cxx:112
RPDUtils::nRows
unsigned constexpr int nRows
Definition: RPDUtils.h:24
TileCellDim::addZMax
void addZMax(double zMax)
Definition: TileCellDim.cxx:87
TileCellDim::getZMin
double getZMin(unsigned int index) const
Definition: TileCellDim.cxx:47