#include <Validation/MuonCSCDigis/src/CSCDigiValidation.h>
Public Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob (const edm::EventSetup &) |
CSCDigiValidation (const edm::ParameterSet &) | |
virtual void | endJob () |
~CSCDigiValidation () | |
Private Attributes | |
DQMStore * | dbe_ |
std::string | outputFile_ |
CSCComparatorDigiValidation * | theComparatorDigiValidation |
CSCGeometry * | theCSCGeometry |
PSimHitMap | theSimHitMap |
CSCStripDigiValidation * | theStripDigiValidation |
CSCWireDigiValidation * | theWireDigiValidation |
Definition at line 18 of file CSCDigiValidation.h.
CSCDigiValidation::CSCDigiValidation | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 13 of file CSCDigiValidation.cc.
References dbe_, edm::ParameterSet::getParameter(), DQMStore::setCurrentFolder(), CSCBaseValidation::setSimHitMap(), theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.
00014 : dbe_( edm::Service<DQMStore>().operator->() ), 00015 outputFile_( ps.getParameter<std::string>("outputFile") ), 00016 theSimHitMap(ps.getParameter<edm::InputTag>("simHitsTag")), 00017 theCSCGeometry(0), 00018 theStripDigiValidation(0), 00019 theWireDigiValidation(0), 00020 theComparatorDigiValidation(0) 00021 { 00022 dbe_->setCurrentFolder("MuonCSCDigisV/CSCDigiTask"); 00023 bool doSim = ps.getParameter<bool>("doSim"); 00024 00025 theStripDigiValidation = new CSCStripDigiValidation(dbe_, ps.getParameter<edm::InputTag>("stripDigiTag"), doSim); 00026 theWireDigiValidation = new CSCWireDigiValidation(dbe_, ps.getParameter<edm::InputTag>("wireDigiTag"), doSim); 00027 theComparatorDigiValidation = new CSCComparatorDigiValidation(dbe_, 00028 ps.getParameter<edm::InputTag>("comparatorDigiTag"), 00029 ps.getParameter<edm::InputTag>("stripDigiTag")); 00030 00031 00032 if(doSim) 00033 { 00034 theStripDigiValidation->setSimHitMap(&theSimHitMap); 00035 theWireDigiValidation->setSimHitMap(&theSimHitMap); 00036 theComparatorDigiValidation->setSimHitMap(&theSimHitMap); 00037 } 00038 00039 }
CSCDigiValidation::~CSCDigiValidation | ( | ) |
Definition at line 42 of file CSCDigiValidation.cc.
References dbe_, outputFile_, DQMStore::save(), theComparatorDigiValidation, theStripDigiValidation, and theWireDigiValidation.
00043 { 00044 if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_); 00045 delete theStripDigiValidation; 00046 delete theWireDigiValidation; 00047 delete theComparatorDigiValidation; 00048 }
void CSCDigiValidation::analyze | ( | const edm::Event & | e, | |
const edm::EventSetup & | eventSetup | |||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 56 of file CSCDigiValidation.cc.
References CSCComparatorDigiValidation::analyze(), CSCWireDigiValidation::analyze(), CSCStripDigiValidation::analyze(), PSimHitMap::fill(), edm::EventSetup::get(), CSCBaseValidation::setGeometry(), CSCStripDigiValidation::setGeometry(), theComparatorDigiValidation, theSimHitMap, theStripDigiValidation, and theWireDigiValidation.
00057 { 00058 theSimHitMap.fill(e); 00059 00060 // find the geometry & conditions for this event 00061 edm::ESHandle<CSCGeometry> hGeom; 00062 eventSetup.get<MuonGeometryRecord>().get( hGeom ); 00063 const CSCGeometry *pGeom = &*hGeom; 00064 00065 theStripDigiValidation->setGeometry( pGeom ); 00066 theWireDigiValidation->setGeometry( pGeom ); 00067 theComparatorDigiValidation->setGeometry( pGeom ); 00068 00069 theStripDigiValidation->analyze(e,eventSetup); 00070 theWireDigiValidation->analyze(e,eventSetup); 00071 theComparatorDigiValidation->analyze(e,eventSetup); 00072 }
virtual void CSCDigiValidation::beginJob | ( | const edm::EventSetup & | ) | [inline, virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 51 of file CSCDigiValidation.cc.
References dbe_, outputFile_, and DQMStore::save().
00051 { 00052 if ( outputFile_.size() != 0 && dbe_ ) dbe_->save(outputFile_); 00053 }
DQMStore* CSCDigiValidation::dbe_ [private] |
Definition at line 28 of file CSCDigiValidation.h.
Referenced by CSCDigiValidation(), endJob(), and ~CSCDigiValidation().
std::string CSCDigiValidation::outputFile_ [private] |
Definition at line 29 of file CSCDigiValidation.h.
Referenced by endJob(), and ~CSCDigiValidation().
Definition at line 35 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
CSCGeometry* CSCDigiValidation::theCSCGeometry [private] |
Definition at line 31 of file CSCDigiValidation.h.
PSimHitMap CSCDigiValidation::theSimHitMap [private] |
Definition at line 30 of file CSCDigiValidation.h.
Referenced by analyze(), and CSCDigiValidation().
Definition at line 33 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().
Definition at line 34 of file CSCDigiValidation.h.
Referenced by analyze(), CSCDigiValidation(), and ~CSCDigiValidation().