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")),
15  theCSCGeometry(0),
16  the2DValidation(dbe_, ps.getParameter<edm::InputTag>("recHitLabel") ),
17  theSegmentValidation(dbe_, ps.getParameter<edm::InputTag>("segmentLabel") )
18 {
19 }
20 
21 
23 {
24  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
25 }
26 
27 
29  if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
30 }
31 
32 
34 {
35  theSimHitMap.fill(e);
36 
37  // find the geometry & conditions for this event
39  eventSetup.get<MuonGeometryRecord>().get( hGeom );
40  theCSCGeometry = &*hGeom;
41 
46 
47  the2DValidation.analyze(e, eventSetup);
48  theSegmentValidation.analyze(e, eventSetup);
49 
50 }
void fill(const edm::Event &e)
Definition: PSimHitMap.cc:13
CSCRecHit2DValidation the2DValidation
void setGeometry(const CSCGeometry *geom)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2296
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
virtual void analyze(const edm::Event &, const edm::EventSetup &)
const CSCGeometry * theCSCGeometry
CSCSegmentValidation theSegmentValidation