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) {
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 }
T getParameter(std::string const &) const
CSCRecHit2DValidation * the2DValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
#define nullptr
CSCSegmentValidation * theSegmentValidation
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void setGeometry(const CSCGeometry *geom)
void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
CSCRecHitValidation(const edm::ParameterSet &)
void setSimHitMap(const PSimHitMap *simHitMap)
HLT enums.
T get() const
Definition: EventSetup.h:71
void bookHistograms(DQMStore::IBooker &)
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Run.h:45
const CSCGeometry * theCSCGeometry
void analyze(const edm::Event &, const edm::EventSetup &) override