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< 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 22 of file CSCDigiValidation.h.

Constructor & Destructor Documentation

◆ CSCDigiValidation()

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

Definition at line 11 of file CSCDigiValidation.cc.

12  : doSim_(ps.getParameter<bool>("doSim")),
13  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
14  theCSCGeometry(nullptr),
15  theStripDigiValidation(nullptr),
16  theWireDigiValidation(nullptr),
18  theALCTDigiValidation(nullptr),
19  theCLCTDigiValidation(nullptr) {
21  std::make_unique<CSCStripDigiValidation>(ps.getParameter<edm::InputTag>("stripDigiTag"), consumesCollector());
22  theWireDigiValidation = std::make_unique<CSCWireDigiValidation>(
23  ps.getParameter<edm::InputTag>("wireDigiTag"), consumesCollector(), doSim_);
25  std::make_unique<CSCComparatorDigiValidation>(ps.getParameter<edm::InputTag>("comparatorDigiTag"),
26  ps.getParameter<edm::InputTag>("stripDigiTag"),
27  consumesCollector());
29  std::make_unique<CSCALCTDigiValidation>(ps.getParameter<edm::InputTag>("alctDigiTag"), consumesCollector());
31  std::make_unique<CSCCLCTDigiValidation>(ps.getParameter<edm::InputTag>("clctDigiTag"), consumesCollector());
32 
33  if (doSim_) {
34  theStripDigiValidation->setSimHitMap(&theSimHitMap);
35  theWireDigiValidation->setSimHitMap(&theSimHitMap);
37  }
38  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
39 }

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

◆ ~CSCDigiValidation()

CSCDigiValidation::~CSCDigiValidation ( )
override

Definition at line 41 of file CSCDigiValidation.cc.

41 {}

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 54 of file CSCDigiValidation.cc.

54  {
56 
57  // find the geometry & conditions for this event
58  const CSCGeometry *pGeom = &eventSetup.getData(geomToken_);
59 
60  theStripDigiValidation->setGeometry(pGeom);
61  theWireDigiValidation->setGeometry(pGeom);
62  theComparatorDigiValidation->setGeometry(pGeom);
63  theALCTDigiValidation->setGeometry(pGeom);
64  theCLCTDigiValidation->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 }

References MillePedeFileConverter_cfg::e, PSimHitMap::fill(), geomToken_, edm::EventSetup::getData(), 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 43 of file CSCDigiValidation.cc.

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

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

Member Data Documentation

◆ doSim_

bool CSCDigiValidation::doSim_
private

Definition at line 30 of file CSCDigiValidation.h.

Referenced by bookHistograms(), and CSCDigiValidation().

◆ geomToken_

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

Definition at line 40 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

◆ theALCTDigiValidation

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

Definition at line 37 of file CSCDigiValidation.h.

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

◆ theCLCTDigiValidation

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

Definition at line 38 of file CSCDigiValidation.h.

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

◆ theComparatorDigiValidation

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

Definition at line 36 of file CSCDigiValidation.h.

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

◆ theCSCGeometry

CSCGeometry* CSCDigiValidation::theCSCGeometry
private

Definition at line 32 of file CSCDigiValidation.h.

◆ theSimHitMap

PSimHitMap CSCDigiValidation::theSimHitMap
private

Definition at line 31 of file CSCDigiValidation.h.

Referenced by analyze(), and CSCDigiValidation().

◆ theStripDigiValidation

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

Definition at line 34 of file CSCDigiValidation.h.

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

◆ theWireDigiValidation

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

Definition at line 35 of file CSCDigiValidation.h.

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

CSCDigiValidation::theCLCTDigiValidation
std::unique_ptr< CSCCLCTDigiValidation > theCLCTDigiValidation
Definition: CSCDigiValidation.h:38
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:36
CSCDigiValidation::theALCTDigiValidation
std::unique_ptr< CSCALCTDigiValidation > theALCTDigiValidation
Definition: CSCDigiValidation.h:37
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCDigiValidation::theStripDigiValidation
std::unique_ptr< CSCStripDigiValidation > theStripDigiValidation
Definition: CSCDigiValidation.h:34
CSCDigiValidation::theCSCGeometry
CSCGeometry * theCSCGeometry
Definition: CSCDigiValidation.h:32
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
CSCDigiValidation::geomToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: CSCDigiValidation.h:40
CSCDigiValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCDigiValidation.h:31
CSCDigiValidation::doSim_
bool doSim_
Definition: CSCDigiValidation.h:30
CSCDigiValidation::theWireDigiValidation
std::unique_ptr< CSCWireDigiValidation > theWireDigiValidation
Definition: CSCDigiValidation.h:35
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