CMS 3D CMS Logo

L1TConfigDumper.cc
Go to the documentation of this file.
1 
2 // system include files
3 #include <memory>
4 
5 // user include files
8 
11 
13 
16 
19 
22 
24 //#include "CondFormats/L1TObjects/interface/L1JetEtScale.h"
26 
28 //#include "CondFormats/L1TObjects/interface/L1EmEtScale.h"
30 
32 //#include "CondFormats/L1TObjects/interface/L1HtMissScale.h"
34 
36 //#include "CondFormats/L1TObjects/interface/L1HfRingEtScale.h"
38 
41 
44 
47 
50 
53 
56 
59 
62 
65 
68 
71 
74 
77 
80 
83 
86 
89 
92 
95 
98 
101 
104 
107 
110 
112 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskVetoAlgoTrig.h"
114 
117 
120 
121 #include "CondFormats/DataRecord/interface/L1CaloGeometryRecord.h" //Record spelled out
123 
126 
129 
132 
135 
138 
140 //#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactorsAlgoTrig.h"
142 
144 //#include "CondFormats/L1TObjects/interface/L1GtPrescaleFactorsTechTrig.h"
146 
148 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskAlgoTrig.h"
150 
152 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskTechTrig.h"
154 
156 //#include "CondFormats/L1TObjects/interface/L1GtTriggerMaskVetoTechTrig.h"
158 
159 //#include "CondFormats/DataRecord/interface/NumL1CondRcd.h"
160 //#include "CondFormats/L1TObjects/interface/NumL1Cond.h"
161 
162 
164  public:
165  explicit L1TConfigDumper(const edm::ParameterSet&);
167 
168  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
169 
170 
171  private:
172  virtual void beginJob() override;
173  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
174  virtual void endJob() override;
175 
176  // ----------member data ---------------------------
177 };
178 
179 
181 
182 {
183 
184 }
185 
186 
188 {
189 }
190 
191 void
193 {
194  using namespace edm;
195 
196 
198  iSetup.get< L1TriggerKeyListRcd >().get( A) ;
199 
201  iSetup.get< L1TriggerKeyRcd >().get( B) ;
202 
203  //edm::ESHandle< L1JetEtScale > C;
205  iSetup.get< L1JetEtScaleRcd >().get( C) ;
206 
207  //edm::ESHandle< L1EmEtScale > D;
209  iSetup.get< L1EmEtScaleRcd >().get( D) ;
210 
211  //edm::ESHandle< L1HtMissScale > E;
213  iSetup.get< L1HtMissScaleRcd >().get( E) ;
214 
215  //edm::ESHandle< L1HfRingEtScale > F;
217  iSetup.get< L1HfRingEtScaleRcd >().get( F) ;
218 
220  iSetup.get< L1MuTriggerScalesRcd >().get( G) ;
221 
223  iSetup.get< L1MuTriggerPtScaleRcd >().get( H) ;
224 
226  iSetup.get< L1MuGMTScalesRcd >().get( I) ;
227 
229  iSetup.get< L1MuCSCTFConfigurationRcd >().get( J) ;
230 
232  iSetup.get< L1MuCSCTFAlignmentRcd >().get( K) ;
233 
235  iSetup.get< L1MuCSCPtLutRcd >().get( L) ;
236 
238  iSetup.get< L1MuDTEtaPatternLutRcd >().get( M) ;
239 
241  iSetup.get< L1MuDTExtLutRcd >().get( N) ;
242 
244  iSetup.get< L1MuDTPhiLutRcd >().get( O) ;
245 
247  iSetup.get< L1MuDTPtaLutRcd >().get( P) ;
248 
250  iSetup.get< L1MuDTQualPatternLutRcd >().get( Q) ;
251 
253  iSetup.get< L1MuDTTFParametersRcd >().get( R) ;
254 
256  iSetup.get< L1RPCConfigRcd >().get( S) ;
257 
259  iSetup.get< L1RPCConeDefinitionRcd >().get( T) ;
260 
262  iSetup.get< L1RPCHsbConfigRcd >().get( U) ;
263 
265  iSetup.get< L1RPCBxOrConfigRcd >().get( V) ;
266 
268  iSetup.get< L1MuGMTParametersRcd >().get( W) ;
269 
271  iSetup.get< L1RCTParametersRcd >().get( X) ;
272 
274  iSetup.get< L1CaloEcalScaleRcd >().get( Y) ;
275 
277  iSetup.get< L1CaloHcalScaleRcd >().get( Z) ;
278 
280  iSetup.get< L1GctJetFinderParamsRcd >().get( AA) ;
281 
283  iSetup.get< L1GtBoardMapsRcd >().get( BB) ;
284 
286  iSetup.get< L1GtParametersRcd >().get( CC) ;
287 
289  iSetup.get< L1GtStableParametersRcd >().get( DD) ;
290 
291  //edm::ESHandle< L1GtTriggerMaskVetoAlgoTrig > EE;
293  iSetup.get< L1GtTriggerMaskVetoAlgoTrigRcd >().get( EE) ;
294 
296  iSetup.get< L1GtTriggerMenuRcd >().get( FF) ;
297 
299  iSetup.get< L1GtPsbSetupRcd >().get( GG) ;
300 
302  iSetup.get< L1CaloGeometryRecord >().get( HH) ; // Record spelled out
303 
305  iSetup.get< L1MuDTTFMasksRcd >().get( II) ;
306 
308  iSetup.get< L1MuGMTChannelMaskRcd >().get( JJ) ;
309 
311  iSetup.get< L1RCTChannelMaskRcd >().get( KK) ;
312 
314  iSetup.get< L1RCTNoisyChannelMaskRcd >().get( LL) ;
315 
317  iSetup.get< L1GctChannelMaskRcd >().get( MM) ;
318 
319  //edm::ESHandle< L1GtPrescaleFactorsAlgoTrig > NN;
321  iSetup.get< L1GtPrescaleFactorsAlgoTrigRcd >().get( NN) ;
322 
323  //edm::ESHandle< L1GtPrescaleFactorsTechTrig > OO;
325  iSetup.get< L1GtPrescaleFactorsTechTrigRcd >().get( OO) ;
326 
327  //edm::ESHandle< L1GtTriggerMaskAlgoTrig > PP;
329  iSetup.get< L1GtTriggerMaskAlgoTrigRcd >().get( PP) ;
330 
331  //edm::ESHandle< L1GtTriggerMaskTechTrig > QQ;
333  iSetup.get< L1GtTriggerMaskTechTrigRcd >().get( QQ) ;
334 
335  //edm::ESHandle< L1GtTriggerMaskVetoTechTrig > RR;
337  iSetup.get< L1GtTriggerMaskVetoTechTrigRcd >().get( RR) ;
338 
339  //edm::ESHandle< NumL1Cond > SS;
340  //iSetup.get< NumL1CondRcd >().get( SS) ;
341 
342  // config driven printout of payloads:
343  //rctParam->print(std::cout);
344 
345  //AA->print(std::cout); // no member named 'print'
346  CC->print(std::cout);
347  GG->print(std::cout);
348  int numberConditionChips = 1;
349  FF->print(std::cout, numberConditionChips);
350  J->print(std::cout);
351  II->print();
352  //W->print(std::cout); // no member named 'print'
353  KK->print(std::cout);
354  X->print(std::cout);
355  //U->print(std::cout); // no member named 'print'
356 
357 }
358 
359 void
361 {
362 }
363 
364 void
366 {
367 }
368 
369 // ------------ method fills 'descriptions' with the allowed parameters for the module ------------
370 void
372  //The following says we do not know what parameters are allowed so do no validation
373  // Please change this to state exactly what you do use, even if it is no parameters
375  desc.setUnknown();
376  descriptions.addDefault(desc);
377 }
378 
379 //define this as a plug-in
void print(std::ostream &s) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual void beginJob() override
#define X(str)
Definition: MuonsGrabber.cc:48
void print(std::ostream &) const
print all the L1 GT parameters
L1TConfigDumper(const edm::ParameterSet &)
void print(std::ostream &s) const
void print() const
void print(std::ostream &) const
print all the L1 CSCTF Configuration Parameters
int iEvent
Definition: GenABIO.cc:230
void addDefault(ParameterSetDescription const &psetDescription)
void print(std::ostream &, int &) const
const std::complex< double > I
Definition: I.h:8
static const std::string B
void print(std::ostream &) const
Definition: L1GtPsbSetup.cc:50
#define N
Definition: blowfish.cc:9
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:151
const T & get() const
Definition: EventSetup.h:55
std::pair< OmniClusterRef, TrackingParticleRef > P
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99
virtual void endJob() override
HLT enums.
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
long double T