CMS 3D CMS Logo

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

#include <CSCAFEBAnalyzer.h>

Inheritance diagram for CSCAFEBAnalyzer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase 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::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > 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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

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 11 of file CSCAFEBAnalyzer.cc.

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

12  : testname(conf.getParameter<std::string>("TestName")),
13  CSCSrc_(conf.getParameter<edm::InputTag>("CSCSrc")),
14  w_token(consumes<CSCWireDigiCollection>(CSCSrc_)) {
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 }
const std::string testname
variables persistent across events should be declared here.
CSCAFEBThrAnalysis analysisthr_
const edm::EDGetTokenT< CSCWireDigiCollection > w_token
void setup(const std::string &histoFileName)
void setup(const std::string &histoFileName)
const edm::InputTag CSCSrc_
CSCAFEBConnectAnalysis analysiscnt_

Member Function Documentation

◆ analyze()

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

For CSC unpacker

Implements edm::one::EDAnalyzerBase.

Definition at line 27 of file CSCAFEBAnalyzer.cc.

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

27  {
29  const edm::Handle<CSCWireDigiCollection>& wire_digis = e.getHandle(w_token);
30 
31  if (testname == "AFEBThresholdScan")
32  analysisthr_.analyze(*wire_digis);
33  if (testname == "AFEBConnectivity")
34  analysiscnt_.analyze(*wire_digis);
35 }
const std::string testname
variables persistent across events should be declared here.
CSCAFEBThrAnalysis analysisthr_
const edm::EDGetTokenT< CSCWireDigiCollection > w_token
void analyze(const CSCWireDigiCollection &wirecltn)
CSCAFEBConnectAnalysis analysiscnt_
void analyze(const CSCWireDigiCollection &wirecltn)

◆ endJob()

void CSCAFEBAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 37 of file CSCAFEBAnalyzer.cc.

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

37  {
38  if (testname == "AFEBThresholdScan")
40  if (testname == "AFEBConnectivity")
42 }
const std::string testname
variables persistent across events should be declared here.
CSCAFEBThrAnalysis analysisthr_
CSCAFEBConnectAnalysis analysiscnt_

Member Data Documentation

◆ analysiscnt_

CSCAFEBConnectAnalysis CSCAFEBAnalyzer::analysiscnt_
private

Definition at line 25 of file CSCAFEBAnalyzer.h.

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

◆ analysisthr_

CSCAFEBThrAnalysis CSCAFEBAnalyzer::analysisthr_
private

Definition at line 24 of file CSCAFEBAnalyzer.h.

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

◆ CSCSrc_

const edm::InputTag CSCAFEBAnalyzer::CSCSrc_
private

Definition at line 22 of file CSCAFEBAnalyzer.h.

◆ testname

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

◆ w_token

const edm::EDGetTokenT<CSCWireDigiCollection> CSCAFEBAnalyzer::w_token
private

Definition at line 23 of file CSCAFEBAnalyzer.h.

Referenced by analyze().