#include <CSCAFEBAnalyzer.h>
Public Member Functions | |
virtual void | analyze (edm::Event const &e, edm::EventSetup const &iSetup) |
CSCAFEBAnalyzer (edm::ParameterSet const &conf) | |
virtual void | endJob () |
Private Attributes | |
CSCAFEBConnectAnalysis | analysiscnt_ |
CSCAFEBThrAnalysis | analysisthr_ |
edm::InputTag | CSCSrc_ |
std::string | testname |
variables persistent across events should be declared here. |
Definition at line 13 of file CSCAFEBAnalyzer.h.
CSCAFEBAnalyzer::CSCAFEBAnalyzer | ( | edm::ParameterSet const & | conf | ) | [explicit] |
If your module takes parameters, here is where you would define their names and types, and access them to initialize internal variables. Example as follows:
get labels for input tags
Definition at line 12 of file CSCAFEBAnalyzer.cc.
References analysiscnt_, analysisthr_, CSCSrc_, edm::ParameterSet::getParameter(), CSCAFEBConnectAnalysis::setup(), CSCAFEBThrAnalysis::setup(), and testname.
{ testname=conf.getParameter<std::string>("TestName"); if(testname=="AFEBThresholdScan") analysisthr_.setup(conf.getParameter<std::string>("HistogramFile")); if(testname=="AFEBConnectivity") analysiscnt_.setup(conf.getParameter<std::string>("HistogramFile")); CSCSrc_ = conf.getParameter<edm::InputTag>("CSCSrc"); }
void CSCAFEBAnalyzer::analyze | ( | edm::Event const & | e, |
edm::EventSetup const & | iSetup | ||
) | [virtual] |
For CSC unpacker
Implements edm::EDAnalyzer.
Definition at line 31 of file CSCAFEBAnalyzer.cc.
References analysiscnt_, analysisthr_, CSCAFEBThrAnalysis::analyze(), CSCAFEBConnectAnalysis::analyze(), CSCSrc_, edm::Event::getByLabel(), and testname.
{ edm::Handle<CSCWireDigiCollection> wire_digis; // const char* modtag="cscunpacker"; // e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis); e.getByLabel(CSCSrc_,wire_digis); if(testname=="AFEBThresholdScan") analysisthr_.analyze(*wire_digis); if(testname=="AFEBConnectivity") analysiscnt_.analyze(*wire_digis); }
void CSCAFEBAnalyzer::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 45 of file CSCAFEBAnalyzer.cc.
References analysiscnt_, analysisthr_, CSCAFEBThrAnalysis::done(), CSCAFEBConnectAnalysis::done(), and testname.
{ if(testname=="AFEBThresholdScan") analysisthr_.done(); if(testname=="AFEBConnectivity") analysiscnt_.done(); }
Definition at line 22 of file CSCAFEBAnalyzer.h.
Referenced by analyze(), CSCAFEBAnalyzer(), and endJob().
Definition at line 21 of file CSCAFEBAnalyzer.h.
Referenced by analyze(), CSCAFEBAnalyzer(), and endJob().
edm::InputTag CSCAFEBAnalyzer::CSCSrc_ [private] |
Definition at line 24 of file CSCAFEBAnalyzer.h.
Referenced by analyze(), and CSCAFEBAnalyzer().
std::string CSCAFEBAnalyzer::testname [private] |
variables persistent across events should be declared here.
Definition at line 20 of file CSCAFEBAnalyzer.h.
Referenced by analyze(), CSCAFEBAnalyzer(), and endJob().