test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TEndcapReader.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <iostream>
3 
5 
8 
11 
13 //#include "CondFormats/L1TObjects/interface/L1TMuonEndcapParams.h"
17 
18 #include <iostream>
19 using namespace std;
20 
22 public:
23  virtual void analyze(const edm::Event&, const edm::EventSetup&);
24 
25  explicit L1TEndcapReader(const edm::ParameterSet&) : edm::EDAnalyzer(){}
26  virtual ~L1TEndcapReader(void){}
27 };
28 
30 /*
31  edm::ESHandle<L1TMuonEndcapParams> handle1;
32  evSetup.get<L1TMuonEndcapParamsRcd>().get( handle1 ) ;
33  boost::shared_ptr<L1TMuonEndcapParams> ptr1(new L1TMuonEndcapParams(*(handle1.product ())));
34 
35  cout<<"L1TMuonEndcapParams: "<<endl;
36  ptr1->print(cout);
37 
38  // a more comprehensive output:
39  std::vector <std::pair<int,EndCapForest*> > forests = ptr1->getPtForests();
40  for(auto & forest : forests){
41  cout<<" i="<<forest.first;
42  for(unsigned int tr=0; tr<forest.second->size(); tr++){
43  cout<<" tree ptr="<<hex<<forest.second->getTree(tr)<<dec<<endl;
44  }
45  }
46 */
47 }
48 
52 
54 
virtual ~L1TEndcapReader(void)
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int iEvent
Definition: GenABIO.cc:230
L1TEndcapReader(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)