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 
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 {
67  LTCi,
70  };
71 }
72 
73 typedef std::vector<L1MuDTChambPhDigi> L1MuDTChambPhDigiCollection;
74 typedef std::vector<L1MuDTChambThDigi> L1MuDTChambThDigiCollection;
75 typedef std::vector<L1MuRegionalCand> L1MuRegionalCandCollection;
76 typedef std::vector<CSCALCTDigi> CSCALCTDigiCollection_;
77 typedef std::vector<CSCCLCTDigi> CSCCLCTDigiCollection_;
78 typedef std::vector<CSCCorrelatedLCTDigi> CSCCorrelatedLCTDigiCollection_;
79 typedef std::vector<L1CSCSPStatusDigi> L1CSCSPStatusDigiCollection_;
80 typedef std::vector<L1MuGMTCand> L1MuGMTCandCollection;
81 typedef std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutRecordCollection;
82 typedef std::vector<L1DataEmulDigi> L1DEDigiCollection;
83 
84 template <typename T>
85 struct DEtrait {};
86 
87 template<>
91  static inline int de_type() {return dedefs::ECALtp;}
92 };
93 
94 template<>
98  static inline int de_type() {return dedefs::HCALtp;}
99 };
100 
101 template<>
105  static inline int de_type() {return dedefs::RCTem;}
106 };
107 
108 template<>
112  static inline int de_type() {return dedefs::RCTrgn;}
113 };
114 
115 template<>
119  static inline int de_type() {return dedefs::GCTem;}
120 };
121 
122 template<>
126  static inline int de_type() {return dedefs::GCTjet;}
127 };
128 
129 template<>
133  static inline int de_type() {return dedefs::GCTethad;}
134 };
135 template<>
139  static inline int de_type() {return dedefs::GCTetmiss;}
140 };
141 template<>
145  static inline int de_type() {return dedefs::GCTettot;}
146 };
147 template<>
151  static inline int de_type() {return dedefs::GCThtmiss;}
152 };
153 template<>
157  static inline int de_type() {return dedefs::GCThfring;}
158 };
159 template<>
163  static inline int de_type() {return dedefs::GCThfbit;}
164 };
165 template<>
169  static inline int de_type() {return dedefs::GCTjetcnt;}
170 };
171 template<>
175  static inline int de_type() {return dedefs::DTtpPh;}
176 };
177 template<>
181  static inline int de_type() {return dedefs::DTtpTh;}
182 };
183 
184 template<>
188  static inline int de_type() {return dedefs::MUrtf;}
189 };
190 
191 template<>
195  static inline int de_type() {return dedefs::CSCtpa;}
196 };
197 template<>
201  static inline int de_type() {return dedefs::CSCtpc;}
202 };
203 
204 template<>
208  static inline int de_type() {return dedefs::CSCtpl;}
209 };
210 
211 template<>
215  static inline int de_type() {return dedefs::CSCsta;}
216 };
217 
218 template<>
222  static inline int de_type() {return dedefs::LTCi;}
223 };
224 
225 template<>
229  static inline int de_type() {return dedefs::GMTcnd;}
230 };
231 
232 template<>
236  static inline int de_type() {return dedefs::GMTrdt;}
237 };
238 
239 template<>
242  typedef bool cand_type;
243  static inline int de_type() {return dedefs::GTdword;}
244 };
245 
246 #endif
L1MuDTChambPhDigiCollection coll_type
Definition: DEtrait.h:173
CSCCLCTDigiCollection_ coll_type
Definition: DEtrait.h:199
L1GctEtHadCollection coll_type
Definition: DEtrait.h:131
std::vector< CSCALCTDigi > CSCALCTDigiCollection_
Definition: DEtrait.h:76
L1GctJetCountsCollection coll_type
Definition: DEtrait.h:167
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:81
std::vector< L1GctEtHad > L1GctEtHadCollection
L1CaloRegionCollection coll_type
Definition: DEtrait.h:110
Level-1 Trigger jet candidate.
Definition: L1GctJetCand.h:18
std::vector< L1GctJetCounts > L1GctJetCountsCollection
L1GctEtMissCollection coll_type
Definition: DEtrait.h:137
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:97
std::vector< L1DataEmulDigi > L1DEDigiCollection
Definition: DEtrait.h:82
L1GctEtTotalCollection coll_type
Definition: DEtrait.h:143
Level-1 Trigger EM candidate at output of GCT.
Definition: L1GctEmCand.h:22
L1GctHFBitCountsCollection coll_type
Definition: DEtrait.h:161
L1MuGMTReadoutRecordCollection coll_type
Definition: DEtrait.h:234
std::vector< L1GctEtTotal > L1GctEtTotalCollection
std::vector< L1GctHFBitCounts > L1GctHFBitCountsCollection
std::vector< L1GctJetCand > L1GctJetCandCollection
L1GctHFRingEtSumsCollection coll_type
Definition: DEtrait.h:155
L1MuGMTCandCollection coll_type
Definition: DEtrait.h:227
L1 GCT HF ring Et sums.
L1GctHtMissCollection coll_type
Definition: DEtrait.h:149
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:77
std::vector< L1CSCSPStatusDigi > L1CSCSPStatusDigiCollection_
Definition: DEtrait.h:79
EcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:89
L1GctJetCandCollection coll_type
Definition: DEtrait.h:124
L1GctEmCandCollection coll_type
Definition: DEtrait.h:117
std::vector< L1MuDTChambThDigi > L1MuDTChambThDigiCollection
Definition: DEtrait.h:74
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:243
L1 GCT HF ring Et sums.
std::vector< L1GctHtMiss > L1GctHtMissCollection
L1CSCSPStatusDigiCollection_ coll_type
Definition: DEtrait.h:213
std::vector< L1MuDTChambPhDigi > L1MuDTChambPhDigiCollection
Definition: DEtrait.h:73
std::vector< CSCCorrelatedLCTDigi > CSCCorrelatedLCTDigiCollection_
Definition: DEtrait.h:78
Persistable copy of missing Et measured at Level-1.
Definition: L1GctHtMiss.h:16
CSCCorrelatedLCTDigiCollection_ coll_type
Definition: DEtrait.h:206
LTCDigiCollection coll_type
Definition: DEtrait.h:220
ColList
Definition: DEtrait.h:55
SysList
Definition: DEtrait.h:40
HcalTrigPrimDigiCollection coll_type
Definition: DEtrait.h:96
L1MuDTChambThDigiCollection coll_type
Definition: DEtrait.h:179
const std::string SystLabel[DEnsys]
Definition: DEtrait.h:45
CSCALCTDigiCollection_ coll_type
Definition: DEtrait.h:193
EcalTriggerPrimitiveDigi cand_type
Definition: DEtrait.h:90
L1CaloEmCollection coll_type
Definition: DEtrait.h:103
A calorimeter trigger region (sum of 4x4 trigger towers)
Definition: L1CaloRegion.h:22
L1MuRegionalCandCollection coll_type
Definition: DEtrait.h:186
std::vector< L1CaloRegion > L1CaloRegionCollection
DecisionWord coll_type
Definition: DEtrait.h:241
std::vector< L1MuGMTCand > L1MuGMTCandCollection
Definition: DEtrait.h:80
std::vector< L1GctEmCand > L1GctEmCandCollection