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  : dbe_( edm::Service<DQMStore>().operator->() ),
16  outputFile_( ps.getParameter<std::string>("outputFile") ),
17  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector()),
18  theCSCGeometry(0),
19  theStripDigiValidation(0),
20  theWireDigiValidation(0),
21  theComparatorDigiValidation(0),
22  theALCTDigiValidation(0),
23  theCLCTDigiValidation(0)
24 {
25  dbe_->setCurrentFolder("MuonCSCDigisV/CSCDigiTask");
26  bool doSim = ps.getParameter<bool>("doSim");
27 
29  ps.getParameter<edm::InputTag>("stripDigiTag"),
31  doSim);
33  ps.getParameter<edm::InputTag>("wireDigiTag"),
35  doSim);
37  ps.getParameter<edm::InputTag>("comparatorDigiTag"),
38  ps.getParameter<edm::InputTag>("stripDigiTag"),
41  ps.getParameter<edm::InputTag>("alctDigiTag"),
44  ps.getParameter<edm::InputTag>("clctDigiTag"),
46 
47  if(doSim)
48  {
49  theStripDigiValidation->setSimHitMap(&theSimHitMap);
52  }
53 }
54 
55 
57 {
58  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
60  delete theWireDigiValidation;
62  delete theALCTDigiValidation;
63  delete theCLCTDigiValidation;
64 }
65 
66 
68  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
69 }
70 
71 
73 {
74  theSimHitMap.fill(e);
75 
76  // find the geometry & conditions for this event
78  eventSetup.get<MuonGeometryRecord>().get( hGeom );
79  const CSCGeometry *pGeom = &*hGeom;
80 
86 
87 
88  theStripDigiValidation->analyze(e,eventSetup);
89  theWireDigiValidation->analyze(e,eventSetup);
90  theComparatorDigiValidation->analyze(e,eventSetup);
91  theALCTDigiValidation->analyze(e,eventSetup);
92  theCLCTDigiValidation->analyze(e,eventSetup);
93 
94 }
95 
96 
97 
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 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)
std::string outputFile_
virtual void endJob()
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
DQMStore * dbe_
void setSimHitMap(const PSimHitMap *simHitMap)
const T & get() const
Definition: EventSetup.h:55
virtual void analyze(const edm::Event &, const edm::EventSetup &)
CSCComparatorDigiValidation * theComparatorDigiValidation
CSCDigiValidation(const edm::ParameterSet &)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
Definition: DQMStore.cc:2490
void analyze(const edm::Event &, const edm::EventSetup &)
CSCCLCTDigiValidation * theCLCTDigiValidation
void analyze(const edm::Event &, const edm::EventSetup &)
CSCWireDigiValidation * theWireDigiValidation
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:655