CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1RCTChannelMaskTester.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: RCTConfigTester
4 // Class: RCTConfigTester
5 //
13 //
14 // Original Author: Sridhara Dasu
15 // Created: Mon Jul 16 23:48:35 CEST 2007
16 //
17 //
18 #include <iostream>
19 // user include files
23 
26 
31 
34 
37 
38 //
39 // class declaration
40 //
41 
43 public:
45  }
47  }
48  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
49 
50 };
51 
53  const edm::EventSetup& evSetup) {
54 
55  //
57  evSetup.get<L1RCTChannelMaskRcd>().get(rctChanMask);
58 
59  rctChanMask->print(std::cout);
60 
61  //
64  "L1RCTNoisyChannelMaskRcd"));
65 
66  if (evSetup.find(recordKey) == 0) {
67  //record not found
68  std::cout << "\nRecord \"" << "L1RCTNoisyChannelMaskRcd"
69  << "\" does not exist.\n" << std::endl;
70  } else {
71 
72  edm::ESHandle<L1RCTNoisyChannelMask> rctNoisyChanMask;
73  evSetup.get<L1RCTNoisyChannelMaskRcd>().get(rctNoisyChanMask);
74 
75  rctNoisyChanMask->print(std::cout);
76 
77  }
78 
79 }
80 
82 
L1RCTChannelMaskTester(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetup.cc:91
int iEvent
Definition: GenABIO.cc:230
const T & get() const
Definition: EventSetup.h:56
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
tuple cout
Definition: gather_cfg.py:121
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:125