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 
77  ~DTPerformance();
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,
159  DTTimeUnits::type unit) {
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,
181  DTTimeUnits::type unit) {
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
static AlgebraicMatrix initialize()
int slPerformance(const DTSuperLayerId &id, float &meanT0, float &meanTtrig, float &meanMtime, float &meanNoise, float &meanAfterPulse, float &meanResolution, float &meanEfficiency, DTTimeUnits::type unit) const
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:151
#define end
Definition: vmac.h:39
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)
#define COND_TRANSIENT
Definition: Serializable.h:62
std::string dataVersion
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:32
std::vector< std::pair< DTPerformanceId, DTPerformanceData > >::const_iterator const_iterator
Access methods to data.
std::vector< std::pair< DTPerformanceId, DTPerformanceData > > dataList
Basic3DVector unit() const
int setSLPerformance(const DTSuperLayerId &id, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)