CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCAFEBAnalyzer Class Reference

#include <CSCAFEBAnalyzer.h>

Inheritance diagram for CSCAFEBAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

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
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- 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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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(), AlCaHLTBitMon_QueryRunRegistry::string, 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.
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().