CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCRecHitValidation.cc
Go to the documentation of this file.
8 
9 
10 
12 : dbe_( edm::Service<DQMStore>().operator->() ),
13  theOutputFile( ps.getParameter<std::string>("outputFile") ),
14  theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag"), consumesCollector() ),
15  theCSCGeometry(0),
16  the2DValidation(0),
17  theSegmentValidation(0)
18 {
21 }
22 
23 
25 {
26  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
27  delete the2DValidation;
28  delete theSegmentValidation;
29 }
30 
31 
33  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
34 }
35 
36 
38 {
39  theSimHitMap.fill(e);
40 
41  // find the geometry & conditions for this event
43  eventSetup.get<MuonGeometryRecord>().get( hGeom );
44  theCSCGeometry = &*hGeom;
45 
48 
51 
52  the2DValidation->analyze(e, eventSetup);
53  theSegmentValidation->analyze(e, eventSetup);
54 
55 }
T getParameter(std::string const &) const
CSCRecHit2DValidation * the2DValidation
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:4
CSCSegmentValidation * theSegmentValidation
void setGeometry(const CSCGeometry *geom)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
CSCRecHitValidation(const edm::ParameterSet &)
DQMStore * dbe_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void setSimHitMap(const PSimHitMap *simHitMap)
const T & get() const
Definition: EventSetup.h:55
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:2485
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const CSCGeometry * theCSCGeometry