#include <CSCRecHitValidation.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
CSCRecHitValidation (const edm::ParameterSet &) | |
virtual void | endJob () |
~CSCRecHitValidation () | |
Private Attributes | |
DQMStore * | dbe_ |
CSCRecHit2DValidation | the2DValidation |
const CSCGeometry * | theCSCGeometry |
std::string | theOutputFile |
CSCSegmentValidation | theSegmentValidation |
PSimHitMap | theSimHitMap |
Definition at line 19 of file CSCRecHitValidation.h.
CSCRecHitValidation::CSCRecHitValidation | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 11 of file CSCRecHitValidation.cc.
: dbe_( edm::Service<DQMStore>().operator->() ), theOutputFile( ps.getParameter<std::string>("outputFile") ), theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")), theCSCGeometry(0), the2DValidation(dbe_, ps.getParameter<edm::InputTag>("recHitLabel") ), theSegmentValidation(dbe_, ps.getParameter<edm::InputTag>("segmentLabel") ) { }
CSCRecHitValidation::~CSCRecHitValidation | ( | ) |
Definition at line 22 of file CSCRecHitValidation.cc.
References dbe_, DQMStore::save(), and theOutputFile.
{ if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile); }
void CSCRecHitValidation::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 33 of file CSCRecHitValidation.cc.
References CSCSegmentValidation::analyze(), CSCRecHit2DValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCBaseValidation::setSimHitMap(), the2DValidation, theCSCGeometry, theSegmentValidation, and theSimHitMap.
{ theSimHitMap.fill(e); // find the geometry & conditions for this event edm::ESHandle<CSCGeometry> hGeom; eventSetup.get<MuonGeometryRecord>().get( hGeom ); theCSCGeometry = &*hGeom; the2DValidation.setGeometry(theCSCGeometry); the2DValidation.setSimHitMap(&theSimHitMap); theSegmentValidation.setGeometry(theCSCGeometry); theSegmentValidation.setSimHitMap(&theSimHitMap); the2DValidation.analyze(e, eventSetup); theSegmentValidation.analyze(e, eventSetup); }
virtual void CSCRecHitValidation::beginJob | ( | void | ) | [inline, virtual] |
void CSCRecHitValidation::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 28 of file CSCRecHitValidation.cc.
References dbe_, DQMStore::save(), and theOutputFile.
{ if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile); }
DQMStore* CSCRecHitValidation::dbe_ [private] |
Definition at line 30 of file CSCRecHitValidation.h.
Referenced by endJob(), and ~CSCRecHitValidation().
Definition at line 35 of file CSCRecHitValidation.h.
Referenced by analyze().
const CSCGeometry* CSCRecHitValidation::theCSCGeometry [private] |
Definition at line 33 of file CSCRecHitValidation.h.
Referenced by analyze().
std::string CSCRecHitValidation::theOutputFile [private] |
Definition at line 31 of file CSCRecHitValidation.h.
Referenced by endJob(), and ~CSCRecHitValidation().
Definition at line 36 of file CSCRecHitValidation.h.
Referenced by analyze().
PSimHitMap CSCRecHitValidation::theSimHitMap [private] |
Definition at line 32 of file CSCRecHitValidation.h.
Referenced by analyze().