CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(0),
18  theStripDigiValidation(0),
19  theWireDigiValidation(0),
20  theComparatorDigiValidation(0),
21  theALCTDigiValidation(0),
22  theCLCTDigiValidation(0)
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
void analyze(const edm::Event &, const edm::EventSetup &)
CSCALCTDigiValidation * theALCTDigiValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
void bookHistograms(DQMStore::IBooker &, bool doSim)
void bookHistograms(DQMStore::IBooker &)
void analyze(const edm::Event &, const edm::EventSetup &)
void analyze(const edm::Event &e, const edm::EventSetup &)
void setGeometry(const CSCGeometry *geom)
void setGeometry(const CSCGeometry *geom)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void bookHistograms(DQMStore::IBooker &)
void bookHistograms(DQMStore::IBooker &)
void setSimHitMap(const PSimHitMap *simHitMap)
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:274
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void bookHistograms(DQMStore::IBooker &)
const T & get() const
Definition: EventSetup.h:55
virtual void analyze(const edm::Event &, const edm::EventSetup &)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCDigiValidation(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &)
CSCCLCTDigiValidation * theCLCTDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCWireDigiValidation * theWireDigiValidation
Definition: Run.h:41