ATLAS Offline Software
ServicesLayer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ServicesLayer_H
6 #define ServicesLayer_H
7 
8 #include "DetType.h"
9 #include <string>
10 
11 class ServiceVolume;
12 
14 public:
15 
17  ServicesLayer( double radius, double halfLength, int nStaves,
19  const std::string& suffix,
20  int nModulesPerStave, int nChipsPerModule);
21 
23  ServicesLayer( double zpos, double rmin, double rmax, int nStaves,
25  const std::string& suffix,
26  int nModulesPerStave, int nChipsPerModule);
27  /*
28  ServicesLayer( double zpos, double rmin, double rmax, int nStaves,
29  DetType::Type type, DetType::Part part, int num,
30  const ServicesStave* stave, const std::string& suffix);
31  */
32  double radius() const {return m_radius;}
33  double zPos() const {return m_zPos;}
34 
35  double rMin() const {return m_rMin;}
36  double rMax() const {return m_rMax;}
37 
38  double halfLength() const {return m_halfLength;}
39  int nStaves() const { return m_nStaves;}
40  DetType::Type type() const {return m_type;}
41  DetType::Part part() const {return m_part;}
42 
43  int number() const {return m_number;}
44 
45  int modulesPerStave() const {return m_nModulesPerStave;}
46  int chipsPerModule() const {return m_nChipsPerModule;}
47 
50 
51  std::string name() const;
52 
53  const std::string& layerSuffix() const {return m_suffix;}
54 
55 private:
56 
57  double m_radius;
58  double m_zPos;
59  double m_rMin;
60  double m_rMax;
61  double m_halfLength;
62  int m_nStaves;
65  int m_number;
67  std::string m_suffix;
70 };
71 
72 #endif
ServiceVolume
Definition: InDetServMatGeoModel/src/ServiceVolume.h:14
hotSpotInTAG.suffix
string suffix
Definition: hotSpotInTAG.py:186
ServicesLayer::radius
double radius() const
Definition: ServicesLayer.h:32
ServicesLayer::ServicesLayer
ServicesLayer(double radius, double halfLength, int nStaves, DetType::Type type, DetType::Part part, int num, const std::string &suffix, int nModulesPerStave, int nChipsPerModule)
constructor for barrel layers
Definition: ServicesLayer.cxx:10
ServicesLayer::m_number
int m_number
Definition: ServicesLayer.h:65
ServicesLayer::lastVolume
ServiceVolume * lastVolume() const
Definition: ServicesLayer.h:48
ServicesLayer
Definition: ServicesLayer.h:13
DetType.h
ServicesLayer::modulesPerStave
int modulesPerStave() const
Definition: ServicesLayer.h:45
ServicesLayer::layerSuffix
const std::string & layerSuffix() const
Definition: ServicesLayer.h:53
ServicesLayer::m_rMax
double m_rMax
Definition: ServicesLayer.h:60
ServicesLayer::m_type
DetType::Type m_type
Definition: ServicesLayer.h:63
ServicesLayer::zPos
double zPos() const
Definition: ServicesLayer.h:33
ServicesLayer::m_lastVolume
ServiceVolume * m_lastVolume
Definition: ServicesLayer.h:66
ServicesLayer::m_nModulesPerStave
int m_nModulesPerStave
Definition: ServicesLayer.h:68
ServicesLayer::part
DetType::Part part() const
Definition: ServicesLayer.h:41
ServicesLayer::m_zPos
double m_zPos
Definition: ServicesLayer.h:58
ServicesLayer::m_rMin
double m_rMin
Definition: ServicesLayer.h:59
ServicesLayer::m_halfLength
double m_halfLength
Definition: ServicesLayer.h:61
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
DetType::Type
Type
Definition: DetType.h:13
ServicesLayer::rMin
double rMin() const
Definition: ServicesLayer.h:35
ServicesLayer::nStaves
int nStaves() const
Definition: ServicesLayer.h:39
ServicesLayer::halfLength
double halfLength() const
Definition: ServicesLayer.h:38
ServicesLayer::m_radius
double m_radius
Definition: ServicesLayer.h:57
ServicesLayer::m_nChipsPerModule
int m_nChipsPerModule
Definition: ServicesLayer.h:69
ServicesLayer::rMax
double rMax() const
Definition: ServicesLayer.h:36
DetType::Part
Part
Definition: DetType.h:14
ServicesLayer::chipsPerModule
int chipsPerModule() const
Definition: ServicesLayer.h:46
ServicesLayer::m_nStaves
int m_nStaves
Definition: ServicesLayer.h:62
ServicesLayer::m_part
DetType::Part m_part
Definition: ServicesLayer.h:64
ServicesLayer::setLastVolume
void setLastVolume(ServiceVolume *vp)
Definition: ServicesLayer.h:49
ServicesLayer::name
std::string name() const
Definition: ServicesLayer.cxx:47
ServicesLayer::number
int number() const
Definition: ServicesLayer.h:43
ServicesLayer::m_suffix
std::string m_suffix
Definition: ServicesLayer.h:67
ServicesLayer::type
DetType::Type type() const
Definition: ServicesLayer.h:40