CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTPerformance.h
Go to the documentation of this file.
1 #ifndef DTPerformance_H
2 #define DTPerformance_H
3 
14 //----------------------
15 // Base Class Headers --
16 //----------------------
17 
18 
19 //------------------------------------
20 // Collaborating Class Declarations --
21 //------------------------------------
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 
32 // ---------------------
33 // -- Class Interface --
34 // ---------------------
35 
37 
38  public:
39 
42 
43  int wheelId;
44  int stationId;
45  int sectorId;
46  int slId;
47 
48 };
49 
50 
52 
53  public:
54 
57 
58  float meanT0;
59  float meanTtrig;
60  float meanMtime;
61  float meanNoise;
65 
66 };
67 
68 
70 
71  public:
72 
75  DTPerformance();
77 
81 
84  int slPerformance( int wheelId,
86  int stationId,
87  int sectorId,
88  int slId,
89  float& meanT0,
90  float& meanTtrig,
91  float& meanMtime,
92  float& meanNoise,
93  float& meanAfterPulse,
94  float& meanResolution,
95  float& meanEfficiency,
96  DTTimeUnits::type unit ) const
97  { return get( wheelId, stationId, sectorId, slId,
98  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
99  meanResolution, meanEfficiency, unit ); };
101  float& meanT0,
102  float& meanTtrig,
103  float& meanMtime,
104  float& meanNoise,
105  float& meanAfterPulse,
106  float& meanResolution,
107  float& meanEfficiency,
108  DTTimeUnits::type unit ) const
109  { return get( id,
110  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
111  meanResolution, meanEfficiency, unit ); };
112  int get( int wheelId,
113  int stationId,
114  int sectorId,
115  int slId,
116  float& meanT0,
117  float& meanTtrig,
118  float& meanMtime,
119  float& meanNoise,
120  float& meanAfterPulse,
121  float& meanResolution,
122  float& meanEfficiency,
123  DTTimeUnits::type unit ) const;
124  int get( const DTSuperLayerId& id,
125  float& meanT0,
126  float& meanTtrig,
127  float& meanMtime,
128  float& meanNoise,
129  float& meanAfterPulse,
130  float& meanResolution,
131  float& meanEfficiency,
132  DTTimeUnits::type unit ) const;
133  float unit() const;
134 
136  const
137  std::string& version() const;
138  std::string& version();
139 
141  void clear();
142 
143  int setSLPerformance( int wheelId,
144  int stationId,
145  int sectorId,
146  int slId,
147  float meanT0,
148  float meanTtrig,
149  float meanMtime,
150  float meanNoise,
151  float meanAfterPulse,
152  float meanResolution,
153  float meanEfficiency,
154  DTTimeUnits::type unit )
155  { return set( wheelId, stationId, sectorId, slId,
156  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
157  meanResolution, meanEfficiency, unit ); };
159  float meanT0,
160  float meanTtrig,
161  float meanMtime,
162  float meanNoise,
163  float meanAfterPulse,
164  float meanResolution,
165  float meanEfficiency,
166  DTTimeUnits::type unit )
167  { return set( id,
168  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
169  meanResolution, meanEfficiency, unit ); };
170  int set( int wheelId,
171  int stationId,
172  int sectorId,
173  int slId,
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  int set( const DTSuperLayerId& id,
183  float meanT0,
184  float meanTtrig,
185  float meanMtime,
186  float meanNoise,
187  float meanAfterPulse,
188  float meanResolution,
189  float meanEfficiency,
190  DTTimeUnits::type unit );
191  void setUnit( float unit );
192 
194  typedef std::vector< std::pair<DTPerformanceId,
197  const_iterator begin() const;
198  const_iterator end() const;
199 
200  private:
201 
203  float nsPerCount;
204 
205  std::vector< std::pair<DTPerformanceId,DTPerformanceData> > dataList;
206 
208 
210  void cacheMap() const;
211  std::string mapName() const;
212 
213 };
214 
215 
216 #endif // DTPerformance_H
217 
const std::string & version() const
access version
const_iterator begin() const
std::string mapName() const
int slPerformance(const DTSuperLayerId &id, float &meanT0, float &meanTtrig, float &meanMtime, float &meanNoise, float &meanAfterPulse, float &meanResolution, float &meanEfficiency, DTTimeUnits::type unit) const
void setUnit(float unit)
void clear()
reset content
std::vector< std::pair< DTPerformanceId, DTPerformanceData > > dataList
std::vector< std::pair< DTPerformanceId, DTPerformanceData > >::const_iterator const_iterator
Access methods to data.
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:85
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)
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)
const_iterator end() const
float unit() const
void cacheMap() const
read and store full content
DTBufferTree< int, int > * dBuf
std::string dataVersion
int setSLPerformance(const DTSuperLayerId &id, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)