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 hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Attributes

bool doSim_
 
edm::ESGetToken< CSCGeometry, MuonGeometryRecordgeomToken_
 
std::unique_ptr< CSCALCTDigiValidationtheALCTDigiValidation
 
std::unique_ptr< CSCCLCTDigiValidationtheCLCTDigiValidation
 
std::unique_ptr< CSCComparatorDigiValidationtheComparatorDigiValidation
 
CSCGeometrytheCSCGeometry
 
PSimHitMap theSimHitMap
 
std::unique_ptr< CSCStripDigiValidationtheStripDigiValidation
 
std::unique_ptr< CSCStubEfficiencyValidationtheStubEfficiencyValidation
 
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 23 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  // instantiatethe validation modules
23  theStripDigiValidation = std::make_unique<CSCStripDigiValidation>(ps, consumesCollector());
24  theWireDigiValidation = std::make_unique<CSCWireDigiValidation>(ps, consumesCollector());
25  theComparatorDigiValidation = std::make_unique<CSCComparatorDigiValidation>(ps, consumesCollector());
26  theALCTDigiValidation = std::make_unique<CSCALCTDigiValidation>(ps, consumesCollector());
27  theCLCTDigiValidation = std::make_unique<CSCCLCTDigiValidation>(ps, consumesCollector());
28  theStubEfficiencyValidation = std::make_unique<CSCStubEfficiencyValidation>(ps, consumesCollector());
29 
30  // set the simhit map for resolution studies
31  if (doSim_) {
32  theStripDigiValidation->setSimHitMap(&theSimHitMap);
33  theWireDigiValidation->setSimHitMap(&theSimHitMap);
35  }
36  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
37 }

References doSim_, geomToken_, theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, theStubEfficiencyValidation, and theWireDigiValidation.

◆ ~CSCDigiValidation()

CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 39 of file CSCDigiValidation.cc.

39 {}

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
57  const CSCGeometry *pGeom = &eventSetup.getData(geomToken_);
58 
59  theStripDigiValidation->setGeometry(pGeom);
60  theWireDigiValidation->setGeometry(pGeom);
61  theComparatorDigiValidation->setGeometry(pGeom);
62  theALCTDigiValidation->setGeometry(pGeom);
63  theCLCTDigiValidation->setGeometry(pGeom);
64  theStubEfficiencyValidation->setGeometry(pGeom);
65 
66  theStripDigiValidation->analyze(e, eventSetup);
67  theWireDigiValidation->analyze(e, eventSetup);
68  theComparatorDigiValidation->analyze(e, eventSetup);
69  theALCTDigiValidation->analyze(e, eventSetup);
70  theCLCTDigiValidation->analyze(e, eventSetup);
71  theStubEfficiencyValidation->analyze(e, eventSetup);
72 }

References MillePedeFileConverter_cfg::e, PSimHitMap::fill(), geomToken_, edm::EventSetup::getData(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, theStubEfficiencyValidation, and theWireDigiValidation.

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 41 of file CSCDigiValidation.cc.

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

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

Member Data Documentation

◆ doSim_

bool CSCDigiValidation::doSim_
private

Definition at line 31 of file CSCDigiValidation.h.

Referenced by CSCDigiValidation().

◆ geomToken_

edm::ESGetToken<CSCGeometry, MuonGeometryRecord> CSCDigiValidation::geomToken_
private

Definition at line 44 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

◆ theALCTDigiValidation

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

Definition at line 39 of file CSCDigiValidation.h.

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

◆ theCLCTDigiValidation

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

Definition at line 40 of file CSCDigiValidation.h.

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

◆ theComparatorDigiValidation

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

Definition at line 38 of file CSCDigiValidation.h.

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

◆ theCSCGeometry

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 33 of file CSCDigiValidation.h.

◆ theSimHitMap

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 32 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

◆ theStripDigiValidation

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

Definition at line 36 of file CSCDigiValidation.h.

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

◆ theStubEfficiencyValidation

std::unique_ptr<CSCStubEfficiencyValidation> CSCDigiValidation::theStubEfficiencyValidation
private

Definition at line 41 of file CSCDigiValidation.h.

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

◆ theWireDigiValidation

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

Definition at line 37 of file CSCDigiValidation.h.

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

CSCDigiValidation::theCLCTDigiValidation
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
Definition: CSCDigiValidation.h:40
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
CSCGeometry
Definition: CSCGeometry.h:24
CSCDigiValidation::theComparatorDigiValidation
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
Definition: CSCDigiValidation.h:38
CSCDigiValidation::theStubEfficiencyValidation
std::unique_ptr< CSCStubEfficiencyValidation > theStubEfficiencyValidation
Definition: CSCDigiValidation.h:41
CSCDigiValidation::theALCTDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
Definition: CSCDigiValidation.h:39
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
CSCDigiValidation::theStripDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
Definition: CSCDigiValidation.h:36
CSCDigiValidation::theCSCGeometry
CSCGeometry * theCSCGeometry
Definition: CSCDigiValidation.h:33
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
CSCDigiValidation::geomToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: CSCDigiValidation.h:44
CSCDigiValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCDigiValidation.h:32
CSCDigiValidation::doSim_
bool doSim_
Definition: CSCDigiValidation.h:31
CSCDigiValidation::theWireDigiValidation
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
Definition: CSCDigiValidation.h:37
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37