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")),
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 
31  ps.getParameter<edm::InputTag>("comparatorDigiTag"),
32  ps.getParameter<edm::InputTag>("stripDigiTag"));
35 
36  if(doSim)
37  {
38  theStripDigiValidation->setSimHitMap(&theSimHitMap);
41  }
42 
43 }
44 
45 
47 {
48  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
50  delete theWireDigiValidation;
52  delete theALCTDigiValidation;
53  delete theCLCTDigiValidation;
54 }
55 
56 
58  if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_);
59 }
60 
61 
63 {
64  theSimHitMap.fill(e);
65 
66  // find the geometry & conditions for this event
68  eventSetup.get<MuonGeometryRecord>().get( hGeom );
69  const CSCGeometry *pGeom = &*hGeom;
70 
76 
77 
78  theStripDigiValidation->analyze(e,eventSetup);
79  theWireDigiValidation->analyze(e,eventSetup);
80  theComparatorDigiValidation->analyze(e,eventSetup);
81  theALCTDigiValidation->analyze(e,eventSetup);
82  theCLCTDigiValidation->analyze(e,eventSetup);
83 
84 }
85 
86 
87 
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:13
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2113
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()
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 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:429