CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CSCAFEBAnalyzer Class Reference

#include <CSCAFEBAnalyzer.h>

Inheritance diagram for CSCAFEBAnalyzer:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &iSetup)
 
 CSCAFEBAnalyzer (edm::ParameterSet const &conf)
 
virtual void endJob ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

CSCAFEBConnectAnalysis analysiscnt_
 
CSCAFEBThrAnalysis analysisthr_
 
edm::InputTag CSCSrc_
 
std::string testname
 variables persistent across events should be declared here. More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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(), CSCAFEBThrAnalysis::setup(), CSCAFEBConnectAnalysis::setup(), and testname.

12  {
13 
17 
18  testname=conf.getParameter<std::string>("TestName");
19 
20 if(testname=="AFEBThresholdScan")
21  analysisthr_.setup(conf.getParameter<std::string>("HistogramFile"));
22 if(testname=="AFEBConnectivity")
23  analysiscnt_.setup(conf.getParameter<std::string>("HistogramFile"));
24 
26 
27 CSCSrc_ = conf.getParameter<edm::InputTag>("CSCSrc");
28 
29 }
CSCAFEBThrAnalysis analysisthr_
edm::InputTag CSCSrc_
std::string testname
variables persistent across events should be declared here.
tuple conf
Definition: dbtoconf.py:185
void setup(const std::string &histoFileName)
void setup(const std::string &histoFileName)
CSCAFEBConnectAnalysis analysiscnt_

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.

31  {
32 
34 
36 
37 // const char* modtag="cscunpacker";
38 // e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis);
39  e.getByLabel(CSCSrc_,wire_digis);
40 
41 if(testname=="AFEBThresholdScan") analysisthr_.analyze(*wire_digis);
42 if(testname=="AFEBConnectivity") analysiscnt_.analyze(*wire_digis);
43 }
CSCAFEBThrAnalysis analysisthr_
edm::InputTag CSCSrc_
std::string testname
variables persistent across events should be declared here.
void analyze(const CSCWireDigiCollection &wirecltn)
CSCAFEBConnectAnalysis analysiscnt_
void analyze(const CSCWireDigiCollection &wirecltn)
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.

45  {
46 if(testname=="AFEBThresholdScan") analysisthr_.done();
47 if(testname=="AFEBConnectivity") analysiscnt_.done();
48 }
CSCAFEBThrAnalysis analysisthr_
std::string testname
variables persistent across events should be declared here.
CSCAFEBConnectAnalysis analysiscnt_

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