CMS 3D CMS Logo

L1MenuViewer.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
17 
18 #include <iostream>
19 using namespace std;
20 
21 class L1MenuViewer : public edm::EDAnalyzer {
22 public:
23  void analyze(const edm::Event&, const edm::EventSetup&) override;
24 
25  explicit L1MenuViewer(const edm::ParameterSet&) : edm::EDAnalyzer() {}
26  ~L1MenuViewer(void) override {}
27 };
28 
31  evSetup.get<L1TUtmTriggerMenuRcd>().get(handle1);
32  std::shared_ptr<L1TUtmTriggerMenu> ptr1(new L1TUtmTriggerMenu(*(handle1.product())));
33 
34  cout << "L1TUtmTriggerMenu: " << endl;
35  cout << " name: " << ptr1->getName() << endl;
36  cout << " version: " << ptr1->getVersion() << endl;
37  cout << " date/time: " << ptr1->getDatetime() << endl;
38  cout << " UUID: " << ptr1->getFirmwareUuid() << endl;
39  cout << " Scales: " << ptr1->getScaleSetName() << endl;
40  cout << " modules: " << ptr1->getNmodules() << endl;
41 
42  cout << " Algorithms[" << ptr1->getAlgorithmMap().size() << "]: " << endl;
43  for (const auto& a : ptr1->getAlgorithmMap())
44  cout << " " << a.first << endl;
45 
46  cout << " Conditions[" << ptr1->getConditionMap().size() << "]: " << endl;
47  for (const auto& a : ptr1->getConditionMap())
48  cout << " " << a.first << endl;
49 
50  cout << " Conditions[" << ptr1->getScaleMap().size() << "]: " << endl;
51  for (const auto& a : ptr1->getScaleMap())
52  cout << " " << a.first << endl;
53 }
54 
58 
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
L1MenuViewer
Definition: L1MenuViewer.cc:21
ESHandle.h
L1TUtmTriggerMenuRcd
Definition: L1TUtmTriggerMenuRcd.h:11
edm
HLT enums.
Definition: AlignableModifier.h:19
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EDAnalyzer.h
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
L1TUtmTriggerMenu
Definition: L1TUtmTriggerMenu.h:25
MakerMacros.h
PoolDBOutputService.h
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
Service.h
edm::ESHandle
Definition: DTSurvey.h:22
L1TUtmTriggerMenu.h
L1TUtmTriggerMenuRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
Event.h
ModuleDef.h
iEvent
int iEvent
Definition: GenABIO.cc:224
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EventSetup
Definition: EventSetup.h:58
get
#define get
ModuleFactory.h
std
Definition: JetResolutionObject.h:76
L1MenuViewer::L1MenuViewer
L1MenuViewer(const edm::ParameterSet &)
Definition: L1MenuViewer.cc:25
L1MenuViewer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1MenuViewer.cc:29
L1MenuViewer::~L1MenuViewer
~L1MenuViewer(void) override
Definition: L1MenuViewer.cc:26
EventSetup.h
ParameterSet.h
edm::Event
Definition: Event.h:73
Session.h