CMS 3D CMS Logo

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 // Collaborating Class Declarations --
19 //------------------------------------
21 
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <string>
31 #include <vector>
32 #include <utility>
33 
34 template <class Key, class Content>
35 class DTBufferTree;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
41 class DTTtrigId {
42 public:
43  DTTtrigId();
44  ~DTTtrigId();
45 
46  int wheelId;
47  int stationId;
48  int sectorId;
49  int slId;
50  int layerId;
51  int cellId;
52 
54 };
55 
56 class DTTtrigData {
57 public:
58  DTTtrigData();
59  ~DTTtrigData();
60 
61  float tTrig;
62  float tTrms;
63  float kFact;
64 
66 };
67 
68 class DTTtrig {
69 public:
72  DTTtrig();
73  DTTtrig(const std::string& version);
74 
77  ~DTTtrig();
78 
81  int get(int wheelId,
83  int stationId,
84  int sectorId,
85  int slId,
86  float& tTrig,
87  float& tTrms,
88  float& kFact,
89  DTTimeUnits::type unit) const;
90  int get(int wheelId,
91  int stationId,
92  int sectorId,
93  int slId,
94  int layerId,
95  int cellId,
96  float& tTrig,
97  float& tTrms,
98  float& kFact,
99  DTTimeUnits::type unit) const;
100  int get(const DTSuperLayerId& id, float& tTrig, float& tTrms, float& kFact, DTTimeUnits::type unit) const;
101  int get(const DetId& id, float& tTrig, float& tTrms, float& kFact, DTTimeUnits::type unit) const;
102  int get(int wheelId, int stationId, int sectorId, int slId, float& tTrig, DTTimeUnits::type unit) const;
103  int get(int wheelId,
104  int stationId,
105  int sectorId,
106  int slId,
107  int layerId,
108  int cellId,
109  float& tTrig,
110  DTTimeUnits::type unit) const;
111  int get(const DTSuperLayerId& id, float& tTrig, DTTimeUnits::type unit) const;
112  int get(const DetId& id, float& tTrig, DTTimeUnits::type unit) const;
113  float unit() const;
114 
116  const std::string& version() const;
117  std::string& version();
118 
120  void clear();
121 
122  int set(
123  int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit);
124  int set(int wheelId,
125  int stationId,
126  int sectorId,
127  int slId,
128  int layerId,
129  int cellId,
130  float tTrig,
131  float tTrms,
132  float kFact,
134  int set(const DTSuperLayerId& id, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit);
135  int set(const DetId& id, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit);
136  void setUnit(float unit);
137 
139  typedef std::vector<std::pair<DTTtrigId, DTTtrigData> >::const_iterator const_iterator;
140  const_iterator begin() const;
141  const_iterator end() const;
142 
143  void initialize();
144 
145 private:
146  DTTtrig(DTTtrig const&) = delete;
147  DTTtrig& operator=(DTTtrig const&) = delete;
148 
150  float nsPerCount;
151 
152  std::vector<std::pair<DTTtrigId, DTTtrigData> > dataList;
153 
155 
156  std::string mapName() const;
157 
159 };
160 #endif // DTTtrig_H
ConstRespectingPtr.h
DTSuperLayerId
Definition: DTSuperLayerId.h:12
DTTtrig::unit
float unit() const
Definition: DTTtrig.cc:160
DTTtrig
Definition: DTTtrig.h:68
DTTtrig::version
const std::string & version() const
access version
Definition: DTTtrig.cc:162
DTTtrig::nsPerCount
float nsPerCount
Definition: DTTtrig.h:150
DTTtrigData
Definition: DTTtrig.h:56
DTTtrigId
Definition: DTTtrig.h:41
dttriganalyzer_cfi.tTrig
tTrig
Definition: dttriganalyzer_cfi.py:11
DTTtrigData::DTTtrigData
DTTtrigData()
Definition: DTTtrig.cc:45
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
COND_TRANSIENT
#define COND_TRANSIENT
Definition: Serializable.h:63
DTTtrig::end
const_iterator end() const
Definition: DTTtrig.cc:252
DTTtrig::dBuf
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
Definition: DTTtrig.h:154
DTTtrig::dataList
std::vector< std::pair< DTTtrigId, DTTtrigData > > dataList
Definition: DTTtrig.h:152
DTTtrig::mapName
std::string mapName() const
Definition: DTTtrig.cc:254
DTTtrigData::tTrms
float tTrms
Definition: DTTtrig.h:62
DTTtrig::const_iterator
std::vector< std::pair< DTTtrigId, DTTtrigData > >::const_iterator const_iterator
Access methods to data.
Definition: DTTtrig.h:139
DTTtrigData::~DTTtrigData
~DTTtrigData()
Definition: DTTtrig.cc:54
DetId
Definition: DetId.h:17
DTTtrig::begin
const_iterator begin() const
Definition: DTTtrig.cc:250
DTTtrigId::wheelId
int wheelId
Definition: DTTtrig.h:46
DTTtrigId::cellId
int cellId
Definition: DTTtrig.h:51
DTTtrig::DTTtrig
DTTtrig()
Definition: DTTtrig.cc:34
DTTtrig::operator=
DTTtrig & operator=(DTTtrig const &)=delete
DTTtrig::get
int get(int wheelId, int stationId, int sectorId, int slId, float &tTrig, float &tTrms, float &kFact, DTTimeUnits::type unit) const
get content
Definition: DTTtrig.cc:59
DTTimeUnits::type
type
Definition: DTTimeUnits.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DTTtrig::initialize
void initialize()
Definition: DTTtrig.cc:260
DTTtrigId::~DTTtrigId
~DTTtrigId()
Definition: DTTtrig.cc:52
DTTtrigId::slId
int slId
Definition: DTTtrig.h:49
DTTtrigId::layerId
int layerId
Definition: DTTtrig.h:50
DTTtrig::dataVersion
std::string dataVersion
Definition: DTTtrig.h:149
Serializable.h
DTBufferTree
Definition: DTBufferTree.h:42
DTTtrig::set
int set(int wheelId, int stationId, int sectorId, int slId, float tTrig, float tTrms, float kFact, DTTimeUnits::type unit)
Definition: DTTtrig.cc:172
DTTtrig::clear
void clear()
reset content
Definition: DTTtrig.cc:166
DTTtrigId::stationId
int stationId
Definition: DTTtrig.h:47
edm::ConstRespectingPtr
Definition: ConstRespectingPtr.h:27
DTTtrigData::kFact
float kFact
Definition: DTTtrig.h:63
DTTimeUnits.h
DTTtrigData::tTrig
float tTrig
Definition: DTTtrig.h:61
DTTtrigId::DTTtrigId
DTTtrigId()
Definition: DTTtrig.cc:43
DTWireId.h
DTTtrigId::sectorId
int sectorId
Definition: DTTtrig.h:48
DTTtrig::~DTTtrig
~DTTtrig()
Definition: DTTtrig.cc:50
DTSuperLayerId.h
DTTtrig::setUnit
void setUnit(float unit)
Definition: DTTtrig.cc:248