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::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

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 &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

bool doSim_
 
std::unique_ptr< CSCALCTDigiValidationtheALCTDigiValidation
 
std::unique_ptr< CSCCLCTDigiValidationtheCLCTDigiValidation
 
std::unique_ptr< CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
std::unique_ptr< CSCStripDigiValidationtheStripDigiValidation
 
std::unique_ptr< CSCWireDigiValidationtheWireDigiValidation
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 21 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

◆ CSCDigiValidation()

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

Definition at line 12 of file CSCDigiValidation.cc.

13  : doSim_(ps.getParameter<bool>("doSim")),
14  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
15  theCSCGeometry(nullptr),
16  theStripDigiValidation(nullptr),
17  theWireDigiValidation(nullptr),
19  theALCTDigiValidation(nullptr),
20  theCLCTDigiValidation(nullptr) {
22  new CSCStripDigiValidation(ps.getParameter<edm::InputTag>("stripDigiTag"), consumesCollector()));
24  new CSCWireDigiValidation(ps.getParameter<edm::InputTag>("wireDigiTag"), consumesCollector(), doSim_));
26  ps.getParameter<edm::InputTag>("stripDigiTag"),
27  consumesCollector()));
29  new CSCALCTDigiValidation(ps.getParameter<edm::InputTag>("alctDigiTag"), consumesCollector()));
31  new CSCCLCTDigiValidation(ps.getParameter<edm::InputTag>("clctDigiTag"), consumesCollector()));
32 
33  if (doSim_) {
34  theStripDigiValidation->setSimHitMap(&theSimHitMap);
35  theWireDigiValidation->setSimHitMap(&theSimHitMap);
37  }
38 }

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

◆ ~CSCDigiValidation()

CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 40 of file CSCDigiValidation.cc.

40 {}

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 53 of file CSCDigiValidation.cc.

53  {
55 
56  // find the geometry & conditions for this event
58  eventSetup.get<MuonGeometryRecord>().get(hGeom);
59  const CSCGeometry *pGeom = &*hGeom;
60 
61  theStripDigiValidation->setGeometry(pGeom);
62  theWireDigiValidation->setGeometry(pGeom);
63  theComparatorDigiValidation->setGeometry(pGeom);
64  theALCTDigiValidation->setGeometry(pGeom);
65  theCLCTDigiValidation->setGeometry(pGeom);
66 
72 }

References MillePedeFileConverter_cfg::e, options_cfi::eventSetup, PSimHitMap::fill(), get, theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.

◆ bookHistograms()

void CSCDigiValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 42 of file CSCDigiValidation.cc.

44  {
45  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
46  theStripDigiValidation->bookHistograms(iBooker, doSim_);
47  theWireDigiValidation->bookHistograms(iBooker);
48  theComparatorDigiValidation->bookHistograms(iBooker);
49  theALCTDigiValidation->bookHistograms(iBooker);
50  theCLCTDigiValidation->bookHistograms(iBooker);
51 }

References doSim_, dqm::implementation::NavigatorBase::setCurrentFolder(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.

Member Data Documentation

◆ doSim_

bool CSCDigiValidation::doSim_
private

Definition at line 29 of file CSCDigiValidation.h.

Referenced by bookHistograms(), and CSCDigiValidation().

◆ theALCTDigiValidation

std::unique_ptr<CSCALCTDigiValidation> CSCDigiValidation::theALCTDigiValidation
private

Definition at line 36 of file CSCDigiValidation.h.

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

◆ theCLCTDigiValidation

std::unique_ptr<CSCCLCTDigiValidation> CSCDigiValidation::theCLCTDigiValidation
private

Definition at line 37 of file CSCDigiValidation.h.

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

◆ theComparatorDigiValidation

std::unique_ptr<CSCComparatorDigiValidation> CSCDigiValidation::theComparatorDigiValidation
private

Definition at line 35 of file CSCDigiValidation.h.

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

◆ theCSCGeometry

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 31 of file CSCDigiValidation.h.

◆ theSimHitMap

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 30 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

◆ theStripDigiValidation

std::unique_ptr<CSCStripDigiValidation> CSCDigiValidation::theStripDigiValidation
private

Definition at line 33 of file CSCDigiValidation.h.

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

◆ theWireDigiValidation

std::unique_ptr<CSCWireDigiValidation> CSCDigiValidation::theWireDigiValidation
private

Definition at line 34 of file CSCDigiValidation.h.

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

CSCALCTDigiValidation
Definition: CSCALCTDigiValidation.h:11
CSCDigiValidation::theCLCTDigiValidation
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
Definition: CSCDigiValidation.h:37
CSCGeometry
Definition: CSCGeometry.h:24
CSCDigiValidation::theComparatorDigiValidation
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
Definition: CSCDigiValidation.h:35
CSCDigiValidation::theALCTDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
Definition: CSCDigiValidation.h:36
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
edm::ESHandle< CSCGeometry >
CSCDigiValidation::theStripDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
Definition: CSCDigiValidation.h:33
CSCDigiValidation::theCSCGeometry
CSCGeometry * theCSCGeometry
Definition: CSCDigiValidation.h:31
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CSCCLCTDigiValidation
Definition: CSCCLCTDigiValidation.h:11
CSCDigiValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCDigiValidation.h:30
CSCDigiValidation::doSim_
bool doSim_
Definition: CSCDigiValidation.h:29
options_cfi.eventSetup
eventSetup
Definition: options_cfi.py:12
CSCDigiValidation::theWireDigiValidation
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
Definition: CSCDigiValidation.h:34
CSCComparatorDigiValidation
Definition: CSCComparatorDigiValidation.h:12
CSCStripDigiValidation
Definition: CSCStripDigiValidation.h:11
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
CSCWireDigiValidation
Definition: CSCWireDigiValidation.h:11