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
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,
MuonGeometryRecord
geomToken_
 
std::unique_ptr
< CSCRecHit2DValidation
the2DValidation
 
std::unique_ptr
< CSCSegmentValidation
theSegmentValidation
 
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
< 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 15 of file CSCRecHitValidation.cc.

Constructor & Destructor Documentation

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

Definition at line 32 of file CSCRecHitValidation.cc.

References geomToken_, the2DValidation, and theSegmentValidation.

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 }
std::unique_ptr< CSCSegmentValidation > theSegmentValidation
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
std::unique_ptr< CSCRecHit2DValidation > the2DValidation
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
CSCRecHitValidation::~CSCRecHitValidation ( )
inlineoverride

Definition at line 18 of file CSCRecHitValidation.cc.

18 {};

Member Function Documentation

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

Reimplemented from DQMEDAnalyzer.

Definition at line 48 of file CSCRecHitValidation.cc.

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

48  {
49  theSimHitMap.fill(e);
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 }
std::unique_ptr< CSCSegmentValidation > theSegmentValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
bool getData(T &iHolder) const
Definition: EventSetup.h:128
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
std::unique_ptr< CSCRecHit2DValidation > the2DValidation
void CSCRecHitValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 41 of file CSCRecHitValidation.cc.

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

41  {
42  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
43 
44  the2DValidation->bookHistograms(iBooker);
45  theSegmentValidation->bookHistograms(iBooker);
46 }
std::unique_ptr< CSCSegmentValidation > theSegmentValidation
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
std::unique_ptr< CSCRecHit2DValidation > the2DValidation

Member Data Documentation

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

Definition at line 24 of file CSCRecHitValidation.cc.

Referenced by analyze(), and CSCRecHitValidation().

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

Definition at line 26 of file CSCRecHitValidation.cc.

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

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

Definition at line 27 of file CSCRecHitValidation.cc.

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

PSimHitMap CSCRecHitValidation::theSimHitMap
private

Definition at line 23 of file CSCRecHitValidation.cc.

Referenced by analyze().