CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1MenuViewer.cc:29
int iEvent
Definition: GenABIO.cc:224
L1MenuViewer(const edm::ParameterSet &)
Definition: L1MenuViewer.cc:25
~L1MenuViewer(void) override
Definition: L1MenuViewer.cc:26
T const * product() const
Definition: ESHandle.h:86
double a
Definition: hdecay.h:119
T get() const
Definition: EventSetup.h:88
tuple cout
Definition: gather_cfg.py:144