CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/Validation/MuonCSCDigis/src/CSCBaseValidation.cc

Go to the documentation of this file.
00001 #include "Validation/MuonCSCDigis/interface/CSCBaseValidation.h"
00002 #include "DQMServices/Core/interface/DQMStore.h"
00003 
00004 CSCBaseValidation::CSCBaseValidation(DQMStore* dbe, const edm::InputTag & inputTag)
00005 : dbe_(dbe),
00006   theInputTag(inputTag),
00007   theSimHitMap(0),
00008   theCSCGeometry(0)
00009 {
00010 }
00011 
00012 
00013 const CSCLayer * CSCBaseValidation::findLayer(int detId) const {
00014   assert(theCSCGeometry != 0);
00015   const GeomDetUnit* detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
00016   return dynamic_cast<const CSCLayer *>(detUnit);
00017 }
00018