CMS 3D CMS Logo

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,
133  int set( const DTWireId& id,
134  float t0mean,
135  float t0rms,
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 
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
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
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
int cellT0(const DTWireId &id, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
Definition: DTT0.h:80
#define end
Definition: vmac.h:37
DTT0Data()
Definition: DTT0.cc:46
~DTT0Data()
Definition: DTT0.cc:60
float nsPerCount
Definition: DTT0.h:147
#define COND_SERIALIZABLE
Definition: Serializable.h:38
#define begin
Definition: vmac.h:30
float t0rms
Definition: DTT0.h:46
float t0mean
Definition: DTT0.h:45
Definition: DTT0.h:37