CMS 3D CMS Logo

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:
46  void analyze(const edm::Event&, const edm::EventSetup&) override;
47 };
48 
50  //
52  evSetup.get<L1RCTChannelMaskRcd>().get(rctChanMask);
53 
54  rctChanMask->print(std::cout);
55 
56  if (auto maskRecord = evSetup.tryToGet<L1RCTNoisyChannelMaskRcd>()) {
57  edm::ESHandle<L1RCTNoisyChannelMask> rctNoisyChanMask;
58  maskRecord->get(rctNoisyChanMask);
59 
60  rctNoisyChanMask->print(std::cout);
61  } else {
62  std::cout << "\nRecord \""
63  << "L1RCTNoisyChannelMaskRcd"
64  << "\" does not exist.\n"
65  << std::endl;
66  }
67 }
68 
L1RCTChannelMaskTester(const edm::ParameterSet &)
void print(std::ostream &s) const
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void print(std::ostream &s) const
std::optional< T > tryToGet() const
Definition: EventSetup.h:103
int iEvent
Definition: GenABIO.cc:224
T get() const
Definition: EventSetup.h:82
void analyze(const edm::Event &, const edm::EventSetup &) override