CMS 3D CMS Logo

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

#include <CSCDigiValidation.h>

Inheritance diagram for CSCDigiValidation:
DQMEDAnalyzer edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 CSCDigiValidation (const edm::ParameterSet &)
 
 ~CSCDigiValidation () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () 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
 
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
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

bool doSim_
 
CSCALCTDigiValidationtheALCTDigiValidation
 
CSCCLCTDigiValidationtheCLCTDigiValidation
 
CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
CSCStripDigiValidationtheStripDigiValidation
 
CSCWireDigiValidationtheWireDigiValidation
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
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)
 
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)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 21 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

CSCDigiValidation::CSCDigiValidation ( const edm::ParameterSet ps)
explicit

Definition at line 14 of file CSCDigiValidation.cc.

References edm::EDConsumerBase::consumesCollector(), doSim_, edm::ParameterSet::getParameter(), CSCBaseValidation::setSimHitMap(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

15  : doSim_(ps.getParameter<bool>("doSim")),
17  theCSCGeometry(nullptr),
18  theStripDigiValidation(nullptr),
19  theWireDigiValidation(nullptr),
21  theALCTDigiValidation(nullptr),
22  theCLCTDigiValidation(nullptr)
23 {
28  doSim_);
30  ps.getParameter<edm::InputTag>("stripDigiTag"),
36 
37  if(doSim_)
38  {
42  }
43 }
CSCStripDigiValidation * theStripDigiValidation
T getParameter(std::string const &) const
CSCALCTDigiValidation * theALCTDigiValidation
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
CSCGeometry * theCSCGeometry
void setSimHitMap(const PSimHitMap *simHitMap)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 45 of file CSCDigiValidation.cc.

References theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

46 {
48  delete theWireDigiValidation;
50  delete theALCTDigiValidation;
51  delete theCLCTDigiValidation;
52 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation

Member Function Documentation

void CSCDigiValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
)
override

Definition at line 64 of file CSCDigiValidation.cc.

References CSCStripDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), CSCComparatorDigiValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCStripDigiValidation::setGeometry(), CSCBaseValidation::setGeometry(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

65 {
66  theSimHitMap.fill(e);
67 
68  // find the geometry & conditions for this event
70  eventSetup.get<MuonGeometryRecord>().get( hGeom );
71  const CSCGeometry *pGeom = &*hGeom;
72 
78 
79 
80  theStripDigiValidation->analyze(e,eventSetup);
81  theWireDigiValidation->analyze(e,eventSetup);
82  theComparatorDigiValidation->analyze(e,eventSetup);
83  theALCTDigiValidation->analyze(e,eventSetup);
84  theCLCTDigiValidation->analyze(e,eventSetup);
85 
86 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
const T & get() const
Definition: EventSetup.h:59
CSCComparatorDigiValidation * theComparatorDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &e, const edm::EventSetup &) override
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
void CSCDigiValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 54 of file CSCDigiValidation.cc.

References CSCStripDigiValidation::bookHistograms(), CSCALCTDigiValidation::bookHistograms(), CSCCLCTDigiValidation::bookHistograms(), CSCWireDigiValidation::bookHistograms(), CSCComparatorDigiValidation::bookHistograms(), doSim_, DQMStore::IBooker::setCurrentFolder(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

55 {
56  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
62 }
CSCStripDigiValidation * theStripDigiValidation
CSCALCTDigiValidation * theALCTDigiValidation
void bookHistograms(DQMStore::IBooker &, bool doSim)
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
void bookHistograms(DQMStore::IBooker &)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation

Member Data Documentation

bool CSCDigiValidation::doSim_
private

Definition at line 29 of file CSCDigiValidation.h.

Referenced by bookHistograms(), and CSCDigiValidation().

CSCALCTDigiValidation* CSCDigiValidation::theALCTDigiValidation
private

Definition at line 36 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCCLCTDigiValidation* CSCDigiValidation::theCLCTDigiValidation
private

Definition at line 37 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCComparatorDigiValidation* CSCDigiValidation::theComparatorDigiValidation
private

Definition at line 35 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 31 of file CSCDigiValidation.h.

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 30 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

CSCStripDigiValidation* CSCDigiValidation::theStripDigiValidation
private

Definition at line 33 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().

CSCWireDigiValidation* CSCDigiValidation::theWireDigiValidation
private

Definition at line 34 of file CSCDigiValidation.h.

Referenced by analyze(), bookHistograms(), CSCDigiValidation(), and ~CSCDigiValidation().