CMS 3D CMS Logo

DEtrait.h
Go to the documentation of this file.
1 #ifndef DE_TRAIT_H
2 #define DE_TRAIT_H
3 
4 /*\class template DEtrait
5  *\description data|emulation auxiliary template
6  type associator trait struct
7  *\author Nuno Leonardo (CERN)
8  *\date 07.03
9  */
10 
11 // L1 dataformats includes
32 
33 //d|e record
35 
36 namespace dedefs {
37 
38  const int DEnsys = 12;
39 
40  enum SysList { ETP, HTP, RCT, GCT, DTP, DTF, CTP, CTF, RPC, LTC, GMT, GLT };
41 
43  "ETP", "HTP", "RCT", "GCT", "DTP", "DTF", "CTP", "CTF", "RPC", "LTC", "GMT", "GLT"};
44 
46  "ECAL", "HCAL", "RCT", "GCT", "DTTPG", "DTTF", "CSCTPG", "CSCTF", "RPC", "LTC", "GMT", "GT"};
47 
48  enum ColList {
88  };
89 
90 } // namespace dedefs
91 
92 typedef std::vector<L1MuDTChambPhDigi> L1MuDTChambPhDigiCollection;
93 typedef std::vector<L1MuDTChambThDigi> L1MuDTChambThDigiCollection;
94 typedef std::vector<L1MuRegionalCand> L1MuRegionalCandCollection;
95 typedef std::vector<CSCALCTDigi> CSCALCTDigiCollection_;
96 typedef std::vector<CSCCLCTDigi> CSCCLCTDigiCollection_;
97 typedef std::vector<CSCCorrelatedLCTDigi> CSCCorrelatedLCTDigiCollection_;
98 typedef std::vector<L1CSCSPStatusDigi> L1CSCSPStatusDigiCollection_;
99 typedef std::vector<L1MuGMTCand> L1MuGMTCandCollection;
100 typedef std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutRecordCollection;
101 typedef std::vector<L1DataEmulDigi> L1DEDigiCollection;
102 
103 template <typename T>
104 struct DEtrait {};
105 
106 template <>
110  static inline int de_type() { return dedefs::ECALtp; }
111 };
112 
113 template <>
117  static inline int de_type() { return dedefs::HCALtp; }
118 };
119 
120 template <>
124  static inline int de_type() { return dedefs::RCTem; }
125 };
126 
127 template <>
131  static inline int de_type() { return dedefs::RCTrgn; }
132 };
133 
134 template <>
138  static inline int de_type() { return dedefs::GCTem; }
139 };
140 
141 template <>
145  static inline int de_type() { return dedefs::GCTjet; }
146 };
147 
148 template <>
152  static inline int de_type() { return dedefs::GCTethad; }
153 };
154 template <>
158  static inline int de_type() { return dedefs::GCTetmiss; }
159 };
160 template <>
164  static inline int de_type() { return dedefs::GCTettot; }
165 };
166 template <>
170  static inline int de_type() { return dedefs::GCThtmiss; }
171 };
172 template <>
176  static inline int de_type() { return dedefs::GCThfring; }
177 };
178 template <>
182  static inline int de_type() { return dedefs::GCThfbit; }
183 };
184 template <>
188  static inline int de_type() { return dedefs::GCTjetcnt; }
189 };
190 
191 template <>
195  static inline int de_type() { return dedefs::DTtpPh; }
196 };
197 template <>
201  static inline int de_type() { return dedefs::DTtpTh; }
202 };
203 
204 template <>
208  static inline int de_type() { return dedefs::MUrtf; }
209 };
210 
211 template <>
215  static inline int de_type() { return dedefs::CSCtpa; }
216 };
217 template <>
221  static inline int de_type() { return dedefs::CSCtpc; }
222 };
223 
224 template <>
228  static inline int de_type() { return dedefs::CSCtpl; }
229 };
230 
231 template <>
235  static inline int de_type() { return dedefs::CSCsta; }
236 };
237 
238 template <>
242  static inline int de_type() { return dedefs::LTCi; }
243 };
244 
245 template <>
249  static inline int de_type() { return dedefs::GMTcnd; }
250 };
251 
252 template <>
256  static inline int de_type() { return dedefs::GMTrdt; }
257 };
258 
259 template <>
262  typedef bool cand_type;
263  static inline int de_type() { return dedefs::GTdword; }
264 };
265 
266 #endif
dedefs::HTP
Definition: DEtrait.h:40
L1GctHtMiss
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
DEtrait< L1MuDTChambPhDigiCollection >::coll_type
L1MuDTChambPhDigiCollection coll_type
Definition: DEtrait.h:193
dedefs::CSCsta
Definition: DEtrait.h:75
dedefs::SystLabel
const std::string SystLabel[DEnsys]
Definition: DEtrait.h:42
L1DEDigiCollection
std::vector< L1DataEmulDigi > L1DEDigiCollection
Definition: DEtrait.h:101
CSCCorrelatedLCTDigiCollection.h
DEtrait< L1GctEtTotalCollection >::de_type
static int de_type()
Definition: DEtrait.h:164
DEtrait< L1CaloRegionCollection >::coll_type
L1CaloRegionCollection coll_type
Definition: DEtrait.h:129
L1GctJetCand
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:17
DEtrait< EcalTrigPrimDigiCollection >::coll_type
EcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:108
DEtrait< CSCCLCTDigiCollection_ >::cand_type
CSCCLCTDigi cand_type
Definition: DEtrait.h:220
dedefs::SysList
SysList
Definition: DEtrait.h:40
dedefs::GMTrdt
Definition: DEtrait.h:86
L1CaloRegion
A calorimeter trigger region (sum of 4x4 trigger towers)
Definition: L1CaloRegion.h:21
DEtrait< L1GctJetCandCollection >::coll_type
L1GctJetCandCollection coll_type
Definition: DEtrait.h:143
dedefs::RPC
Definition: DEtrait.h:40
DEtrait< L1GctJetCountsCollection >::de_type
static int de_type()
Definition: DEtrait.h:188
dedefs::SystLabelExt
const std::string SystLabelExt[DEnsys]
Definition: DEtrait.h:45
DEtrait< L1GctEtTotalCollection >::cand_type
L1GctEtTotal cand_type
Definition: DEtrait.h:163
dedefs::CSCtpa
Definition: DEtrait.h:72
DEtrait< L1MuDTChambPhDigiCollection >::cand_type
L1MuDTChambPhDigi cand_type
Definition: DEtrait.h:194
L1MuGMTCandCollection
std::vector< L1MuGMTCand > L1MuGMTCandCollection
Definition: DEtrait.h:99
DEtrait< L1GctHtMissCollection >::coll_type
L1GctHtMissCollection coll_type
Definition: DEtrait.h:168
L1GctCollections.h
DEtrait
Definition: DEcompare.h:22
dedefs::CSCtf
Definition: DEtrait.h:76
L1GctHFRingEtSums
L1 GCT HF ring Et sums.
Definition: L1GctHFRingEtSums.h:16
DEtrait< DecisionWord >::de_type
static int de_type()
Definition: DEtrait.h:263
dedefs::DTtpPh
Definition: DEtrait.h:68
L1MuGMTReadoutCollection.h
L1GctJetCandCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
Definition: L1GctCollections.h:31
DEtrait< L1CSCSPStatusDigiCollection_ >::cand_type
L1CSCSPStatusDigi cand_type
Definition: DEtrait.h:234
DEtrait< L1GctJetCandCollection >::cand_type
L1GctJetCand cand_type
Definition: DEtrait.h:144
DEtrait< L1GctJetCandCollection >::de_type
static int de_type()
Definition: DEtrait.h:145
dedefs::CTP
Definition: DEtrait.h:40
L1GctHFBitCounts
L1 GCT HF ring Et sums.
Definition: L1GctHFBitCounts.h:16
dedefs::GMT
Definition: DEtrait.h:40
dedefs::GMTmain
Definition: DEtrait.h:84
CSCALCTDigiCollection_
std::vector< CSCALCTDigi > CSCALCTDigiCollection_
Definition: DEtrait.h:95
L1GctEmCand
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:21
DEtrait< L1GctHFRingEtSumsCollection >::de_type
static int de_type()
Definition: DEtrait.h:176
edm::SortedCollection
Definition: SortedCollection.h:49
DEtrait< L1CSCSPStatusDigiCollection_ >::de_type
static int de_type()
Definition: DEtrait.h:235
dedefs::DTtf
Definition: DEtrait.h:70
DEtrait< L1MuDTChambThDigiCollection >::cand_type
L1MuDTChambThDigi cand_type
Definition: DEtrait.h:200
L1MuDTChambThContainer.h
DEtrait< L1GctHFBitCountsCollection >::cand_type
L1GctHFBitCounts cand_type
Definition: DEtrait.h:181
DEtrait< L1GctHFBitCountsCollection >::coll_type
L1GctHFBitCountsCollection coll_type
Definition: DEtrait.h:180
DEtrait< HcalTrigPrimDigiCollection >::de_type
static int de_type()
Definition: DEtrait.h:117
dedefs::RCTem
Definition: DEtrait.h:51
L1MuGMTCand
Definition: L1MuGMTCand.h:39
CSCCLCTDigi
Definition: CSCCLCTDigi.h:17
DEtrait< L1MuGMTCandCollection >::cand_type
L1MuGMTCand cand_type
Definition: DEtrait.h:248
L1GctJetCountsCollection
std::vector< L1GctJetCounts > L1GctJetCountsCollection
Definition: L1GctCollections.h:37
L1CSCStatusDigiCollection.h
L1GctEtMissCollection
std::vector< L1GctEtMiss > L1GctEtMissCollection
Definition: L1GctCollections.h:34
dedefs::DTP
Definition: DEtrait.h:40
L1MuRegionalCand.h
DEtrait< L1MuDTChambThDigiCollection >::coll_type
L1MuDTChambThDigiCollection coll_type
Definition: DEtrait.h:199
LTCDigi.h
L1MuGMTReadoutRecordCollection
std::vector< L1MuGMTReadoutRecord > L1MuGMTReadoutRecordCollection
Definition: DEtrait.h:100
L1MuDTChambThDigiCollection
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
Definition: DEtrait.h:93
DEtrait< EcalTrigPrimDigiCollection >::de_type
static int de_type()
Definition: DEtrait.h:110
dedefs::GCThfring
Definition: DEtrait.h:64
L1GlobalTriggerEvmReadoutRecord.h
L1CaloEmCollection
std::vector< L1CaloEmCand > L1CaloEmCollection
Definition: L1CaloCollections.h:10
L1GctEtMiss
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:17
dedefs::GCTisotaujets
Definition: DEtrait.h:66
DEtrait< L1GctEtMissCollection >::coll_type
L1GctEtMissCollection coll_type
Definition: DEtrait.h:156
dedefs::GCTcenjets
Definition: DEtrait.h:57
L1MuGMTReadoutRecord
Definition: L1MuGMTReadoutRecord.h:44
DEtrait< L1CaloRegionCollection >::cand_type
L1CaloRegion cand_type
Definition: DEtrait.h:130
L1MuDTTrackCand.h
dedefs::DTtftrk
Definition: DEtrait.h:71
dedefs::GCT
Definition: DEtrait.h:40
HcalDigiCollections.h
DEtrait< L1MuDTChambThDigiCollection >::de_type
static int de_type()
Definition: DEtrait.h:201
DEtrait< L1MuGMTReadoutRecordCollection >::coll_type
L1MuGMTReadoutRecordCollection coll_type
Definition: DEtrait.h:254
DEtrait< CSCCLCTDigiCollection_ >::de_type
static int de_type()
Definition: DEtrait.h:221
DEtrait< L1GctJetCountsCollection >::coll_type
L1GctJetCountsCollection coll_type
Definition: DEtrait.h:186
DEtrait< L1GctHFRingEtSumsCollection >::coll_type
L1GctHFRingEtSumsCollection coll_type
Definition: DEtrait.h:174
DEtrait< DecisionWord >::coll_type
DecisionWord coll_type
Definition: DEtrait.h:261
EcalDigiCollections.h
CSCCorrelatedLCTDigiCollection_
std::vector< CSCCorrelatedLCTDigi > CSCCorrelatedLCTDigiCollection_
Definition: DEtrait.h:97
dedefs::GCTethad
Definition: DEtrait.h:60
L1MuRegionalCand
Definition: L1MuRegionalCand.h:26
DEtrait< HcalTrigPrimDigiCollection >::coll_type
HcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:115
dedefs::ETP
Definition: DEtrait.h:40
DEtrait< L1MuRegionalCandCollection >::cand_type
L1MuRegionalCand cand_type
Definition: DEtrait.h:207
DEtrait< L1CaloEmCollection >::coll_type
L1CaloEmCollection coll_type
Definition: DEtrait.h:122
DEtrait< L1MuDTChambPhDigiCollection >::de_type
static int de_type()
Definition: DEtrait.h:195
dedefs::CSCtftrk
Definition: DEtrait.h:77
LTCDigi
Definition: LTCDigi.h:15
dedefs::GCTnoisoem
Definition: DEtrait.h:56
DEtrait< L1GctEtMissCollection >::de_type
static int de_type()
Definition: DEtrait.h:158
dedefs::MUrtf
Definition: DEtrait.h:80
DEtrait< L1MuGMTCandCollection >::de_type
static int de_type()
Definition: DEtrait.h:249
L1GctEtTotal
Persistable copy of total Et measured at Level-1.
Definition: L1GctEtTotal.h:17
DEtrait< L1CaloEmCollection >::cand_type
L1CaloEmCand cand_type
Definition: DEtrait.h:123
dedefs::DTtpTh
Definition: DEtrait.h:69
DEtrait< L1CaloEmCollection >::de_type
static int de_type()
Definition: DEtrait.h:124
DEtrait< L1MuGMTReadoutRecordCollection >::de_type
static int de_type()
Definition: DEtrait.h:256
L1GctEtTotalCollection
std::vector< L1GctEtTotal > L1GctEtTotalCollection
Definition: L1GctCollections.h:35
dedefs::GCTisolaem
Definition: DEtrait.h:55
L1MuDTChambPhDigiCollection
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
Definition: DEtrait.h:92
DEtrait< L1GctJetCountsCollection >::cand_type
L1GctJetCounts cand_type
Definition: DEtrait.h:187
DEtrait< L1GctEtMissCollection >::cand_type
L1GctEtMiss cand_type
Definition: DEtrait.h:157
LTCDigiCollection
std::vector< LTCDigi > LTCDigiCollection
Definition: LTCDigi.h:91
HcalTriggerPrimitiveDigi
Definition: HcalTriggerPrimitiveDigi.h:13
dedefs::GCTettot
Definition: DEtrait.h:62
dedefs::HCALtp
Definition: DEtrait.h:50
DEtrait< CSCCorrelatedLCTDigiCollection_ >::coll_type
CSCCorrelatedLCTDigiCollection_ coll_type
Definition: DEtrait.h:226
DEtrait< L1GctEtTotalCollection >::coll_type
L1GctEtTotalCollection coll_type
Definition: DEtrait.h:162
dedefs::GLT
Definition: DEtrait.h:40
DEtrait< LTCDigiCollection >::cand_type
LTCDigi cand_type
Definition: DEtrait.h:241
dedefs::CSCtfsta
Definition: DEtrait.h:79
dedefs::DTF
Definition: DEtrait.h:40
DEtrait< L1MuGMTCandCollection >::coll_type
L1MuGMTCandCollection coll_type
Definition: DEtrait.h:247
dedefs::GCThtmiss
Definition: DEtrait.h:63
L1CSCTrackCollection.h
DEtrait< CSCCorrelatedLCTDigiCollection_ >::cand_type
CSCCorrelatedLCTDigi cand_type
Definition: DEtrait.h:227
dedefs::GCTforjets
Definition: DEtrait.h:58
DEtrait< L1MuRegionalCandCollection >::coll_type
L1MuRegionalCandCollection coll_type
Definition: DEtrait.h:206
L1CaloCollections.h
dedefs::GCTtaujets
Definition: DEtrait.h:59
CSCCLCTDigiCollection_
std::vector< CSCCLCTDigi > CSCCLCTDigiCollection_
Definition: DEtrait.h:96
dedefs::RCTrgn
Definition: DEtrait.h:52
DEtrait< L1GctHtMissCollection >::de_type
static int de_type()
Definition: DEtrait.h:170
dedefs::LTC
Definition: DEtrait.h:40
DEtrait< EcalTrigPrimDigiCollection >::cand_type
EcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:109
dedefs::GCTjet
Definition: DEtrait.h:54
DEtrait< L1MuRegionalCandCollection >::de_type
static int de_type()
Definition: DEtrait.h:208
L1MuDTChambPhContainer.h
L1GctHFBitCountsCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
Definition: L1GctCollections.h:39
DEtrait< HcalTrigPrimDigiCollection >::cand_type
HcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:116
dedefs::RPCcen
Definition: DEtrait.h:81
dedefs
Definition: DEtrait.h:36
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DEtrait< L1GctEtHadCollection >::de_type
static int de_type()
Definition: DEtrait.h:152
DEtrait< CSCCorrelatedLCTDigiCollection_ >::de_type
static int de_type()
Definition: DEtrait.h:228
DecisionWord
std::vector< bool > DecisionWord
typedefs
Definition: L1GlobalTriggerReadoutSetupFwd.h:34
L1GctJetCounts
Definition: L1GctJetCounts.h:16
dedefs::DEnsys
const int DEnsys
Definition: DEtrait.h:38
L1CSCSPStatusDigiCollection_
std::vector< L1CSCSPStatusDigi > L1CSCSPStatusDigiCollection_
Definition: DEtrait.h:98
L1MuDTTrackContainer.h
L1MuGMTCand.h
dedefs::CSCtpl
Definition: DEtrait.h:74
L1GctEtHad
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:17
DEtrait< DecisionWord >::cand_type
bool cand_type
Definition: DEtrait.h:262
L1CaloRegionCollection
std::vector< L1CaloRegion > L1CaloRegionCollection
Definition: L1CaloCollections.h:11
L1GctEmCandCollection
std::vector< L1GctEmCand > L1GctEmCandCollection
Definition: L1GctCollections.h:30
dedefs::CSCtpc
Definition: DEtrait.h:73
L1MuDTChambThDigi
Definition: L1MuDTChambThDigi.h:33
DEtrait< L1CaloRegionCollection >::de_type
static int de_type()
Definition: DEtrait.h:131
EcalTriggerPrimitiveDigi
Definition: EcalTriggerPrimitiveDigi.h:16
DEtrait< CSCALCTDigiCollection_ >::cand_type
CSCALCTDigi cand_type
Definition: DEtrait.h:214
CSCALCTDigi
Definition: CSCALCTDigi.h:17
DEtrait< L1GctEmCandCollection >::de_type
static int de_type()
Definition: DEtrait.h:138
dedefs::GCTjetcnt
Definition: DEtrait.h:67
L1MuRegionalCandCollection
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
Definition: DEtrait.h:94
DEtrait< L1CSCSPStatusDigiCollection_ >::coll_type
L1CSCSPStatusDigiCollection_ coll_type
Definition: DEtrait.h:233
DEtrait< LTCDigiCollection >::de_type
static int de_type()
Definition: DEtrait.h:242
L1MuRegionalCandCollection
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
Definition: RPCRecHitFilter.cc:53
DEtrait< CSCALCTDigiCollection_ >::coll_type
CSCALCTDigiCollection_ coll_type
Definition: DEtrait.h:213
DEtrait< L1GctEtHadCollection >::cand_type
L1GctEtHad cand_type
Definition: DEtrait.h:151
DEtrait< L1GctEtHadCollection >::coll_type
L1GctEtHadCollection coll_type
Definition: DEtrait.h:150
dedefs::LTCi
Definition: DEtrait.h:83
dedefs::GCTetmiss
Definition: DEtrait.h:61
dedefs::GMTcnd
Definition: DEtrait.h:85
CSCALCTDigiCollection.h
DEtrait< LTCDigiCollection >::coll_type
LTCDigiCollection coll_type
Definition: DEtrait.h:240
dedefs::GCThfbit
Definition: DEtrait.h:65
L1GctEtHadCollection
std::vector< L1GctEtHad > L1GctEtHadCollection
Definition: L1GctCollections.h:33
L1GlobalTriggerObjectMapRecord.h
CSCCLCTDigiCollection.h
DEtrait< L1GctHFRingEtSumsCollection >::cand_type
L1GctHFRingEtSums cand_type
Definition: DEtrait.h:175
DEtrait< L1GctEmCandCollection >::coll_type
L1GctEmCandCollection coll_type
Definition: DEtrait.h:136
dedefs::CSCtftrc
Definition: DEtrait.h:78
L1CaloEmCand
Level-1 Region Calorimeter Trigger EM candidate.
Definition: L1CaloEmCand.h:17
dedefs::RCT
Definition: DEtrait.h:40
L1GctHFRingEtSumsCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
Definition: L1GctCollections.h:38
dedefs::CTF
Definition: DEtrait.h:40
L1GlobalTriggerReadoutRecord.h
DEtrait< L1GctHtMissCollection >::cand_type
L1GctHtMiss cand_type
Definition: DEtrait.h:169
DEtrait< L1GctHFBitCountsCollection >::de_type
static int de_type()
Definition: DEtrait.h:182
L1GctHtMissCollection
std::vector< L1GctHtMiss > L1GctHtMissCollection
Definition: L1GctCollections.h:36
DEtrait< CSCALCTDigiCollection_ >::de_type
static int de_type()
Definition: DEtrait.h:215
DEtrait< L1GctEmCandCollection >::cand_type
L1GctEmCand cand_type
Definition: DEtrait.h:137
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19
dedefs::ColList
ColList
Definition: DEtrait.h:48
L1MuDTChambPhDigi
Definition: L1MuDTChambPhDigi.h:31
L1CSCSPStatusDigi
Definition: L1CSCSPStatusDigi.h:8
dedefs::GTdword
Definition: DEtrait.h:87
dedefs::ECALtp
Definition: DEtrait.h:49
DEtrait< L1MuGMTReadoutRecordCollection >::cand_type
L1MuGMTReadoutRecord cand_type
Definition: DEtrait.h:255
L1DataEmulRecord.h
DEtrait< CSCCLCTDigiCollection_ >::coll_type
CSCCLCTDigiCollection_ coll_type
Definition: DEtrait.h:219
dedefs::GCTem
Definition: DEtrait.h:53
dedefs::RPCfor
Definition: DEtrait.h:82