test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTT0.h
Go to the documentation of this file.
1 #ifndef DTT0_H
2 #define DTT0_H
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
16 
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <string>
30 #include <vector>
31 #include <map>
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
37 class DTT0Data {
38 
39  public:
40 
41  DTT0Data();
42  ~DTT0Data();
43 
44  uint32_t channelId;
45  float t0mean;
46  float t0rms;
47 
48 
50 };
51 
52 
53 class DTT0 {
54 
55  public:
56 
59  DTT0();
60  DTT0( const std::string& version );
61 
64  ~DTT0();
65 
68  int cellT0( int wheelId,
70  int stationId,
71  int sectorId,
72  int slId,
73  int layerId,
74  int cellId,
75  float& t0mean,
76  float& t0rms,
77  DTTimeUnits::type unit ) const
78  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
79  t0mean, t0rms, unit ); };
80  int cellT0( const DTWireId& id,
81  float& t0mean,
82  float& t0rms,
83  DTTimeUnits::type unit ) const
84  { return get( id, t0mean, t0rms, unit ); };
85  int get( int wheelId,
86  int stationId,
87  int sectorId,
88  int slId,
89  int layerId,
90  int cellId,
91  float& t0mean,
92  float& t0rms,
93  DTTimeUnits::type unit ) const;
94  int get( const DTWireId& id,
95  float& t0mean,
96  float& t0rms,
97  DTTimeUnits::type unit ) const;
98  float unit() const;
99 
101  const
102  std::string& version() const;
103  std::string& version();
104 
106  void clear();
107 
108  int setCellT0( int wheelId,
109  int stationId,
110  int sectorId,
111  int slId,
112  int layerId,
113  int cellId,
114  float t0mean,
115  float t0rms,
116  DTTimeUnits::type unit )
117  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
118  t0mean, t0rms, unit ); };
119  int setCellT0( const DTWireId& id,
120  float t0mean,
121  float t0rms,
122  DTTimeUnits::type unit )
123  { return set( id, t0mean, t0rms, unit ); };
124  int set( int wheelId,
125  int stationId,
126  int sectorId,
127  int slId,
128  int layerId,
129  int cellId,
130  float t0mean,
131  float t0rms,
132  DTTimeUnits::type unit );
133  int set( const DTWireId& id,
134  float t0mean,
135  float t0rms,
136  DTTimeUnits::type unit );
137  void setUnit( float unit );
138 
140  typedef std::vector<DTT0Data>::const_iterator const_iterator;
141  const_iterator begin() const;
142  const_iterator end() const;
143 
144  private:
145 
147  float nsPerCount;
148 
149  std::vector< DTT0Data > dataList;
150 
151 
153 };
154 
155 
156 #endif // DTT0_H
157 
const_iterator begin() const
Definition: DTT0.cc:204
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.cc:140
int setCellT0(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.h:108
std::vector< DTT0Data > dataList
Definition: DTT0.h:149
uint32_t channelId
Definition: DTT0.h:44
int setCellT0(const DTWireId &id, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.h:119
DTT0()
Definition: DTT0.cc:32
std::string dataVersion
Definition: DTT0.h:146
std::vector< DTT0Data >::const_iterator const_iterator
Access methods to data.
Definition: DTT0.h:140
Definition: DTT0.h:53
int cellT0(const DTWireId &id, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
Definition: DTT0.h:80
void setUnit(float unit)
Definition: DTT0.cc:199
DTT0Data()
Definition: DTT0.cc:46
const_iterator end() const
Definition: DTT0.cc:209
float unit() const
Definition: DTT0.cc:112
~DTT0Data()
Definition: DTT0.cc:60
float nsPerCount
Definition: DTT0.h:147
#define COND_SERIALIZABLE
Definition: Serializable.h:37
int cellT0(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
get content
Definition: DTT0.h:69
~DTT0()
Definition: DTT0.cc:56
const std::string & version() const
access version
Definition: DTT0.cc:118
void clear()
reset content
Definition: DTT0.cc:128
float t0rms
Definition: DTT0.h:46
float t0mean
Definition: DTT0.h:45
Definition: DTT0.h:37