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:
45  }
47  }
48  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  if (auto maskRecord = evSetup.tryToGet<L1RCTNoisyChannelMaskRcd>()) {
62  edm::ESHandle<L1RCTNoisyChannelMask> rctNoisyChanMask;
63  maskRecord->get(rctNoisyChanMask);
64 
65  rctNoisyChanMask->print(std::cout);
66  } else {
67  std::cout << "\nRecord \"" << "L1RCTNoisyChannelMaskRcd"
68  << "\" does not exist.\n" << std::endl;
69  }
70 
71 }
72 
std::optional< T > tryToGet() const
Definition: EventSetup.h:87
L1RCTChannelMaskTester(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void print(std::ostream &s) const
int iEvent
Definition: GenABIO.cc:230
void print(std::ostream &s) const
void analyze(const edm::Event &, const edm::EventSetup &) override
T get() const
Definition: EventSetup.h:68