CMS 3D CMS Logo

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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
CSCAFEBThrAnalysis analysisthr_
edm::InputTag CSCSrc_
std::string testname
variables persistent across events should be declared here.
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)