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
CSCDigiValidation Class Reference

#include <CSCDigiValidation.h>

Inheritance diagram for CSCDigiValidation:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
 CSCDigiValidation (const edm::ParameterSet &)
 
 ~CSCDigiValidation ()
 
- Public Member Functions inherited from DQMEDAnalyzer
virtual void beginRun (edm::Run const &, edm::EventSetup const &) final
 
virtual void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer (void)
 
virtual void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
virtual void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

bool doSim_
 
CSCALCTDigiValidationtheALCTDigiValidation
 
CSCCLCTDigiValidationtheCLCTDigiValidation
 
CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
CSCStripDigiValidationtheStripDigiValidation
 
CSCWireDigiValidationtheWireDigiValidation
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr
< dqmDetails::NoCache
globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr
< dqmDetails::NoCache
globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::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)
 
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 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(0),
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 ( )

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 
)
virtual

Implements edm::stream::EDAnalyzerBase.

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
void analyze(const edm::Event &, const edm::EventSetup &)
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
void analyze(const edm::Event &, const edm::EventSetup &)
void analyze(const edm::Event &e, const edm::EventSetup &)
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
const T & get() const
Definition: EventSetup.h:55
CSCComparatorDigiValidation * theComparatorDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCCLCTDigiValidation * theCLCTDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
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:274
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().