CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCRecHitValidation Class Reference
Inheritance diagram for CSCRecHitValidation:
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
 
 CSCRecHitValidation (const edm::ParameterSet &)
 
 ~CSCRecHitValidation () 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

edm::ESGetToken< CSCGeometry, MuonGeometryRecordgeomToken_
 
std::unique_ptr< CSCRecHit2DValidationthe2DValidation
 
std::unique_ptr< CSCSegmentValidationtheSegmentValidation
 
PSimHitMap theSimHitMap
 

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< 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 15 of file CSCRecHitValidation.cc.

Constructor & Destructor Documentation

◆ CSCRecHitValidation()

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

Definition at line 32 of file CSCRecHitValidation.cc.

33  : theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
34  the2DValidation(nullptr),
35  theSegmentValidation(nullptr) {
36  the2DValidation = std::make_unique<CSCRecHit2DValidation>(ps, consumesCollector());
37  theSegmentValidation = std::make_unique<CSCSegmentValidation>(ps, consumesCollector());
38  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
39 }

References geomToken_, the2DValidation, and theSegmentValidation.

◆ ~CSCRecHitValidation()

CSCRecHitValidation::~CSCRecHitValidation ( )
inlineoverride

Definition at line 18 of file CSCRecHitValidation.cc.

18 {};

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 48 of file CSCRecHitValidation.cc.

48  {
50 
51  // find the geometry & conditions for this event
52  const CSCGeometry *theCSCGeometry = &eventSetup.getData(geomToken_);
53 
54  the2DValidation->setGeometry(theCSCGeometry);
55  the2DValidation->setSimHitMap(&theSimHitMap);
56 
57  theSegmentValidation->setGeometry(theCSCGeometry);
58  theSegmentValidation->setSimHitMap(&theSimHitMap);
59 
60  the2DValidation->analyze(e, eventSetup);
61  theSegmentValidation->analyze(e, eventSetup);
62 }

References MillePedeFileConverter_cfg::e, PSimHitMap::fill(), geomToken_, edm::EventSetup::getData(), the2DValidation, theSegmentValidation, and theSimHitMap.

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 41 of file CSCRecHitValidation.cc.

41  {
42  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
43 
44  the2DValidation->bookHistograms(iBooker);
45  theSegmentValidation->bookHistograms(iBooker);
46 }

References dqm::implementation::NavigatorBase::setCurrentFolder(), the2DValidation, and theSegmentValidation.

Member Data Documentation

◆ geomToken_

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

Definition at line 24 of file CSCRecHitValidation.cc.

Referenced by analyze(), and CSCRecHitValidation().

◆ the2DValidation

std::unique_ptr<CSCRecHit2DValidation> CSCRecHitValidation::the2DValidation
private

Definition at line 26 of file CSCRecHitValidation.cc.

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

◆ theSegmentValidation

std::unique_ptr<CSCSegmentValidation> CSCRecHitValidation::theSegmentValidation
private

Definition at line 27 of file CSCRecHitValidation.cc.

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

◆ theSimHitMap

PSimHitMap CSCRecHitValidation::theSimHitMap
private

Definition at line 23 of file CSCRecHitValidation.cc.

Referenced by analyze().

dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
CSCGeometry
Definition: CSCGeometry.h:24
CSCRecHitValidation::the2DValidation
std::unique_ptr< CSCRecHit2DValidation > the2DValidation
Definition: CSCRecHitValidation.cc:26
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
CSCRecHitValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCRecHitValidation.cc:23
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CSCRecHitValidation::geomToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: CSCRecHitValidation.cc:24
CSCRecHitValidation::theSegmentValidation
std::unique_ptr< CSCSegmentValidation > theSegmentValidation
Definition: CSCRecHitValidation.cc:27
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37