CMS 3D CMS Logo

CSCRecHitValidation Class Reference

#include <Validation/CSCRecHits/src/CSCRecHitValidation.h>

Inheritance diagram for CSCRecHitValidation:

edm::EDAnalyzer

List of all members.

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob (const edm::EventSetup &)
 CSCRecHitValidation (const edm::ParameterSet &)
virtual void endJob ()
 ~CSCRecHitValidation ()

Private Attributes

DQMStoredbe_
CSCRecHit2DValidation the2DValidation
const CSCGeometrytheCSCGeometry
std::string theOutputFile
CSCSegmentValidation theSegmentValidation
PSimHitMap theSimHitMap


Detailed Description

Definition at line 19 of file CSCRecHitValidation.h.


Constructor & Destructor Documentation

CSCRecHitValidation::CSCRecHitValidation ( const edm::ParameterSet ps  )  [explicit]

Definition at line 10 of file CSCRecHitValidation.cc.

00011 : dbe_( edm::Service<DQMStore>().operator->() ),
00012   theOutputFile( ps.getParameter<std::string>("outputFile") ),
00013   theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")),
00014   theCSCGeometry(0),
00015   the2DValidation(dbe_, ps.getParameter<edm::InputTag>("recHitLabel") ),
00016   theSegmentValidation(dbe_, ps.getParameter<edm::InputTag>("segmentLabel") )
00017 {
00018 }

CSCRecHitValidation::~CSCRecHitValidation (  ) 

Definition at line 21 of file CSCRecHitValidation.cc.

References dbe_, DQMStore::save(), and theOutputFile.

00022 {
00023   if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
00024 }


Member Function Documentation

void CSCRecHitValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 32 of file CSCRecHitValidation.cc.

References CSCSegmentValidation::analyze(), CSCRecHit2DValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCBaseValidation::setSimHitMap(), the2DValidation, theCSCGeometry, theSegmentValidation, and theSimHitMap.

00033 {
00034   theSimHitMap.fill(e);
00035 
00036   // find the geometry & conditions for this event
00037   edm::ESHandle<CSCGeometry> hGeom;
00038   eventSetup.get<MuonGeometryRecord>().get( hGeom );
00039   theCSCGeometry = &*hGeom;
00040 
00041   the2DValidation.setGeometry(theCSCGeometry);
00042   the2DValidation.setSimHitMap(&theSimHitMap);
00043   theSegmentValidation.setGeometry(theCSCGeometry);
00044   theSegmentValidation.setSimHitMap(&theSimHitMap);
00045 
00046   the2DValidation.analyze(e, eventSetup);
00047   theSegmentValidation.analyze(e, eventSetup);
00048 
00049 }

virtual void CSCRecHitValidation::beginJob ( const edm::EventSetup  )  [inline, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 24 of file CSCRecHitValidation.h.

00024 {} 

void CSCRecHitValidation::endJob ( void   )  [virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 27 of file CSCRecHitValidation.cc.

References dbe_, DQMStore::save(), and theOutputFile.

00027                                  {
00028   if ( theOutputFile.size() != 0 && dbe_ ) dbe_->save(theOutputFile);
00029 }


Member Data Documentation

DQMStore* CSCRecHitValidation::dbe_ [private]

Definition at line 30 of file CSCRecHitValidation.h.

Referenced by endJob(), and ~CSCRecHitValidation().

CSCRecHit2DValidation CSCRecHitValidation::the2DValidation [private]

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().

CSCSegmentValidation CSCRecHitValidation::theSegmentValidation [private]

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:24 2009 for CMSSW by  doxygen 1.5.4