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 
15 //----------------------
16 // Base Class Headers --
17 //----------------------
18 
19 
20 //------------------------------------
21 // Collaborating Class Declarations --
22 //------------------------------------
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <string>
31 #include <vector>
32 #include <map>
33 
34 // ---------------------
35 // -- Class Interface --
36 // ---------------------
37 
38 class DTT0Data {
39 
40  public:
41 
42  DTT0Data();
43  ~DTT0Data();
44 
45  uint32_t channelId;
46  float t0mean;
47  float t0rms;
48 
49 };
50 
51 
52 class DTT0 {
53 
54  public:
55 
58  DTT0();
59  DTT0( const std::string& version );
60 
63  ~DTT0();
64 
67  int cellT0( int wheelId,
69  int stationId,
70  int sectorId,
71  int slId,
72  int layerId,
73  int cellId,
74  float& t0mean,
75  float& t0rms,
76  DTTimeUnits::type unit ) const
77  { return get( wheelId, stationId, sectorId, slId, layerId, cellId,
78  t0mean, t0rms, unit ); };
79  int cellT0( const DTWireId& id,
80  float& t0mean,
81  float& t0rms,
82  DTTimeUnits::type unit ) const
83  { return get( id, t0mean, t0rms, unit ); };
84  int get( int wheelId,
85  int stationId,
86  int sectorId,
87  int slId,
88  int layerId,
89  int cellId,
90  float& t0mean,
91  float& t0rms,
92  DTTimeUnits::type unit ) const;
93  int get( const DTWireId& id,
94  float& t0mean,
95  float& t0rms,
96  DTTimeUnits::type unit ) const;
97  float unit() const;
98 
100  const
101  std::string& version() const;
102  std::string& version();
103 
105  void clear();
106 
107  int setCellT0( int wheelId,
108  int stationId,
109  int sectorId,
110  int slId,
111  int layerId,
112  int cellId,
113  float t0mean,
114  float t0rms,
115  DTTimeUnits::type unit )
116  { return set( wheelId, stationId, sectorId, slId, layerId, cellId,
117  t0mean, t0rms, unit ); };
118  int setCellT0( const DTWireId& id,
119  float t0mean,
120  float t0rms,
121  DTTimeUnits::type unit )
122  { return set( id, t0mean, t0rms, unit ); };
123  int set( int wheelId,
124  int stationId,
125  int sectorId,
126  int slId,
127  int layerId,
128  int cellId,
129  float t0mean,
130  float t0rms,
131  DTTimeUnits::type unit );
132  int set( const DTWireId& id,
133  float t0mean,
134  float t0rms,
135  DTTimeUnits::type unit );
136  void setUnit( float unit );
137 
139  typedef std::vector<DTT0Data>::const_iterator const_iterator;
140  const_iterator begin() const;
141  const_iterator end() const;
142 
143  private:
144 
145  std::string dataVersion;
146  float nsPerCount;
147 
148  std::vector< DTT0Data > dataList;
149 
150 };
151 
152 
153 #endif // DTT0_H
154 
const_iterator begin() const
Definition: DTT0.cc:206
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.cc:142
int setCellT0(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.h:107
std::vector< DTT0Data > dataList
Definition: DTT0.h:148
uint32_t channelId
Definition: DTT0.h:45
int setCellT0(const DTWireId &id, float t0mean, float t0rms, DTTimeUnits::type unit)
Definition: DTT0.h:118
DTT0()
Definition: DTT0.cc:34
std::string dataVersion
Definition: DTT0.h:145
std::vector< DTT0Data >::const_iterator const_iterator
Access methods to data.
Definition: DTT0.h:139
Definition: DTT0.h:52
int cellT0(const DTWireId &id, float &t0mean, float &t0rms, DTTimeUnits::type unit) const
Definition: DTT0.h:79
void setUnit(float unit)
Definition: DTT0.cc:201
DTT0Data()
Definition: DTT0.cc:48
const_iterator end() const
Definition: DTT0.cc:211
float unit() const
Definition: DTT0.cc:114
~DTT0Data()
Definition: DTT0.cc:62
float nsPerCount
Definition: DTT0.h:146
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:68
~DTT0()
Definition: DTT0.cc:58
const std::string & version() const
access version
Definition: DTT0.cc:120
void clear()
reset content
Definition: DTT0.cc:130
float t0rms
Definition: DTT0.h:47
float t0mean
Definition: DTT0.h:46
Definition: DTT0.h:38