CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCRecHitValidation Class Reference

#include <CSCRecHitValidation.h>

Inheritance diagram for CSCRecHitValidation:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

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 one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Private Attributes

CSCRecHit2DValidationthe2DValidation
 
const CSCGeometrytheCSCGeometry
 
CSCSegmentValidationtheSegmentValidation
 
PSimHitMap theSimHitMap
 

Detailed Description

Definition at line 21 of file CSCRecHitValidation.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file CSCRecHitValidation.cc.

References edm::ParameterSet::getParameter(), the2DValidation, and theSegmentValidation.

11 : theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector() ),
12  theCSCGeometry(nullptr),
13  the2DValidation(nullptr),
14  theSegmentValidation(nullptr)
15 {
17  ps.getParameter<edm::InputTag>("recHitLabel"),
18  consumesCollector() );
20  ps.getParameter<edm::InputTag>("segmentLabel"),
21  consumesCollector() );
22 }
T getParameter(std::string const &) const
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation
const CSCGeometry * theCSCGeometry
CSCRecHitValidation::~CSCRecHitValidation ( )
override

Definition at line 24 of file CSCRecHitValidation.cc.

References the2DValidation, and theSegmentValidation.

25 {
26  delete the2DValidation;
27  delete theSegmentValidation;
28 }
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation

Member Function Documentation

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

Definition at line 38 of file CSCRecHitValidation.cc.

References CSCRecHit2DValidation::analyze(), CSCSegmentValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCBaseValidation::setSimHitMap(), the2DValidation, theCSCGeometry, theSegmentValidation, and theSimHitMap.

39 {
40  theSimHitMap.fill(e);
41 
42  // find the geometry & conditions for this event
44  eventSetup.get<MuonGeometryRecord>().get( hGeom );
45  theCSCGeometry = &*hGeom;
46 
49 
52 
53  the2DValidation->analyze(e, eventSetup);
54  theSegmentValidation->analyze(e, eventSetup);
55 }
CSCRecHit2DValidation * the2DValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCSegmentValidation * theSegmentValidation
void setGeometry(const CSCGeometry *geom)
void setSimHitMap(const PSimHitMap *simHitMap)
T get() const
Definition: EventSetup.h:68
void analyze(const edm::Event &, const edm::EventSetup &) override
const CSCGeometry * theCSCGeometry
void analyze(const edm::Event &, const edm::EventSetup &) override
void CSCRecHitValidation::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  iRun,
edm::EventSetup const &   
)
override

Definition at line 30 of file CSCRecHitValidation.cc.

References CSCRecHit2DValidation::bookHistograms(), CSCSegmentValidation::bookHistograms(), DQMStore::IBooker::setCurrentFolder(), the2DValidation, and theSegmentValidation.

31 {
32  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
33 
36 }
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation
void bookHistograms(DQMStore::IBooker &)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
void bookHistograms(DQMStore::IBooker &)

Member Data Documentation

CSCRecHit2DValidation* CSCRecHitValidation::the2DValidation
private
const CSCGeometry* CSCRecHitValidation::theCSCGeometry
private

Definition at line 30 of file CSCRecHitValidation.h.

Referenced by analyze().

CSCSegmentValidation* CSCRecHitValidation::theSegmentValidation
private
PSimHitMap CSCRecHitValidation::theSimHitMap
private

Definition at line 29 of file CSCRecHitValidation.h.

Referenced by analyze().