Main Page
Namespaces
Classes
Package Documentation
Validation
MuonCSCDigis
src
CSCBaseValidation.cc
Go to the documentation of this file.
1
#include "
Validation/MuonCSCDigis/interface/CSCBaseValidation.h
"
2
#include "
DQMServices/Core/interface/DQMStore.h
"
3
4
CSCBaseValidation::CSCBaseValidation
(
const
edm::InputTag
&
inputTag
)
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
}
CSCBaseValidation.h
CSCBaseValidation::theCSCGeometry
const CSCGeometry * theCSCGeometry
Definition:
CSCBaseValidation.h:28
HiClusterCompatibility_cfi.inputTag
inputTag
Definition:
HiClusterCompatibility_cfi.py:4
CSCDetId
Definition:
CSCDetId.h:26
CSCBaseValidation::CSCBaseValidation
CSCBaseValidation(const edm::InputTag &inputTag)
Definition:
CSCBaseValidation.cc:4
GeomDet
Definition:
GeomDet.h:29
nullptr
#define nullptr
DQMStore.h
CSCLayer
Definition:
CSCLayer.h:24
CSCGeometry::idToDetUnit
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition:
CSCGeometry.cc:108
edm::InputTag
Definition:
InputTag.h:15
CSCBaseValidation::findLayer
const CSCLayer * findLayer(int detId) const
Definition:
CSCBaseValidation.cc:11
Generated for CMSSW Reference Manual by
1.8.11