CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTtrig.h
Go to the documentation of this file.
1 #ifndef DTTtrig_H
2 #define DTTtrig_H
3 
13 //----------------------
14 // Base Class Headers --
15 //----------------------
16 
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
27 
28 //---------------
29 // C++ Headers --
30 //---------------
31 #include <string>
32 #include <vector>
33 #include <utility>
34 
35 template <class Key, class Content> class DTBufferTree;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 class DTTtrigId {
42 
43  public:
44 
45  DTTtrigId();
46  ~DTTtrigId();
47 
48  int wheelId;
49  int stationId;
50  int sectorId;
51  int slId;
52  int layerId;
53  int cellId;
54 
55 
57 };
58 
59 
60 class DTTtrigData {
61 
62  public:
63 
64  DTTtrigData();
65  ~DTTtrigData();
66 
67  float tTrig;
68  float tTrms;
69  float kFact;
70 
71 
73 };
74 
75 
76 class DTTtrig {
77 
78  public:
79 
82  DTTtrig();
83  DTTtrig( const std::string& version );
84 
87  ~DTTtrig();
88 
91  int get( int wheelId,
93  int stationId,
94  int sectorId,
95  int slId,
96  float& tTrig,
97  float& tTrms,
98  float& kFact,
99  DTTimeUnits::type unit ) const;
100  int get( int wheelId,
101  int stationId,
102  int sectorId,
103  int slId,
104  int layerId,
105  int cellId,
106  float& tTrig,
107  float& tTrms,
108  float& kFact,
109  DTTimeUnits::type unit ) const;
110  int get( const DTSuperLayerId& id,
111  float& tTrig,
112  float& tTrms,
113  float& kFact,
114  DTTimeUnits::type unit ) const;
115  int get( const DetId& id,
116  float& tTrig,
117  float& tTrms,
118  float& kFact,
119  DTTimeUnits::type unit ) const;
120  int get( int wheelId,
121  int stationId,
122  int sectorId,
123  int slId,
124  float& tTrig,
125  DTTimeUnits::type unit ) const;
126  int get( int wheelId,
127  int stationId,
128  int sectorId,
129  int slId,
130  int layerId,
131  int cellId,
132  float& tTrig,
133  DTTimeUnits::type unit ) const;
134  int get( const DTSuperLayerId& id,
135  float& tTrig,
136  DTTimeUnits::type unit ) const;
137  int get( const DetId& id,
138  float& tTrig,
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 set( int wheelId,
151  int stationId,
152  int sectorId,
153  int slId,
154  float tTrig,
155  float tTrms,
156  float kFact,
157  DTTimeUnits::type unit );
158  int set( int wheelId,
159  int stationId,
160  int sectorId,
161  int slId,
162  int layerId,
163  int cellId,
164  float tTrig,
165  float tTrms,
166  float kFact,
167  DTTimeUnits::type unit );
168  int set( const DTSuperLayerId& id,
169  float tTrig,
170  float tTrms,
171  float kFact,
172  DTTimeUnits::type unit );
173  int set( const DetId& id,
174  float tTrig,
175  float tTrms,
176  float kFact,
177  DTTimeUnits::type unit );
178  void setUnit( float unit );
179 
181  typedef std::vector< std::pair<DTTtrigId,
184  const_iterator begin() const;
185  const_iterator end() const;
186 
187  void initialize();
188 
189  private:
190 
191  DTTtrig(DTTtrig const&);
192  DTTtrig& operator=(DTTtrig const&);
193 
195  float nsPerCount;
196 
197  std::vector< std::pair<DTTtrigId,DTTtrigData> > dataList;
198 
200 
201  std::string mapName() const;
202 
203 
205 };
206 #endif // DTTtrig_H
~DTTtrigId()
Definition: DTTtrig.cc:75
void initialize()
Definition: DTTtrig.cc:371
int wheelId
Definition: DTTtrig.h:48
int set(int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit)
Definition: DTTtrig.cc:248
DTTtrigId()
Definition: DTTtrig.cc:51
DTTtrig()
Definition: DTTtrig.cc:35
~DTTtrig()
Definition: DTTtrig.cc:71
~DTTtrigData()
Definition: DTTtrig.cc:79
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTTtrig.h:199
float nsPerCount
Definition: DTTtrig.h:195
float tTrms
Definition: DTTtrig.h:68
void setUnit(float unit)
Definition: DTTtrig.cc:349
const std::string & version() const
access version
Definition: DTTtrig.cc:231
int stationId
Definition: DTTtrig.h:49
std::vector< std::pair< DTTtrigId, DTTtrigData > > dataList
Definition: DTTtrig.h:197
DTTtrigData()
Definition: DTTtrig.cc:61
void clear()
reset content
Definition: DTTtrig.cc:241
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
Definition: DTTtrig.h:183
int sectorId
Definition: DTTtrig.h:50
int cellId
Definition: DTTtrig.h:53
std::string mapName() const
Definition: DTTtrig.cc:364
float unit() const
Definition: DTTtrig.cc:225
float kFact
Definition: DTTtrig.h:69
Definition: DetId.h:18
std::string dataVersion
Definition: DTTtrig.h:194
#define COND_TRANSIENT
Definition: Serializable.h:53
float tTrig
Definition: DTTtrig.h:67
int slId
Definition: DTTtrig.h:51
#define COND_SERIALIZABLE
Definition: Serializable.h:30
int layerId
Definition: DTTtrig.h:52
const_iterator begin() const
Definition: DTTtrig.cc:354
DTTtrig & operator=(DTTtrig const &)
const_iterator end() const
Definition: DTTtrig.cc:359