CMS 3D CMS Logo

CSCAFEBAnalyzer Class Reference

#include <OnlineDB/CSCCondDB/interface/CSCAFEBAnalyzer.h>

Inheritance diagram for CSCAFEBAnalyzer:

edm::EDAnalyzer

List of all members.

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.


Detailed Description

Definition at line 13 of file CSCAFEBAnalyzer.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

void CSCAFEBAnalyzer::endJob ( void   )  [virtual]

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 }


Member Data Documentation

CSCAFEBConnectAnalysis CSCAFEBAnalyzer::analysiscnt_ [private]

Definition at line 22 of file CSCAFEBAnalyzer.h.

Referenced by analyze(), CSCAFEBAnalyzer(), and endJob().

CSCAFEBThrAnalysis CSCAFEBAnalyzer::analysisthr_ [private]

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:00 2009 for CMSSW by  doxygen 1.5.4