CMS 3D CMS Logo

CSCAFEBAnalyzer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <vector>
8 
10 
12  : testname(conf.getParameter<std::string>("TestName")),
13  CSCSrc_(conf.getParameter<edm::InputTag>("CSCSrc")),
14  w_token(consumes<CSCWireDigiCollection>(CSCSrc_)) {
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 
29  const edm::Handle<CSCWireDigiCollection>& wire_digis = e.getHandle(w_token);
30 
31  if (testname == "AFEBThresholdScan")
32  analysisthr_.analyze(*wire_digis);
33  if (testname == "AFEBConnectivity")
34  analysiscnt_.analyze(*wire_digis);
35 }
36 
38  if (testname == "AFEBThresholdScan")
40  if (testname == "AFEBConnectivity")
42 }
const std::string testname
variables persistent across events should be declared here.
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CSCAFEBThrAnalysis analysisthr_
const edm::EDGetTokenT< CSCWireDigiCollection > w_token
void setup(const std::string &histoFileName)
HLT enums.
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)