CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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:
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 
L1RCTNoisyChannelMask.h
L1RCTChannelMaskRcd.h
MessageLogger.h
L1RCTNoisyChannelMaskRcd
Definition: L1RCTNoisyChannelMaskRcd.h:12
ESHandle.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EDAnalyzer.h
L1RCTChannelMask.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1RCTNoisyChannelMaskRcd.h
MakerMacros.h
L1RCTChannelMaskTester::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1RCTChannelMaskTester.cc:49
edm::EventSetup::tryToGet
std::optional< T > tryToGet() const
Definition: EventSetup.h:101
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
L1RCTChannelMask::print
void print(std::ostream &s) const
Definition: L1RCTChannelMask.h:11
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
edm::ESHandle
Definition: DTSurvey.h:22
L1RCTChannelMaskTester::L1RCTChannelMaskTester
L1RCTChannelMaskTester(const edm::ParameterSet &)
Definition: L1RCTChannelMaskTester.cc:44
MessageDrop.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
L1RCTChannelMaskRcd
Definition: L1RCTChannelMaskRcd.h:12
ModuleDef.h
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
L1RCTChannelMaskTester::~L1RCTChannelMaskTester
~L1RCTChannelMaskTester() override
Definition: L1RCTChannelMaskTester.cc:45
EventSetup.h
ParameterSet.h
L1RCTChannelMaskTester
Definition: L1RCTChannelMaskTester.cc:42
L1RCTNoisyChannelMask::print
void print(std::ostream &s) const
Definition: L1RCTNoisyChannelMask.h:16
edm::Event
Definition: Event.h:73