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) {
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
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:418
#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
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
CSCRecHitValidation(const edm::ParameterSet &)
void setSimHitMap(const PSimHitMap *simHitMap)
HLT enums.
T get() const
Definition: EventSetup.h:73
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