CMS 3D CMS Logo

CSCRecHitValidation.cc
Go to the documentation of this file.
6 
8  : theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
9  the2DValidation(nullptr),
10  theSegmentValidation(nullptr) {
11  the2DValidation = new CSCRecHit2DValidation(ps.getParameter<edm::InputTag>("recHitLabel"), consumesCollector());
12  theSegmentValidation = new CSCSegmentValidation(ps.getParameter<edm::InputTag>("segmentLabel"), consumesCollector());
13  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
14 }
15 
17  delete the2DValidation;
18  delete theSegmentValidation;
19 }
20 
22  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
23 
26 }
27 
28 void CSCRecHitValidation::analyze(const edm::Event &e, const edm::EventSetup &eventSetup) {
30 
31  // find the geometry & conditions for this event
32  const CSCGeometry *theCSCGeometry = &eventSetup.getData(geomToken_);
33 
34  the2DValidation->setGeometry(theCSCGeometry);
36 
37  theSegmentValidation->setGeometry(theCSCGeometry);
39 
40  the2DValidation->analyze(e, eventSetup);
41  theSegmentValidation->analyze(e, eventSetup);
42 }
CSCSegmentValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCSegmentValidation.cc:51
CSCRecHit2DCollection.h
CSCRecHit2DValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: CSCRecHit2DValidation.cc:18
CSCRecHitValidation::theSegmentValidation
CSCSegmentValidation * theSegmentValidation
Definition: CSCRecHitValidation.h:31
CSCSegmentValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &)
Definition: CSCSegmentValidation.cc:12
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
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:21
CSCRecHitValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: CSCRecHitValidation.cc:21
CSCGeometry
Definition: CSCGeometry.h:24
Service.h
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCRecHit2DValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCRecHit2DValidation.cc:45
CSCSegmentValidation
Definition: CSCSegmentValidation.h:11
CSCRecHitValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCRecHitValidation.cc:28
edm::ParameterSet
Definition: ParameterSet.h:47
edm::EventSetup
Definition: EventSetup.h:57
CSCRecHitValidation::CSCRecHitValidation
CSCRecHitValidation(const edm::ParameterSet &)
Definition: CSCRecHitValidation.cc:7
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
CSCRecHitValidation::~CSCRecHitValidation
~CSCRecHitValidation() override
Definition: CSCRecHitValidation.cc:16
CSCRecHitValidation::the2DValidation
CSCRecHit2DValidation * the2DValidation
Definition: CSCRecHitValidation.h:30
CSCRecHitValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCRecHitValidation.h:27
CSCBaseValidation::setSimHitMap
void setSimHitMap(const PSimHitMap *simHitMap)
Definition: CSCBaseValidation.h:22
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
dqm::implementation::IBooker
Definition: DQMStore.h:43
CSCRecHitValidation.h
CSCRecHitValidation::geomToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: CSCRecHitValidation.h:28
ParameterSet.h
edm::Event
Definition: Event.h:73
edm::InputTag
Definition: InputTag.h:15
CSCRecHit2DValidation
Definition: CSCRecHit2DValidation.h:11
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37