Validation
MuonCSCDigis
src
CSCBaseValidation.cc
Go to the documentation of this file.
1
#include "
DQMServices/Core/interface/DQMStore.h
"
2
#include "
Validation/MuonCSCDigis/interface/CSCBaseValidation.h
"
3
4
CSCBaseValidation::CSCBaseValidation
(
const
edm::ParameterSet
&ps)
5
: doSim_(ps.getParameter<
bool
>(
"doSim"
)), 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
}
electrons_cff.bool
bool
Definition:
electrons_cff.py:366
GeomDet
Definition:
GeomDet.h:27
cms::cuda::assert
assert(be >=bs)
DQMStore.h
CSCLayer
Definition:
CSCLayer.h:24
CSCBaseValidation::CSCBaseValidation
CSCBaseValidation(const edm::ParameterSet &ps)
Definition:
CSCBaseValidation.cc:4
CSCBaseValidation::findLayer
const CSCLayer * findLayer(int detId) const
Definition:
CSCBaseValidation.cc:7
edm::ParameterSet
Definition:
ParameterSet.h:47
CSCDetId
Definition:
CSCDetId.h:26
CSCBaseValidation.h
CSCBaseValidation::theCSCGeometry
const CSCGeometry * theCSCGeometry
Definition:
CSCBaseValidation.h:29
CSCGeometry::idToDetUnit
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition:
CSCGeometry.cc:89
Generated for CMSSW Reference Manual by
1.8.16