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 {
41  ETP, HTP, RCT, GCT, DTP, DTF,
43  };
44 
46  "ETP", "HTP", "RCT", "GCT", "DTP", "DTF",
47  "CTP", "CTF", "RPC", "LTC", "GMT", "GLT"
48  };
49 
51  "ECAL", "HCAL", "RCT", "GCT", "DTTPG", "DTTF",
52  "CSCTPG", "CSCTF", "RPC", "LTC", "GMT", "GT"
53  };
54 
55  enum ColList {
64  LTCi,
67  };
68 
69 }
70 
71 typedef std::vector<L1MuDTChambPhDigi> L1MuDTChambPhDigiCollection;
72 typedef std::vector<L1MuDTChambThDigi> L1MuDTChambThDigiCollection;
73 typedef std::vector<L1MuRegionalCand> L1MuRegionalCandCollection;
74 typedef std::vector<CSCALCTDigi> CSCALCTDigiCollection_;
75 typedef std::vector<CSCCLCTDigi> CSCCLCTDigiCollection_;
76 typedef std::vector<CSCCorrelatedLCTDigi> CSCCorrelatedLCTDigiCollection_;
77 typedef std::vector<L1CSCSPStatusDigi> L1CSCSPStatusDigiCollection_;
78 typedef std::vector<L1MuGMTCand> L1MuGMTCandCollection;
79 typedef std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutRecordCollection;
80 typedef std::vector<L1DataEmulDigi> L1DEDigiCollection;
81 
82 template <typename T>
83 struct DEtrait {};
84 
85 template<>
89  static inline int de_type() {return dedefs::ECALtp;}
90 };
91 
92 template<>
96  static inline int de_type() {return dedefs::HCALtp;}
97 };
98 
99 template<>
103  static inline int de_type() {return dedefs::RCTem;}
104 };
105 
106 template<>
110  static inline int de_type() {return dedefs::RCTrgn;}
111 };
112 
113 template<>
117  static inline int de_type() {return dedefs::GCTem;}
118 };
119 
120 template<>
124  static inline int de_type() {return dedefs::GCTjet;}
125 };
126 
127 template<>
131  static inline int de_type() {return dedefs::GCTethad;}
132 };
133 template<>
137  static inline int de_type() {return dedefs::GCTetmiss;}
138 };
139 template<>
143  static inline int de_type() {return dedefs::GCTettot;}
144 };
145 template<>
149  static inline int de_type() {return dedefs::GCThtmiss;}
150 };
151 template<>
155  static inline int de_type() {return dedefs::GCThfring;}
156 };
157 template<>
161  static inline int de_type() {return dedefs::GCThfbit;}
162 };
163 template<>
167  static inline int de_type() {return dedefs::GCTjetcnt;}
168 };
169 
170 template<>
174  static inline int de_type() {return dedefs::DTtpPh;}
175 };
176 template<>
180  static inline int de_type() {return dedefs::DTtpTh;}
181 };
182 
183 template<>
187  static inline int de_type() {return dedefs::MUrtf;}
188 };
189 
190 template<>
194  static inline int de_type() {return dedefs::CSCtpa;}
195 };
196 template<>
200  static inline int de_type() {return dedefs::CSCtpc;}
201 };
202 
203 template<>
207  static inline int de_type() {return dedefs::CSCtpl;}
208 };
209 
210 template<>
214  static inline int de_type() {return dedefs::CSCsta;}
215 };
216 
217 template<>
221  static inline int de_type() {return dedefs::LTCi;}
222 };
223 
224 template<>
228  static inline int de_type() {return dedefs::GMTcnd;}
229 };
230 
231 template<>
235  static inline int de_type() {return dedefs::GMTrdt;}
236 };
237 
238 template<>
241  typedef bool cand_type;
242  static inline int de_type() {return dedefs::GTdword;}
243 };
244 
245 #endif
L1MuDTChambPhDigiCollection coll_type
Definition: DEtrait.h:172
CSCCLCTDigiCollection_ coll_type
Definition: DEtrait.h:198
L1GctEtHadCollection coll_type
Definition: DEtrait.h:129
std::vector< CSCALCTDigi > CSCALCTDigiCollection_
Definition: DEtrait.h:74
L1GctJetCountsCollection coll_type
Definition: DEtrait.h:165
std::vector< L1CaloEmCand > L1CaloEmCollection
const std::string SystLabelExt[DEnsys]
Definition: DEtrait.h:50
const int DEnsys
Definition: DEtrait.h:38
std::vector< L1GctEtMiss > L1GctEtMissCollection
std::vector< L1GctHFRingEtSums > L1GctHFRingEtSumsCollection
std::vector< L1MuGMTReadoutRecord > L1MuGMTReadoutRecordCollection
Definition: DEtrait.h:79
std::vector< L1GctEtHad > L1GctEtHadCollection
L1CaloRegionCollection coll_type
Definition: DEtrait.h:108
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:18
std::vector< L1GctJetCounts > L1GctJetCountsCollection
L1GctEtMissCollection coll_type
Definition: DEtrait.h:135
Level-1 Region Calorimeter Trigger EM candidate.
Definition: L1CaloEmCand.h:18
Persistable copy of missing Et measured at Level-1.
Definition: L1GctEtMiss.h:18
HcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:95
std::vector< L1DataEmulDigi > L1DEDigiCollection
Definition: DEtrait.h:80
L1GctEtTotalCollection coll_type
Definition: DEtrait.h:141
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:22
L1GctHFBitCountsCollection coll_type
Definition: DEtrait.h:159
L1MuGMTReadoutRecordCollection coll_type
Definition: DEtrait.h:233
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
L1GctHFRingEtSumsCollection coll_type
Definition: DEtrait.h:153
L1MuGMTCandCollection coll_type
Definition: DEtrait.h:226
L1 GCT HF ring Et sums.
L1GctHtMissCollection coll_type
Definition: DEtrait.h:147
std::vector< bool > DecisionWord
typedefs
Persistable copy of total Et measured at Level-1.
Definition: L1GctEtTotal.h:18
std::vector< CSCCLCTDigi > CSCCLCTDigiCollection_
Definition: DEtrait.h:75
std::vector< L1CSCSPStatusDigi > L1CSCSPStatusDigiCollection_
Definition: DEtrait.h:77
EcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:87
L1GctJetCandCollection coll_type
Definition: DEtrait.h:122
L1GctEmCandCollection coll_type
Definition: DEtrait.h:115
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
Definition: DEtrait.h:72
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:18
std::vector< LTCDigi > LTCDigiCollection
Definition: LTCDigi.h:106
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
static int de_type()
Definition: DEtrait.h:242
L1 GCT HF ring Et sums.
std::vector< L1GctHtMiss > L1GctHtMissCollection
L1CSCSPStatusDigiCollection_ coll_type
Definition: DEtrait.h:212
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
Definition: DEtrait.h:71
std::vector< CSCCorrelatedLCTDigi > CSCCorrelatedLCTDigiCollection_
Definition: DEtrait.h:76
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
CSCCorrelatedLCTDigiCollection_ coll_type
Definition: DEtrait.h:205
LTCDigiCollection coll_type
Definition: DEtrait.h:219
ColList
Definition: DEtrait.h:55
SysList
Definition: DEtrait.h:40
HcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:94
L1MuDTChambThDigiCollection coll_type
Definition: DEtrait.h:178
const std::string SystLabel[DEnsys]
Definition: DEtrait.h:45
CSCALCTDigiCollection_ coll_type
Definition: DEtrait.h:192
Definition: DEtrait.h:36
EcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:88
L1CaloEmCollection coll_type
Definition: DEtrait.h:101
A calorimeter trigger region (sum of 4x4 trigger towers)
Definition: L1CaloRegion.h:22
L1MuRegionalCandCollection coll_type
Definition: DEtrait.h:185
std::vector< L1CaloRegion > L1CaloRegionCollection
DecisionWord coll_type
Definition: DEtrait.h:240
std::vector< L1MuGMTCand > L1MuGMTCandCollection
Definition: DEtrait.h:78
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
Definition: DEtrait.h:73
std::vector< L1GctEmCand > L1GctEmCandCollection