CMS 3D CMS Logo

CSCDigiValidation.cc
Go to the documentation of this file.
11 #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)
23 {
28  doSim_);
30  ps.getParameter<edm::InputTag>("stripDigiTag"),
36 
37  if(doSim_)
38  {
42  }
43 }
44 
46 {
48  delete theWireDigiValidation;
50  delete theALCTDigiValidation;
51  delete theCLCTDigiValidation;
52 }
53 
54 void CSCDigiValidation::bookHistograms(DQMStore::IBooker & iBooker, edm::Run const & iRun, edm::EventSetup const & /* iSetup */)
55 {
56  iBooker.setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
62 }
63 
65 {
66  theSimHitMap.fill(e);
67 
68  // find the geometry & conditions for this event
70  eventSetup.get<MuonGeometryRecord>().get( hGeom );
71  const CSCGeometry *pGeom = &*hGeom;
72 
78 
79 
80  theStripDigiValidation->analyze(e,eventSetup);
81  theWireDigiValidation->analyze(e,eventSetup);
82  theComparatorDigiValidation->analyze(e,eventSetup);
83  theALCTDigiValidation->analyze(e,eventSetup);
84  theCLCTDigiValidation->analyze(e,eventSetup);
85 
86 }
87 
88 
89 
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
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 setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:279
void analyze(const edm::Event &, const edm::EventSetup &) override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void bookHistograms(DQMStore::IBooker &)
const T & get() const
Definition: EventSetup.h:58
~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.
CSCCLCTDigiValidation * theCLCTDigiValidation
CSCWireDigiValidation * theWireDigiValidation
Definition: Run.h:43