#include <CSCDigiValidation.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
CSCDigiValidation (const edm::ParameterSet &) | |
virtual void | endJob () |
~CSCDigiValidation () | |
Private Attributes | |
DQMStore * | dbe_ |
std::string | outputFile_ |
CSCALCTDigiValidation * | theALCTDigiValidation |
CSCCLCTDigiValidation * | theCLCTDigiValidation |
CSCComparatorDigiValidation * | theComparatorDigiValidation |
CSCGeometry * | theCSCGeometry |
PSimHitMap | theSimHitMap |
CSCStripDigiValidation * | theStripDigiValidation |
CSCWireDigiValidation * | theWireDigiValidation |
Definition at line 20 of file CSCDigiValidation.h.
CSCDigiValidation::CSCDigiValidation | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 14 of file CSCDigiValidation.cc.
References dbe_, edm::ParameterSet::getParameter(), DQMStore::setCurrentFolder(), CSCBaseValidation::setSimHitMap(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.
: dbe_( edm::Service<DQMStore>().operator->() ), outputFile_( ps.getParameter<std::string>("outputFile") ), theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")), theCSCGeometry(0), theStripDigiValidation(0), theWireDigiValidation(0), theComparatorDigiValidation(0), theALCTDigiValidation(0), theCLCTDigiValidation(0) { dbe_->setCurrentFolder("MuonCSCDigisV/CSCDigiTask"); bool doSim = ps.getParameter<bool>("doSim"); theStripDigiValidation = new CSCStripDigiValidation(dbe_, ps.getParameter<edm::InputTag>("stripDigiTag"), doSim); theWireDigiValidation = new CSCWireDigiValidation(dbe_, ps.getParameter<edm::InputTag>("wireDigiTag"), doSim); theComparatorDigiValidation = new CSCComparatorDigiValidation(dbe_, ps.getParameter<edm::InputTag>("comparatorDigiTag"), ps.getParameter<edm::InputTag>("stripDigiTag")); theALCTDigiValidation = new CSCALCTDigiValidation(dbe_, ps.getParameter<edm::InputTag>("alctDigiTag")); theCLCTDigiValidation = new CSCCLCTDigiValidation(dbe_, ps.getParameter<edm::InputTag>("clctDigiTag")); if(doSim) { theStripDigiValidation->setSimHitMap(&theSimHitMap); theWireDigiValidation->setSimHitMap(&theSimHitMap); theComparatorDigiValidation->setSimHitMap(&theSimHitMap); } }
CSCDigiValidation::~CSCDigiValidation | ( | ) |
Definition at line 46 of file CSCDigiValidation.cc.
References dbe_, outputFile_, DQMStore::save(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.
{ if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_); delete theStripDigiValidation; delete theWireDigiValidation; delete theComparatorDigiValidation; delete theALCTDigiValidation; delete theCLCTDigiValidation; }
void CSCDigiValidation::analyze | ( | const edm::Event & | e, |
const edm::EventSetup & | eventSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 62 of file CSCDigiValidation.cc.
References CSCComparatorDigiValidation::analyze(), CSCCLCTDigiValidation::analyze(), CSCWireDigiValidation::analyze(), CSCALCTDigiValidation::analyze(), CSCStripDigiValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCStripDigiValidation::setGeometry(), theALCTDigiValidation, theCLCTDigiValidation, theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.
{ theSimHitMap.fill(e); // find the geometry & conditions for this event edm::ESHandle<CSCGeometry> hGeom; eventSetup.get<MuonGeometryRecord>().get( hGeom ); const CSCGeometry *pGeom = &*hGeom; theStripDigiValidation->setGeometry( pGeom ); theWireDigiValidation->setGeometry( pGeom ); theComparatorDigiValidation->setGeometry( pGeom ); theALCTDigiValidation->setGeometry( pGeom ); theCLCTDigiValidation->setGeometry( pGeom ); theStripDigiValidation->analyze(e,eventSetup); theWireDigiValidation->analyze(e,eventSetup); theComparatorDigiValidation->analyze(e,eventSetup); theALCTDigiValidation->analyze(e,eventSetup); theCLCTDigiValidation->analyze(e,eventSetup); }
void CSCDigiValidation::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 57 of file CSCDigiValidation.cc.
References dbe_, outputFile_, and DQMStore::save().
{ if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_); }
DQMStore* CSCDigiValidation::dbe_ [private] |
Definition at line 29 of file CSCDigiValidation.h.
Referenced by CSCDigiValidation(), endJob(), and ~CSCDigiValidation().
std::string CSCDigiValidation::outputFile_ [private] |
Definition at line 30 of file CSCDigiValidation.h.
Referenced by endJob(), and ~CSCDigiValidation().
Definition at line 37 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
Definition at line 38 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
Definition at line 36 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
CSCGeometry* CSCDigiValidation::theCSCGeometry [private] |
Definition at line 32 of file CSCDigiValidation.h.
PSimHitMap CSCDigiValidation::theSimHitMap [private] |
Definition at line 31 of file CSCDigiValidation.h.
Referenced by analyze(), and CSCDigiValidation().
Definition at line 34 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
Definition at line 35 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().