CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MenuReader.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 L1MenuReader : public edm::EDAnalyzer {
22 public:
23  virtual void analyze(const edm::Event&, const edm::EventSetup&);
24 
25  explicit L1MenuReader(const edm::ParameterSet&) : edm::EDAnalyzer(){}
26  virtual ~L1MenuReader(void){}
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 
L1MenuReader(const edm::ParameterSet &)
Definition: L1MenuReader.cc:25
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
virtual ~L1MenuReader(void)
Definition: L1MenuReader.cc:26
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: L1MenuReader.cc:29
int iEvent
Definition: GenABIO.cc:230
const T & get() const
Definition: EventSetup.h:56
T const * product() const
Definition: ESHandle.h:86
double a
Definition: hdecay.h:121
tuple cout
Definition: gather_cfg.py:145