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

void analyze (edm::Event const &e, edm::EventSetup const &iSetup) override
 
 CSCAFEBAnalyzer (edm::ParameterSet const &conf)
 
void endJob () override
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
 ~EDAnalyzer () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
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::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
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 &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 13 of file CSCAFEBAnalyzer.h.

Constructor & Destructor Documentation

◆ CSCAFEBAnalyzer()

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.

12  {
16 
17  testname = conf.getParameter<std::string>("TestName");
18 
19  if (testname == "AFEBThresholdScan")
20  analysisthr_.setup(conf.getParameter<std::string>("HistogramFile"));
21  if (testname == "AFEBConnectivity")
22  analysiscnt_.setup(conf.getParameter<std::string>("HistogramFile"));
23 
25 
26  CSCSrc_ = conf.getParameter<edm::InputTag>("CSCSrc");
27 }

References analysiscnt_, analysisthr_, CSCSrc_, edm::ParameterSet::getParameter(), CSCAFEBThrAnalysis::setup(), CSCAFEBConnectAnalysis::setup(), AlCaHLTBitMon_QueryRunRegistry::string, and testname.

Member Function Documentation

◆ analyze()

void CSCAFEBAnalyzer::analyze ( edm::Event const &  e,
edm::EventSetup const &  iSetup 
)
overridevirtual

For CSC unpacker

Implements edm::EDAnalyzer.

Definition at line 29 of file CSCAFEBAnalyzer.cc.

29  {
31 
33 
34  // const char* modtag="cscunpacker";
35  // e.getByLabel(modtag,"MuonCSCWireDigi",wire_digis);
36  e.getByLabel(CSCSrc_, wire_digis);
37 
38  if (testname == "AFEBThresholdScan")
39  analysisthr_.analyze(*wire_digis);
40  if (testname == "AFEBConnectivity")
41  analysiscnt_.analyze(*wire_digis);
42 }

References analysiscnt_, analysisthr_, CSCAFEBThrAnalysis::analyze(), CSCAFEBConnectAnalysis::analyze(), CSCSrc_, MillePedeFileConverter_cfg::e, and testname.

◆ endJob()

void CSCAFEBAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 44 of file CSCAFEBAnalyzer.cc.

44  {
45  if (testname == "AFEBThresholdScan")
47  if (testname == "AFEBConnectivity")
49 }

References analysiscnt_, analysisthr_, CSCAFEBConnectAnalysis::done(), CSCAFEBThrAnalysis::done(), and testname.

Member Data Documentation

◆ analysiscnt_

CSCAFEBConnectAnalysis CSCAFEBAnalyzer::analysiscnt_
private

Definition at line 23 of file CSCAFEBAnalyzer.h.

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

◆ analysisthr_

CSCAFEBThrAnalysis CSCAFEBAnalyzer::analysisthr_
private

Definition at line 22 of file CSCAFEBAnalyzer.h.

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

◆ CSCSrc_

edm::InputTag CSCAFEBAnalyzer::CSCSrc_
private

Definition at line 25 of file CSCAFEBAnalyzer.h.

Referenced by analyze(), and CSCAFEBAnalyzer().

◆ testname

std::string CSCAFEBAnalyzer::testname
private

variables persistent across events should be declared here.

Definition at line 21 of file CSCAFEBAnalyzer.h.

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

CSCAFEBAnalyzer::testname
std::string testname
variables persistent across events should be declared here.
Definition: CSCAFEBAnalyzer.h:21
CSCAFEBThrAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBThrAnalysis.cc:127
edm::Handle< CSCWireDigiCollection >
CSCAFEBConnectAnalysis::analyze
void analyze(const CSCWireDigiCollection &wirecltn)
Definition: CSCAFEBConnectAnalysis.cc:129
CSCAFEBAnalyzer::CSCSrc_
edm::InputTag CSCSrc_
Definition: CSCAFEBAnalyzer.h:25
CSCAFEBConnectAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBConnectAnalysis.cc:31
CSCAFEBThrAnalysis::done
void done()
Definition: CSCAFEBThrAnalysis.cc:222
CSCAFEBAnalyzer::analysiscnt_
CSCAFEBConnectAnalysis analysiscnt_
Definition: CSCAFEBAnalyzer.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CSCAFEBConnectAnalysis::done
void done()
Definition: CSCAFEBConnectAnalysis.cc:223
CSCAFEBAnalyzer::analysisthr_
CSCAFEBThrAnalysis analysisthr_
Definition: CSCAFEBAnalyzer.h:22
CSCAFEBThrAnalysis::setup
void setup(const std::string &histoFileName)
Definition: CSCAFEBThrAnalysis.cc:32
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37