CMS 3D CMS Logo

CSCBaseValidation.cc
Go to the documentation of this file.
3 
5  : theInputTag(inputTag), theSimHitMap(nullptr), theCSCGeometry(nullptr) {}
6 
7 const CSCLayer *CSCBaseValidation::findLayer(int detId) const {
8  assert(theCSCGeometry != nullptr);
9  const GeomDetUnit *detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
10  return dynamic_cast<const CSCLayer *>(detUnit);
11 }
const CSCGeometry * theCSCGeometry
CSCBaseValidation(const edm::InputTag &inputTag)
#define nullptr
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: CSCGeometry.cc:89
const CSCLayer * findLayer(int detId) const