CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Private Attributes

bool doSim_
 
edm::ESGetToken< CSCGeometry,
MuonGeometryRecord
geomToken_
 
std::unique_ptr
< CSCALCTDigiValidation
theALCTDigiValidation
 
std::unique_ptr
< CSCCLCTDigiValidation
theCLCTDigiValidation
 
std::unique_ptr
< CSCCLCTPreTriggerDigiValidation
theCLCTPreTriggerDigiValidation
 
std::unique_ptr
< CSCComparatorDigiValidation
theComparatorDigiValidation
 
std::unique_ptr
< CSCCorrelatedLCTDigiValidation
theCorrelatedLCTDigiValidation
 
const CSCGeometrytheCSCGeometry
 
PSimHitMaptheSimHitMap
 
std::unique_ptr
< CSCStripDigiValidation
theStripDigiValidation
 
std::unique_ptr
< CSCStubEfficiencyValidation
theStubEfficiencyValidation
 
std::unique_ptr
< CSCStubResolutionValidation
theStubResolutionValidation
 
std::unique_ptr
< CSCWireDigiValidation
theWireDigiValidation
 

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 >
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::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
< DQMEDAnalyzerGlobalCache
initializeGlobalCache (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 26 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

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

Definition at line 15 of file CSCDigiValidation.cc.

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

16  : doSim_(ps.getParameter<bool>("doSim")), theSimHitMap(nullptr), theCSCGeometry(nullptr) {
17  // instantiatethe validation modules
18  theStripDigiValidation = std::make_unique<CSCStripDigiValidation>(ps, consumesCollector());
19  theWireDigiValidation = std::make_unique<CSCWireDigiValidation>(ps, consumesCollector());
20  theComparatorDigiValidation = std::make_unique<CSCComparatorDigiValidation>(ps, consumesCollector());
21  theALCTDigiValidation = std::make_unique<CSCALCTDigiValidation>(ps, consumesCollector());
22  theCLCTDigiValidation = std::make_unique<CSCCLCTDigiValidation>(ps, consumesCollector());
23  theCLCTPreTriggerDigiValidation = std::make_unique<CSCCLCTPreTriggerDigiValidation>(ps, consumesCollector());
24  theCorrelatedLCTDigiValidation = std::make_unique<CSCCorrelatedLCTDigiValidation>(ps, consumesCollector());
25  // set the simhit map for resolution studies
26  if (doSim_) {
27  theSimHitMap = new PSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector());
28  theStripDigiValidation->setSimHitMap(theSimHitMap);
29  theWireDigiValidation->setSimHitMap(theSimHitMap);
30  theComparatorDigiValidation->setSimHitMap(theSimHitMap);
31  theStubEfficiencyValidation = std::make_unique<CSCStubEfficiencyValidation>(ps, consumesCollector());
32  theStubResolutionValidation = std::make_unique<CSCStubResolutionValidation>(ps, consumesCollector());
33  }
34  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
35 }
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
std::unique_ptr< CSCStubEfficiencyValidation > theStubEfficiencyValidation
std::unique_ptr< CSCCLCTPreTriggerDigiValidation > theCLCTPreTriggerDigiValidation
const CSCGeometry * theCSCGeometry
std::unique_ptr< CSCCorrelatedLCTDigiValidation > theCorrelatedLCTDigiValidation
std::unique_ptr< CSCStubResolutionValidation > theStubResolutionValidation
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PSimHitMap * theSimHitMap
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 37 of file CSCDigiValidation.cc.

37 {}

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 57 of file CSCDigiValidation.cc.

References doSim_, PSimHitMap::fill(), geomToken_, edm::EventSetup::getData(), theALCTDigiValidation, theCLCTDigiValidation, theCLCTPreTriggerDigiValidation, theComparatorDigiValidation, theCorrelatedLCTDigiValidation, theSimHitMap, theStripDigiValidation, theStubEfficiencyValidation, theStubResolutionValidation, and theWireDigiValidation.

57  {
58  // find the geometry & conditions for this event
59  const CSCGeometry *pGeom = &eventSetup.getData(geomToken_);
60 
61  theStripDigiValidation->setGeometry(pGeom);
62  theWireDigiValidation->setGeometry(pGeom);
63  theComparatorDigiValidation->setGeometry(pGeom);
64  theALCTDigiValidation->setGeometry(pGeom);
65  theCLCTDigiValidation->setGeometry(pGeom);
66  theCLCTPreTriggerDigiValidation->setGeometry(pGeom);
67  theCorrelatedLCTDigiValidation->setGeometry(pGeom);
68  if (doSim_) {
69  theSimHitMap->fill(e);
70  theStubEfficiencyValidation->setGeometry(pGeom);
71  theStubResolutionValidation->setGeometry(pGeom);
72  }
73 
74  theStripDigiValidation->analyze(e, eventSetup);
75  theWireDigiValidation->analyze(e, eventSetup);
76  theComparatorDigiValidation->analyze(e, eventSetup);
77  theALCTDigiValidation->analyze(e, eventSetup);
78  theCLCTDigiValidation->analyze(e, eventSetup);
79  theCLCTPreTriggerDigiValidation->analyze(e, eventSetup);
80  theCorrelatedLCTDigiValidation->analyze(e, eventSetup);
81  if (doSim_) {
82  theStubEfficiencyValidation->analyze(e, eventSetup);
83  theStubResolutionValidation->analyze(e, eventSetup);
84  }
85 }
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
bool getData(T &iHolder) const
Definition: EventSetup.h:128
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
std::unique_ptr< CSCStubEfficiencyValidation > theStubEfficiencyValidation
std::unique_ptr< CSCCLCTPreTriggerDigiValidation > theCLCTPreTriggerDigiValidation
std::unique_ptr< CSCCorrelatedLCTDigiValidation > theCorrelatedLCTDigiValidation
std::unique_ptr< CSCStubResolutionValidation > theStubResolutionValidation
PSimHitMap * theSimHitMap
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
void CSCDigiValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 39 of file CSCDigiValidation.cc.

References doSim_, theALCTDigiValidation, theCLCTDigiValidation, theCLCTPreTriggerDigiValidation, theComparatorDigiValidation, theCorrelatedLCTDigiValidation, theStripDigiValidation, theStubEfficiencyValidation, theStubResolutionValidation, and theWireDigiValidation.

41  {
42  // plot directory is set for each submodule
43  theStripDigiValidation->bookHistograms(iBooker);
44  theWireDigiValidation->bookHistograms(iBooker);
45  theComparatorDigiValidation->bookHistograms(iBooker);
46  theALCTDigiValidation->bookHistograms(iBooker);
47  theCLCTDigiValidation->bookHistograms(iBooker);
48  theCLCTPreTriggerDigiValidation->bookHistograms(iBooker);
49  theCorrelatedLCTDigiValidation->bookHistograms(iBooker);
50  if (doSim_) {
51  // these plots are split over ALCT, CLCT and LCT
52  theStubEfficiencyValidation->bookHistograms(iBooker);
53  theStubResolutionValidation->bookHistograms(iBooker);
54  }
55 }
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
std::unique_ptr< CSCComparatorDigiValidation > theComparatorDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
std::unique_ptr< CSCStubEfficiencyValidation > theStubEfficiencyValidation
std::unique_ptr< CSCCLCTPreTriggerDigiValidation > theCLCTPreTriggerDigiValidation
std::unique_ptr< CSCCorrelatedLCTDigiValidation > theCorrelatedLCTDigiValidation
std::unique_ptr< CSCStubResolutionValidation > theStubResolutionValidation
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation

Member Data Documentation

bool CSCDigiValidation::doSim_
private

Definition at line 34 of file CSCDigiValidation.h.

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

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

Definition at line 50 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

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

Definition at line 42 of file CSCDigiValidation.h.

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

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

Definition at line 43 of file CSCDigiValidation.h.

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

std::unique_ptr<CSCCLCTPreTriggerDigiValidation> CSCDigiValidation::theCLCTPreTriggerDigiValidation
private

Definition at line 44 of file CSCDigiValidation.h.

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

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

Definition at line 41 of file CSCDigiValidation.h.

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

std::unique_ptr<CSCCorrelatedLCTDigiValidation> CSCDigiValidation::theCorrelatedLCTDigiValidation
private

Definition at line 45 of file CSCDigiValidation.h.

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

const CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 36 of file CSCDigiValidation.h.

PSimHitMap* CSCDigiValidation::theSimHitMap
private

Definition at line 35 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

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

Definition at line 39 of file CSCDigiValidation.h.

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

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

Definition at line 46 of file CSCDigiValidation.h.

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

std::unique_ptr<CSCStubResolutionValidation> CSCDigiValidation::theStubResolutionValidation
private

Definition at line 47 of file CSCDigiValidation.h.

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

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

Definition at line 40 of file CSCDigiValidation.h.

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