test
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 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
15 
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
21 
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 #include <utility>
32 
33 template <class Key, class Content> class DTBufferTree;
34 
35 // ---------------------
36 // -- Class Interface --
37 // ---------------------
38 
40 
41  public:
42 
45 
46  int wheelId;
47  int stationId;
48  int sectorId;
49  int slId;
50 
51 
53 };
54 
55 
57 
58  public:
59 
62 
63  float meanT0;
64  float meanTtrig;
65  float meanMtime;
66  float meanNoise;
70 
71 
73 };
74 
75 
77 
78  public:
79 
82  DTPerformance();
84 
88 
91  int slPerformance( int wheelId,
93  int stationId,
94  int sectorId,
95  int slId,
96  float& meanT0,
97  float& meanTtrig,
98  float& meanMtime,
99  float& meanNoise,
100  float& meanAfterPulse,
101  float& meanResolution,
102  float& meanEfficiency,
103  DTTimeUnits::type unit ) const
104  { return get( wheelId, stationId, sectorId, slId,
105  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
106  meanResolution, meanEfficiency, unit ); };
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,
117  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
118  meanResolution, meanEfficiency, unit ); };
119  int get( int wheelId,
120  int stationId,
121  int sectorId,
122  int slId,
123  float& meanT0,
124  float& meanTtrig,
125  float& meanMtime,
126  float& meanNoise,
127  float& meanAfterPulse,
128  float& meanResolution,
129  float& meanEfficiency,
130  DTTimeUnits::type unit ) const;
131  int get( const DTSuperLayerId& id,
132  float& meanT0,
133  float& meanTtrig,
134  float& meanMtime,
135  float& meanNoise,
136  float& meanAfterPulse,
137  float& meanResolution,
138  float& meanEfficiency,
139  DTTimeUnits::type unit ) const;
140  float unit() const;
141 
143  const
144  std::string& version() const;
145  std::string& version();
146 
148  void clear();
149 
150  int setSLPerformance( int wheelId,
151  int stationId,
152  int sectorId,
153  int slId,
154  float meanT0,
155  float meanTtrig,
156  float meanMtime,
157  float meanNoise,
158  float meanAfterPulse,
159  float meanResolution,
160  float meanEfficiency,
161  DTTimeUnits::type unit )
162  { return set( wheelId, stationId, sectorId, slId,
163  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
164  meanResolution, meanEfficiency, unit ); };
166  float meanT0,
167  float meanTtrig,
168  float meanMtime,
169  float meanNoise,
170  float meanAfterPulse,
171  float meanResolution,
172  float meanEfficiency,
173  DTTimeUnits::type unit )
174  { return set( id,
175  meanT0, meanTtrig, meanMtime, meanNoise, meanAfterPulse,
176  meanResolution, meanEfficiency, unit ); };
177  int set( int wheelId,
178  int stationId,
179  int sectorId,
180  int slId,
181  float meanT0,
182  float meanTtrig,
183  float meanMtime,
184  float meanNoise,
185  float meanAfterPulse,
186  float meanResolution,
187  float meanEfficiency,
188  DTTimeUnits::type unit );
189  int set( const DTSuperLayerId& id,
190  float meanT0,
191  float meanTtrig,
192  float meanMtime,
193  float meanNoise,
194  float meanAfterPulse,
195  float meanResolution,
196  float meanEfficiency,
197  DTTimeUnits::type unit );
198  void setUnit( float unit );
199 
201  typedef std::vector< std::pair<DTPerformanceId,
204  const_iterator begin() const;
205  const_iterator end() const;
206 
207  void initialize();
208 
209  private:
210 
213 
215  float nsPerCount;
216 
217  std::vector< std::pair<DTPerformanceId,DTPerformanceData> > dataList;
218 
220 
222  std::string mapName() const;
223 
224 
226 };
227 #endif // DTPerformance_H
const std::string & version() const
access version
const_iterator begin() const
std::string mapName() const
read and store full content
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:92
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
#define COND_TRANSIENT
Definition: Serializable.h:53
DTBufferTree< int, int > * dBuf
std::string dataVersion
#define COND_SERIALIZABLE
Definition: Serializable.h:30
DTPerformance & operator=(DTPerformance const &)
int setSLPerformance(const DTSuperLayerId &id, float meanT0, float meanTtrig, float meanMtime, float meanNoise, float meanAfterPulse, float meanResolution, float meanEfficiency, DTTimeUnits::type unit)