CMS 3D CMS Logo

DTPerformance.h
Go to the documentation of this file.
1 #ifndef DTPerformance_H
2 #define DTPerformance_H
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
15 
16 //------------------------------------
17 // Collaborating Class Declarations --
18 //------------------------------------
20 
24 
25 //---------------
26 // C++ Headers --
27 //---------------
28 #include <string>
29 #include <vector>
30 #include <utility>
31 
32 template <class Key, class Content>
33 class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 public:
43 
44  int wheelId;
45  int stationId;
46  int sectorId;
47  int slId;
48 
50 };
51 
53 public:
56 
57  float meanT0;
58  float meanTtrig;
59  float meanMtime;
60  float meanNoise;
64 
66 };
67 
69 public:
72  DTPerformance();
74 
78 
81  int slPerformance(int wheelId,
83  int stationId,
84  int sectorId,
85  int slId,
86  float& meanT0,
87  float& meanTtrig,
88  float& meanMtime,
89  float& meanNoise,
90  float& meanAfterPulse,
91  float& meanResolution,
92  float& meanEfficiency,
93  DTTimeUnits::type unit) const {
94  return get(wheelId,
95  stationId,
96  sectorId,
97  slId,
98  meanT0,
99  meanTtrig,
100  meanMtime,
101  meanNoise,
102  meanAfterPulse,
103  meanResolution,
104  meanEfficiency,
105  unit);
106  };
108  float& meanT0,
109  float& meanTtrig,
110  float& meanMtime,
111  float& meanNoise,
112  float& meanAfterPulse,
113  float& meanResolution,
114  float& meanEfficiency,
115  DTTimeUnits::type unit) const {
116  return get(id, meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse, meanResolution, meanEfficiency, unit);
117  };
118  int get(int wheelId,
119  int stationId,
120  int sectorId,
121  int slId,
122  float& meanT0,
123  float& meanTtrig,
124  float& meanMtime,
125  float& meanNoise,
126  float& meanAfterPulse,
127  float& meanResolution,
128  float& meanEfficiency,
129  DTTimeUnits::type unit) const;
130  int get(const DTSuperLayerId& id,
131  float& meanT0,
132  float& meanTtrig,
133  float& meanMtime,
134  float& meanNoise,
135  float& meanAfterPulse,
136  float& meanResolution,
137  float& meanEfficiency,
138  DTTimeUnits::type unit) const;
139  float unit() const;
140 
142  const std::string& version() const;
143  std::string& version();
144 
146  void clear();
147 
148  int setSLPerformance(int wheelId,
149  int stationId,
150  int sectorId,
151  int slId,
152  float meanT0,
153  float meanTtrig,
154  float meanMtime,
155  float meanNoise,
156  float meanAfterPulse,
157  float meanResolution,
158  float meanEfficiency,
160  return set(wheelId,
161  stationId,
162  sectorId,
163  slId,
164  meanT0,
165  meanTtrig,
166  meanMtime,
167  meanNoise,
168  meanAfterPulse,
169  meanResolution,
170  meanEfficiency,
171  unit);
172  };
174  float meanT0,
175  float meanTtrig,
176  float meanMtime,
177  float meanNoise,
178  float meanAfterPulse,
179  float meanResolution,
180  float meanEfficiency,
182  return set(id, meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse, meanResolution, meanEfficiency, unit);
183  };
184  int set(int wheelId,
185  int stationId,
186  int sectorId,
187  int slId,
188  float meanT0,
189  float meanTtrig,
190  float meanMtime,
191  float meanNoise,
192  float meanAfterPulse,
193  float meanResolution,
194  float meanEfficiency,
196  int set(const DTSuperLayerId& id,
197  float meanT0,
198  float meanTtrig,
199  float meanMtime,
200  float meanNoise,
201  float meanAfterPulse,
202  float meanResolution,
203  float meanEfficiency,
205  void setUnit(float unit);
206 
208  typedef std::vector<std::pair<DTPerformanceId, DTPerformanceData> >::const_iterator const_iterator;
209  const_iterator begin() const;
210  const_iterator end() const;
211 
212  void initialize();
213 
214 private:
215  DTPerformance(DTPerformance const&) = delete;
216  DTPerformance& operator=(DTPerformance const&) = delete;
217 
219  float nsPerCount;
220 
221  std::vector<std::pair<DTPerformanceId, DTPerformanceData> > dataList;
222 
224 
226  std::string mapName() const;
227 
229 };
230 #endif // DTPerformance_H
DTPerformanceId
Definition: DTPerformance.h:39
DTPerformance::nsPerCount
float nsPerCount
Definition: DTPerformance.h:219
DTPerformanceData::meanT0
float meanT0
Definition: DTPerformance.h:57
ConstRespectingPtr.h
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTPerformanceData::meanResolution
float meanResolution
Definition: DTPerformance.h:62
DTPerformanceData::meanNoise
float meanNoise
Definition: DTPerformance.h:60
DTPerformanceData::DTPerformanceData
DTPerformanceData()
Definition: DTPerformance.cc:42
DTPerformance::dBuf
DTBufferTree< int, int > * dBuf
Definition: DTPerformance.h:223
DTPerformanceData::meanTtrig
float meanTtrig
Definition: DTPerformance.h:58
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTPerformance::operator=
DTPerformance & operator=(DTPerformance const &)=delete
DTPerformance::version
const std::string & version() const
access version
Definition: DTPerformance.cc:131
DTPerformanceData::~DTPerformanceData
~DTPerformanceData()
Definition: DTPerformance.cc:56
DTPerformance::dataList
std::vector< std::pair< DTPerformanceId, DTPerformanceData > > dataList
Definition: DTPerformance.h:221
DTPerformance::slPerformance
int slPerformance(int wheelId, int stationId, int sectorId, int slId, float &meanT0, float &meanTtrig, float &meanMtime, float &meanNoise, float &meanAfterPulse, float &meanResolution, float &meanEfficiency, DTTimeUnits::type unit) const
get content
Definition: DTPerformance.h:82
DTPerformance::setSLPerformance
int setSLPerformance(const DTSuperLayerId &id, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)
Definition: DTPerformance.h:173
DTPerformanceData::meanEfficiency
float meanEfficiency
Definition: DTPerformance.h:63
DTPerformance::dataVersion
std::string dataVersion
Definition: DTPerformance.h:218
DTPerformance::initialize
void initialize()
Definition: DTPerformance.cc:236
DTPerformanceId::DTPerformanceId
DTPerformanceId()
Definition: DTPerformance.cc:40
DTPerformanceId::stationId
int stationId
Definition: DTPerformance.h:45
DTPerformance::get
int get(int wheelId, int stationId, int sectorId, int slId, float &meanT0, float &meanTtrig, float &meanMtime, float &meanNoise, float &meanAfterPulse, float &meanResolution, float &meanEfficiency, DTTimeUnits::type unit) const
Definition: DTPerformance.cc:63
DTPerformanceData::meanMtime
float meanMtime
Definition: DTPerformance.h:59
DTTimeUnits::type
type
Definition: DTTimeUnits.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTPerformance::clear
void clear()
reset content
Definition: DTPerformance.cc:135
DTPerformance::setSLPerformance
int setSLPerformance(int wheelId, int stationId, int sectorId, int slId, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)
Definition: DTPerformance.h:148
DTPerformanceId::wheelId
int wheelId
Definition: DTPerformance.h:44
Serializable.h
DTBufferTree
Definition: DTBufferTree.h:42
DTPerformance::unit
float unit() const
Definition: DTPerformance.cc:129
DTPerformanceData
Definition: DTPerformance.h:52
DTPerformance::set
int set(int wheelId, int stationId, int sectorId, int slId, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)
Definition: DTPerformance.cc:141
DTPerformanceId::sectorId
int sectorId
Definition: DTPerformance.h:46
DTTimeUnits.h
DTPerformance::mapName
std::string mapName() const
read and store full content
Definition: DTPerformance.cc:230
DTPerformance
Definition: DTPerformance.h:68
DTPerformance::DTPerformance
DTPerformance()
Definition: DTPerformance.cc:31
DTPerformanceId::~DTPerformanceId
~DTPerformanceId()
Definition: DTPerformance.cc:58
DTPerformance::~DTPerformance
~DTPerformance()
Definition: DTPerformance.cc:54
DTPerformance::end
const_iterator end() const
Definition: DTPerformance.cc:228
DTSuperLayerId.h
DTPerformanceData::meanAfterPulse
float meanAfterPulse
Definition: DTPerformance.h:61
DTPerformanceId::slId
int slId
Definition: DTPerformance.h:47
DTPerformance::slPerformance
int slPerformance(const DTSuperLayerId &id, float &meanT0, float &meanTtrig, float &meanMtime, float &meanNoise, float &meanAfterPulse, float &meanResolution, float &meanEfficiency, DTTimeUnits::type unit) const
Definition: DTPerformance.h:107
DTPerformance::setUnit
void setUnit(float unit)
Definition: DTPerformance.cc:224
DTPerformance::begin
const_iterator begin() const
Definition: DTPerformance.cc:226
DTPerformance::const_iterator
std::vector< std::pair< DTPerformanceId, DTPerformanceData > >::const_iterator const_iterator
Access methods to data.
Definition: DTPerformance.h:208