CMS 3D CMS Logo

CSCRecHitValidation.cc
Go to the documentation of this file.
14 
16 public:
17  explicit CSCRecHitValidation(const edm::ParameterSet &);
18  ~CSCRecHitValidation() override{};
19  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
20  void analyze(const edm::Event &, const edm::EventSetup &) override;
21 
22 private:
25 
26  std::unique_ptr<CSCRecHit2DValidation> the2DValidation;
27  std::unique_ptr<CSCSegmentValidation> theSegmentValidation;
28 };
29 
31 
33  : theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
34  the2DValidation(nullptr),
35  theSegmentValidation(nullptr) {
36  the2DValidation = std::make_unique<CSCRecHit2DValidation>(ps, consumesCollector());
37  theSegmentValidation = std::make_unique<CSCSegmentValidation>(ps, consumesCollector());
38  geomToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
39 }
40 
42  iBooker.setCurrentFolder("CSCRecHitsV/CSCRecHitTask");
43 
44  the2DValidation->bookHistograms(iBooker);
45  theSegmentValidation->bookHistograms(iBooker);
46 }
47 
48 void CSCRecHitValidation::analyze(const edm::Event &e, const edm::EventSetup &eventSetup) {
50 
51  // find the geometry & conditions for this event
52  const CSCGeometry *theCSCGeometry = &eventSetup.getData(geomToken_);
53 
54  the2DValidation->setGeometry(theCSCGeometry);
55  the2DValidation->setSimHitMap(&theSimHitMap);
56 
57  theSegmentValidation->setGeometry(theCSCGeometry);
58  theSegmentValidation->setSimHitMap(&theSimHitMap);
59 
60  the2DValidation->analyze(e, eventSetup);
61  theSegmentValidation->analyze(e, eventSetup);
62 }
CSCSegmentValidation.h
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
CSCRecHitValidation::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: CSCRecHitValidation.cc:41
CSCGeometry
Definition: CSCGeometry.h:24
MakerMacros.h
CSCRecHitValidation::the2DValidation
std::unique_ptr< CSCRecHit2DValidation > the2DValidation
Definition: CSCRecHitValidation.cc:26
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
PSimHitMap.h
Service.h
PSimHitMap::fill
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:5
EDGetToken.h
DQMEDAnalyzer.h
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
CSCRecHitValidation::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: CSCRecHitValidation.cc:48
edm::ParameterSet
Definition: ParameterSet.h:47
CSCRecHit2DValidation.h
Event.h
ModuleDef.h
edm::EventSetup
Definition: EventSetup.h:58
CSCRecHitValidation::CSCRecHitValidation
CSCRecHitValidation(const edm::ParameterSet &)
Definition: CSCRecHitValidation.cc:32
edm::ESGetToken< CSCGeometry, MuonGeometryRecord >
InputTag.h
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
CSCRecHitValidation::~CSCRecHitValidation
~CSCRecHitValidation() override
Definition: CSCRecHitValidation.cc:18
CSCRecHitValidation::theSimHitMap
PSimHitMap theSimHitMap
Definition: CSCRecHitValidation.cc:23
dqm::implementation::IBooker
Definition: DQMStore.h:43
CSCRecHitValidation::geomToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geomToken_
Definition: CSCRecHitValidation.cc:24
ParameterSet.h
MuonGeometryRecord.h
edm::Event
Definition: Event.h:73
CSCRecHitValidation::theSegmentValidation
std::unique_ptr< CSCSegmentValidation > theSegmentValidation
Definition: CSCRecHitValidation.cc:27
CSCRecHitValidation
Definition: CSCRecHitValidation.cc:15
PSimHitMap
Definition: PSimHitMap.h:11
CSCGeometry.h
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37