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  void analyze(const edm::Event&, const edm::EventSetup&) override;
46 
47 private:
50 };
51 
53  //
54  evSetup.getData(maskToken_).print(std::cout);
55 
56  if (auto maskRecord = evSetup.tryToGet<L1RCTNoisyChannelMaskRcd>()) {
57  maskRecord->get(noisyToken_).print(std::cout);
58  } else {
59  std::cout << "\nRecord \""
60  << "L1RCTNoisyChannelMaskRcd"
61  << "\" does not exist.\n"
62  << std::endl;
63  }
64 }
65 
L1RCTChannelMaskTester(const edm::ParameterSet &)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
edm::ESGetToken< L1RCTNoisyChannelMask, L1RCTNoisyChannelMaskRcd > noisyToken_
std::optional< T > tryToGet() const
Definition: EventSetup.h:100
int iEvent
Definition: GenABIO.cc:224
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< L1RCTChannelMask, L1RCTChannelMaskRcd > maskToken_