CMS 3D CMS Logo

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 
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
Definition: EventSetup.h:119
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
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
L1MenuViewer(const edm::ParameterSet &)
Definition: L1MenuViewer.cc:24
const edm::ESGetToken< L1TUtmTriggerMenu, L1TUtmTriggerMenuRcd > l1GtMenuToken_
Definition: L1MenuViewer.cc:22
HLT enums.
double a
Definition: hdecay.h:121