CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
45  const std::string SystLabel[DEnsys] = {
46  "ETP", "HTP", "RCT", "GCT", "DTP", "DTF",
47  "CTP", "CTF", "RPC", "LTC", "GMT", "GLT"
48  };
49 
50  const std::string SystLabelExt[DEnsys] = {
51  "ECAL", "HCAL", "RCT", "GCT", "DTTPG", "DTTF",
52  "CSCTPG", "CSCTF", "RPC", "LTC", "GMT", "GT"
53  };
54 
55  enum ColList {
63  LTCi,
66  };
67 
68 }
69 
70 typedef std::vector<L1MuDTChambPhDigi> L1MuDTChambPhDigiCollection;
71 typedef std::vector<L1MuDTChambThDigi> L1MuDTChambThDigiCollection;
72 typedef std::vector<L1MuRegionalCand> L1MuRegionalCandCollection;
73 typedef std::vector<CSCALCTDigi> CSCALCTDigiCollection_;
74 typedef std::vector<CSCCLCTDigi> CSCCLCTDigiCollection_;
75 typedef std::vector<CSCCorrelatedLCTDigi> CSCCorrelatedLCTDigiCollection_;
76 typedef std::vector<L1CSCSPStatusDigi> L1CSCSPStatusDigiCollection_;
77 typedef std::vector<L1MuGMTCand> L1MuGMTCandCollection;
78 typedef std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutRecordCollection;
79 typedef std::vector<L1DataEmulDigi> L1DEDigiCollection;
80 
81 template <typename T>
82 struct DEtrait {};
83 
84 template<>
88  static inline int de_type() {return dedefs::ECALtp;}
89 };
90 
91 template<>
95  static inline int de_type() {return dedefs::HCALtp;}
96 };
97 
98 template<>
102  static inline int de_type() {return dedefs::RCTem;}
103 };
104 
105 template<>
109  static inline int de_type() {return dedefs::RCTrgn;}
110 };
111 
112 template<>
116  static inline int de_type() {return dedefs::GCTem;}
117 };
118 
119 template<>
123  static inline int de_type() {return dedefs::GCTjet;}
124 };
125 
126 template<>
130  static inline int de_type() {return dedefs::GCTethad;}
131 };
132 template<>
136  static inline int de_type() {return dedefs::GCTetmiss;}
137 };
138 template<>
142  static inline int de_type() {return dedefs::GCTettot;}
143 };
144 template<>
148  static inline int de_type() {return dedefs::GCThtmiss;}
149 };
150 template<>
154  static inline int de_type() {return dedefs::GCThfring;}
155 };
156 template<>
160  static inline int de_type() {return dedefs::GCThfbit;}
161 };
162 template<>
166  static inline int de_type() {return dedefs::GCTjetcnt;}
167 };
168 
169 template<>
173  static inline int de_type() {return dedefs::DTtpPh;}
174 };
175 template<>
179  static inline int de_type() {return dedefs::DTtpTh;}
180 };
181 
182 template<>
186  static inline int de_type() {return dedefs::MUrtf;}
187 };
188 
189 template<>
193  static inline int de_type() {return dedefs::CSCtpa;}
194 };
195 template<>
199  static inline int de_type() {return dedefs::CSCtpc;}
200 };
201 
202 template<>
206  static inline int de_type() {return dedefs::CSCtpl;}
207 };
208 
209 template<>
213  static inline int de_type() {return dedefs::CSCsta;}
214 };
215 
216 template<>
220  static inline int de_type() {return dedefs::LTCi;}
221 };
222 
223 template<>
227  static inline int de_type() {return dedefs::GMTcnd;}
228 };
229 
230 template<>
234  static inline int de_type() {return dedefs::GMTrdt;}
235 };
236 
237 template<>
240  typedef bool cand_type;
241  static inline int de_type() {return dedefs::GTdword;}
242 };
243 
244 #endif
L1MuDTChambPhDigiCollection coll_type
Definition: DEtrait.h:171
CSCCLCTDigiCollection_ coll_type
Definition: DEtrait.h:197
L1GctEtHadCollection coll_type
Definition: DEtrait.h:128
std::vector< CSCALCTDigi > CSCALCTDigiCollection_
Definition: DEtrait.h:73
L1GctJetCountsCollection coll_type
Definition: DEtrait.h:164
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:78
std::vector< L1GctEtHad > L1GctEtHadCollection
L1CaloRegionCollection coll_type
Definition: DEtrait.h:107
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:18
std::vector< L1GctJetCounts > L1GctJetCountsCollection
L1GctEtMissCollection coll_type
Definition: DEtrait.h:134
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:94
std::vector< L1DataEmulDigi > L1DEDigiCollection
Definition: DEtrait.h:79
L1GctEtTotalCollection coll_type
Definition: DEtrait.h:140
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:22
L1GctHFBitCountsCollection coll_type
Definition: DEtrait.h:158
L1MuGMTReadoutRecordCollection coll_type
Definition: DEtrait.h:232
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
L1GctHFRingEtSumsCollection coll_type
Definition: DEtrait.h:152
L1MuGMTCandCollection coll_type
Definition: DEtrait.h:225
L1 GCT HF ring Et sums.
L1GctHtMissCollection coll_type
Definition: DEtrait.h:146
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:74
std::vector< L1CSCSPStatusDigi > L1CSCSPStatusDigiCollection_
Definition: DEtrait.h:76
EcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:86
L1GctJetCandCollection coll_type
Definition: DEtrait.h:121
L1GctEmCandCollection coll_type
Definition: DEtrait.h:114
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
Definition: DEtrait.h:71
Persistable copy of total Ht measured at Level-1.
Definition: L1GctEtHad.h:18
std::vector< LTCDigi > LTCDigiCollection
Definition: LTCDigi.h:107
std::vector< L1MuRegionalCand > L1MuRegionalCandCollection
static int de_type()
Definition: DEtrait.h:241
L1 GCT HF ring Et sums.
std::vector< L1GctHtMiss > L1GctHtMissCollection
L1CSCSPStatusDigiCollection_ coll_type
Definition: DEtrait.h:211
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
Definition: DEtrait.h:70
std::vector< CSCCorrelatedLCTDigi > CSCCorrelatedLCTDigiCollection_
Definition: DEtrait.h:75
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
CSCCorrelatedLCTDigiCollection_ coll_type
Definition: DEtrait.h:204
LTCDigiCollection coll_type
Definition: DEtrait.h:218
ColList
Definition: DEtrait.h:55
SysList
Definition: DEtrait.h:40
HcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:93
L1MuDTChambThDigiCollection coll_type
Definition: DEtrait.h:177
const std::string SystLabel[DEnsys]
Definition: DEtrait.h:45
CSCALCTDigiCollection_ coll_type
Definition: DEtrait.h:191
EcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:87
L1CaloEmCollection coll_type
Definition: DEtrait.h:100
A calorimeter trigger region (sum of 4x4 trigger towers)
Definition: L1CaloRegion.h:22
L1MuRegionalCandCollection coll_type
Definition: DEtrait.h:184
std::vector< L1CaloRegion > L1CaloRegionCollection
DecisionWord coll_type
Definition: DEtrait.h:239
std::vector< L1MuGMTCand > L1MuGMTCandCollection
Definition: DEtrait.h:77
std::vector< L1GctEmCand > L1GctEmCandCollection