CMS 3D CMS Logo

CSCDigiValidation.cc
Go to the documentation of this file.
12 #include <iostream>
13 
15  : doSim_(ps.getParameter<bool>("doSim")),
16  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
17  theCSCGeometry(nullptr),
18  theStripDigiValidation(nullptr),
19  theWireDigiValidation(nullptr),
20  theComparatorDigiValidation(nullptr),
21  theALCTDigiValidation(nullptr),
22  theCLCTDigiValidation(nullptr) {
28  ps.getParameter<edm::InputTag>("stripDigiTag"),
32 
33  if (doSim_) {
37  }
38 }
39 
42  delete theWireDigiValidation;
44  delete theALCTDigiValidation;
45  delete theCLCTDigiValidation;
46 }
47 
49  edm::Run const &iRun,
50  edm::EventSetup const & /* iSetup */) {
51  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
57 }
58 
59 void CSCDigiValidation::analyze(const edm::Event &e, const edm::EventSetup &eventSetup) {
60  theSimHitMap.fill(e);
61 
62  // find the geometry & conditions for this event
64  eventSetup.get<MuonGeometryRecord>().get(hGeom);
65  const CSCGeometry *pGeom = &*hGeom;
66 
72 
73  theStripDigiValidation->analyze(e, eventSetup);
74  theWireDigiValidation->analyze(e, eventSetup);
75  theComparatorDigiValidation->analyze(e, eventSetup);
76  theALCTDigiValidation->analyze(e, eventSetup);
77  theCLCTDigiValidation->analyze(e, eventSetup);
78 }
CSCStripDigiValidation * theStripDigiValidation
T getParameter(std::string const &) const
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
void bookHistograms(DQMStore::IBooker &, bool doSim)
void bookHistograms(DQMStore::IBooker &)
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:418
#define nullptr
void setGeometry(const CSCGeometry *geom)
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.
void bookHistograms(DQMStore::IBooker &)
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &)
void setSimHitMap(const PSimHitMap *simHitMap)
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void bookHistograms(DQMStore::IBooker &)
~CSCDigiValidation() override
CSCComparatorDigiValidation * theComparatorDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &e, const edm::EventSetup &) override
CSCDigiValidation(const edm::ParameterSet &)
HLT enums.
T get() const
Definition: EventSetup.h:73
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
Definition: Run.h:45