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) {
24  new CSCStripDigiValidation(ps.getParameter<edm::InputTag>("stripDigiTag"), consumesCollector());
26  new CSCWireDigiValidation(ps.getParameter<edm::InputTag>("wireDigiTag"), consumesCollector(), doSim_);
28  ps.getParameter<edm::InputTag>("stripDigiTag"),
29  consumesCollector());
30  theALCTDigiValidation = new CSCALCTDigiValidation(ps.getParameter<edm::InputTag>("alctDigiTag"), consumesCollector());
31  theCLCTDigiValidation = new CSCCLCTDigiValidation(ps.getParameter<edm::InputTag>("clctDigiTag"), consumesCollector());
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 &)
#define nullptr
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
void analyze(const edm::Event &, const edm::EventSetup &) override
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
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:71
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
Definition: Run.h:45