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 19 of file CSCRecHitValidation.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file CSCRecHitValidation.cc.

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

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

Definition at line 18 of file CSCRecHitValidation.cc.

References the2DValidation, and theSegmentValidation.

18  {
19  delete the2DValidation;
20  delete theSegmentValidation;
21 }
CSCRecHit2DValidation * the2DValidation
CSCSegmentValidation * theSegmentValidation

Member Function Documentation

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

Definition at line 30 of file CSCRecHitValidation.cc.

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

30  {
31  theSimHitMap.fill(e);
32 
33  // find the geometry & conditions for this event
35  eventSetup.get<MuonGeometryRecord>().get(hGeom);
36  theCSCGeometry = &*hGeom;
37 
40 
43 
44  the2DValidation->analyze(e, eventSetup);
45  theSegmentValidation->analyze(e, eventSetup);
46 }
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:71
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 23 of file CSCRecHitValidation.cc.

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

23  {
24  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
25 
28 }
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 28 of file CSCRecHitValidation.h.

Referenced by analyze().

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

Definition at line 27 of file CSCRecHitValidation.h.

Referenced by analyze().