CMS 3D CMS Logo

CSCRecHitValidation.cc
Go to the documentation of this file.
8 
9 
11 : theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector() ),
12  theCSCGeometry(nullptr),
13  the2DValidation(nullptr),
14  theSegmentValidation(nullptr)
15 {
17  ps.getParameter<edm::InputTag>("recHitLabel"),
20  ps.getParameter<edm::InputTag>("segmentLabel"),
22 }
23 
25 {
26  delete the2DValidation;
27  delete theSegmentValidation;
28 }
29 
31 {
32  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
33 
36 }
37 
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 }
T getParameter(std::string const &) const
CSCRecHit2DValidation * the2DValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCSegmentValidation * theSegmentValidation
void bookHistograms(DQMStore::IBooker &)
#define nullptr
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)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
HLT enums.
T get() const
Definition: EventSetup.h:63
void bookHistograms(DQMStore::IBooker &)
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Run.h:44
const CSCGeometry * theCSCGeometry
void analyze(const edm::Event &, const edm::EventSetup &) override