CMS 3D CMS Logo

CSCBaseValidation.cc
Go to the documentation of this file.
3 
5 : theInputTag(inputTag),
6  theSimHitMap(nullptr),
7  theCSCGeometry(nullptr)
8 {
9 }
10 
11 const CSCLayer * CSCBaseValidation::findLayer(int detId) const {
12  assert(theCSCGeometry != nullptr);
13  const GeomDetUnit* detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
14  return dynamic_cast<const CSCLayer *>(detUnit);
15 }
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:108
const CSCLayer * findLayer(int detId) const