CMS 3D CMS Logo

CSCRecHitValidation.cc
Go to the documentation of this file.
8 
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 }
17 
19  delete the2DValidation;
20  delete theSegmentValidation;
21 }
22 
24  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
25 
28 }
29 
30 void CSCRecHitValidation::analyze(const edm::Event &e, const edm::EventSetup &eventSetup) {
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 }
CSCSegmentValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCSegmentValidation.cc:51
CSCRecHit2DCollection.h
CSCRecHitValidation::theCSCGeometry
const CSCGeometry * theCSCGeometry
Definition: CSCRecHitValidation.h:27
CSCRecHit2DValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: CSCRecHit2DValidation.cc:18
CSCRecHitValidation::theSegmentValidation
CSCSegmentValidation * theSegmentValidation
Definition: CSCRecHitValidation.h:30
CSCSegmentValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: CSCSegmentValidation.cc:12
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
DQMStore.h
CSCBaseValidation::setGeometry
void setGeometry(const CSCGeometry *geom)
Definition: CSCBaseValidation.h:22
CSCRecHitValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: CSCRecHitValidation.cc:23
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
Service.h
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
edm::ESHandle< CSCGeometry >
CSCRecHit2DValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCRecHit2DValidation.cc:45
CSCSegmentValidation
Definition: CSCSegmentValidation.h:11
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
CSCRecHitValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCRecHitValidation.cc:30
edm::ParameterSet
Definition: ParameterSet.h:36
edm::EventSetup
Definition: EventSetup.h:57
CSCRecHitValidation::CSCRecHitValidation
CSCRecHitValidation(const edm::ParameterSet &)
Definition: CSCRecHitValidation.cc:9
get
#define get
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
CSCRecHitValidation::~CSCRecHitValidation
~CSCRecHitValidation() override
Definition: CSCRecHitValidation.cc:18
CSCRecHitValidation::the2DValidation
CSCRecHit2DValidation * the2DValidation
Definition: CSCRecHitValidation.h:29
CSCRecHitValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCRecHitValidation.h:26
CSCBaseValidation::setSimHitMap
void setSimHitMap(const PSimHitMap *simHitMap)
Definition: CSCBaseValidation.h:23
dqm::implementation::IBooker
Definition: DQMStore.h:43
CSCRecHitValidation.h
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
edm::InputTag
Definition: InputTag.h:15
CSCRecHit2DValidation
Definition: CSCRecHit2DValidation.h:11
CSCGeometry.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37