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 
30 
32  evSetup.get<L1TUtmTriggerMenuRcd>().get( handle1 ) ;
33  boost::shared_ptr<L1TUtmTriggerMenu> ptr1(new L1TUtmTriggerMenu(*(handle1.product ())));
34 
35  cout<<"L1TUtmTriggerMenu: "<<endl;
36  cout<<" name: "<<ptr1->getName()<<endl;
37  cout<<" version: "<<ptr1->getVersion()<<endl;
38  cout<<" date/time: "<<ptr1->getDatetime()<<endl;
39  cout<<" UUID: "<<ptr1->getFirmwareUuid()<<endl;
40  cout<<" Scales: "<<ptr1->getScaleSetName()<<endl;
41  cout<<" modules: "<<ptr1->getNmodules()<<endl;
42 
43  cout<<" Algorithms["<<ptr1->getAlgorithmMap().size()<<"]: "<<endl;
44  for(auto a : ptr1->getAlgorithmMap() )
45  cout<<" "<<a.first<<endl;
46 
47  cout<<" Conditions["<<ptr1->getConditionMap().size()<<"]: "<<endl;
48  for(auto a : ptr1->getConditionMap() )
49  cout<<" "<<a.first<<endl;
50 
51  cout<<" Conditions["<<ptr1->getScaleMap().size()<<"]: "<<endl;
52  for(auto a : ptr1->getScaleMap() )
53  cout<<" "<<a.first<<endl;
54 
55 }
56 
60 
62 
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: L1MenuViewer.cc:29
int iEvent
Definition: GenABIO.cc:230
L1MenuViewer(const edm::ParameterSet &)
Definition: L1MenuViewer.cc:25
~L1MenuViewer(void) override
Definition: L1MenuViewer.cc:26
HLT enums.
double a
Definition: hdecay.h:121
T get() const
Definition: EventSetup.h:63
T const * product() const
Definition: ESHandle.h:86