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 }
CSCAFEBAnalyzer::testname
std::string testname
variables persistent across events should be declared here.
Definition: CSCAFEBAnalyzer.h:21
CSCAFEBAnalyzer::endJob
void endJob() override
Definition: CSCAFEBAnalyzer.cc:44
Handle.h
ESHandle.h
EDAnalyzer.h
CSCAFEBThrAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBThrAnalysis.cc:127
edm::Handle< CSCWireDigiCollection >
CSCAFEBConnectAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBConnectAnalysis.cc:129
CSCAFEBAnalyzer::CSCSrc_
edm::InputTag CSCSrc_
Definition: CSCAFEBAnalyzer.h:25
CSCAFEBConnectAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBConnectAnalysis.cc:31
CSCAFEBAnalyzer::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition: CSCAFEBAnalyzer.cc:29
CSCAFEBThrAnalysis::done
void done()
Definition: CSCAFEBThrAnalysis.cc:222
CSCAFEBAnalyzer::analysiscnt_
CSCAFEBConnectAnalysis analysiscnt_
Definition: CSCAFEBAnalyzer.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCAFEBConnectAnalysis::done
void done()
Definition: CSCAFEBConnectAnalysis.cc:223
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
CSCAFEBAnalyzer::analysisthr_
CSCAFEBThrAnalysis analysisthr_
Definition: CSCAFEBAnalyzer.h:22
edm::EventSetup
Definition: EventSetup.h:57
CSCAFEBAnalyzer::CSCAFEBAnalyzer
CSCAFEBAnalyzer(edm::ParameterSet const &conf)
Definition: CSCAFEBAnalyzer.cc:12
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CSCAFEBAnalyzer.h
CSCAFEBThrAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBThrAnalysis.cc:32
EventSetup.h
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37