ATLAS Offline Software
StaveServices.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETSERVMATGEOMODEL_STAVESERVICES_H
6 #define INDETSERVMATGEOMODEL_STAVESERVICES_H
7 
8 #include "DetType.h"
9 #include <vector>
10 
16 public:
17 
19  int nhv, int ndcs, int ndata, const std::vector<int>& lvGauge) :
21  m_numHV(nhv), m_numDCS( ndcs), m_numData( ndata), m_lvGauge( lvGauge) {}
22 
24  int nhv, int ndcs, int ndata, int lvGauge) :
26  m_numHV(nhv), m_numDCS( ndcs), m_numData( ndata), m_lvGauge( 1, lvGauge) {}
27 
28  DetType::Type type() const { return m_type;}
29  DetType::Part part() const { return m_part;}
30  int layer() const { return m_layer;}
31 
32  int numHV() const { return m_numHV;}
33  int numDCS() const { return m_numDCS;}
34  int numData() const { return m_numData;}
35  int numLvTypes() const { return m_lvGauge.size();}
36  int lvGauge( int lvType) const { return m_lvGauge.at( lvType);}
37 
38 private:
39 
42  int m_layer;
43  int m_numHV;
44  int m_numDCS;
45  int m_numData;
46  std::vector<int> m_lvGauge;
47 
48 };
49 
50 #endif
StaveServices
Class storing all the services of a stave (or a petal, etc...) classifying them by function and by nu...
Definition: StaveServices.h:15
StaveServices::m_lvGauge
std::vector< int > m_lvGauge
Definition: StaveServices.h:46
StaveServices::lvGauge
int lvGauge(int lvType) const
Definition: StaveServices.h:36
DetType.h
StaveServices::m_layer
int m_layer
Definition: StaveServices.h:42
StaveServices::StaveServices
StaveServices(DetType::Type type, DetType::Part part, int layer, int nhv, int ndcs, int ndata, const std::vector< int > &lvGauge)
Definition: StaveServices.h:18
StaveServices::numLvTypes
int numLvTypes() const
Definition: StaveServices.h:35
StaveServices::m_part
DetType::Part m_part
Definition: StaveServices.h:41
StaveServices::m_numHV
int m_numHV
Definition: StaveServices.h:43
StaveServices::m_type
DetType::Type m_type
Definition: StaveServices.h:40
DetType::Type
Type
Definition: DetType.h:13
StaveServices::layer
int layer() const
Definition: StaveServices.h:30
StaveServices::part
DetType::Part part() const
Definition: StaveServices.h:29
StaveServices::m_numDCS
int m_numDCS
Definition: StaveServices.h:44
StaveServices::numData
int numData() const
Definition: StaveServices.h:34
StaveServices::numDCS
int numDCS() const
Definition: StaveServices.h:33
DetType::Part
Part
Definition: DetType.h:14
StaveServices::numHV
int numHV() const
Definition: StaveServices.h:32
StaveServices::StaveServices
StaveServices(DetType::Type type, DetType::Part part, int layer, int nhv, int ndcs, int ndata, int lvGauge)
Definition: StaveServices.h:23
StaveServices::m_numData
int m_numData
Definition: StaveServices.h:45
StaveServices::type
DetType::Type type() const
Definition: StaveServices.h:28