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 
10 
16 
17 using namespace std;
18 
20 public:
21  void analyze(const edm::Event&, const edm::EventSetup&) override;
23 
25  : edm::one::EDAnalyzer<>(), l1GtMenuToken_(esConsumes<L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd>()) {}
26  ~L1MenuViewer(void) override = default;
27 };
28 
30  auto const& l1GtMenu = evSetup.getData(l1GtMenuToken_);
31 
32  cout << "L1TUtmTriggerMenu: " << endl;
33  cout << " name: " << l1GtMenu.getName() << endl;
34  cout << " version: " << l1GtMenu.getVersion() << endl;
35  cout << " date/time: " << l1GtMenu.getDatetime() << endl;
36  cout << " UUID: " << l1GtMenu.getFirmwareUuid() << endl;
37  cout << " Scales: " << l1GtMenu.getScaleSetName() << endl;
38  cout << " modules: " << l1GtMenu.getNmodules() << endl;
39 
40  cout << " Algorithms[" << l1GtMenu.getAlgorithmMap().size() << "]: " << endl;
41  for (const auto& a : l1GtMenu.getAlgorithmMap())
42  cout << " " << a.first << endl;
43 
44  cout << " Conditions[" << l1GtMenu.getConditionMap().size() << "]: " << endl;
45  for (const auto& a : l1GtMenu.getConditionMap())
46  cout << " " << a.first << endl;
47 
48  cout << " Conditions[" << l1GtMenu.getScaleMap().size() << "]: " << endl;
49  for (const auto& a : l1GtMenu.getScaleMap())
50  cout << " " << a.first << endl;
51 }
52 
56 
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
bool getData(T &iHolder) const
Definition: EventSetup.h:122
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:24
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1GtMenuToken_
Definition: L1MenuViewer.cc:22
double a
Definition: hdecay.h:119
tuple cout
Definition: gather_cfg.py:144
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283