CMS 3D CMS Logo

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