#include <OnlineDB/CSCCondDB/interface/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.
00012 { 00013 00017 00018 testname=conf.getParameter<std::string>("TestName"); 00019 00020 if(testname=="AFEBThresholdScan") 00021 analysisthr_.setup(conf.getParameter<std::string>("HistogramFile")); 00022 if(testname=="AFEBConnectivity") 00023 analysiscnt_.setup(conf.getParameter<std::string>("HistogramFile")); 00024 00026 00027 CSCSrc_ = conf.getParameter<edm::InputTag>("CSCSrc"); 00028 00029 }
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.
00031 { 00032 00033 edm::Handle<CSCWireDigiCollection> wire_digis; 00034 00036 00037 // const char* modtag="cscunpacker"; 00038 // e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis); 00039 e.getByLabel(CSCSrc_,wire_digis); 00040 00041 if(testname=="AFEBThresholdScan") analysisthr_.analyze(*wire_digis); 00042 if(testname=="AFEBConnectivity") analysiscnt_.analyze(*wire_digis); 00043 }
Reimplemented from edm::EDAnalyzer.
Definition at line 45 of file CSCAFEBAnalyzer.cc.
References analysiscnt_, analysisthr_, CSCAFEBConnectAnalysis::done(), CSCAFEBThrAnalysis::done(), and testname.
00045 { 00046 if(testname=="AFEBThresholdScan") analysisthr_.done(); 00047 if(testname=="AFEBConnectivity") analysiscnt_.done(); 00048 }
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] |
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().