CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCAFEBAnalyzer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <vector>
9 
11 
13 
17 
18  testname=conf.getParameter<std::string>("TestName");
19 
20 if(testname=="AFEBThresholdScan")
21  analysisthr_.setup(conf.getParameter<std::string>("HistogramFile"));
22 if(testname=="AFEBConnectivity")
23  analysiscnt_.setup(conf.getParameter<std::string>("HistogramFile"));
24 
26 
27 CSCSrc_ = conf.getParameter<edm::InputTag>("CSCSrc");
28 
29 }
30 
32 
34 
36 
37 // const char* modtag="cscunpacker";
38 // e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis);
39  e.getByLabel(CSCSrc_,wire_digis);
40 
41 if(testname=="AFEBThresholdScan") analysisthr_.analyze(*wire_digis);
42 if(testname=="AFEBConnectivity") analysiscnt_.analyze(*wire_digis);
43 }
44 
46 if(testname=="AFEBThresholdScan") analysisthr_.done();
47 if(testname=="AFEBConnectivity") analysiscnt_.done();
48 }
T getParameter(std::string const &) const
CSCAFEBThrAnalysis analysisthr_
edm::InputTag CSCSrc_
std::string testname
variables persistent across events should be declared here.
virtual void endJob()
virtual void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:413
tuple conf
Definition: dbtoconf.py:185
void setup(const std::string &histoFileName)
void setup(const std::string &histoFileName)
CSCAFEBAnalyzer(edm::ParameterSet const &conf)
void analyze(const CSCWireDigiCollection &wirecltn)
CSCAFEBConnectAnalysis analysiscnt_
void analyze(const CSCWireDigiCollection &wirecltn)