CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CSCBaseValidation Class Referenceabstract

#include <CSCBaseValidation.h>

Inheritance diagram for CSCBaseValidation:
CSCALCTDigiValidation CSCCLCTDigiValidation CSCComparatorDigiValidation CSCRecHit2DValidation CSCSegmentValidation CSCStripDigiValidation CSCWireDigiValidation

Public Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Public Member Functions

virtual void analyze (const edm::Event &e, const edm::EventSetup &eventSetup)=0
 
 CSCBaseValidation (const edm::InputTag &inputTag)
 
void setGeometry (const CSCGeometry *geom)
 
void setSimHitMap (const PSimHitMap *simHitMap)
 
virtual ~CSCBaseValidation ()
 

Protected Member Functions

const CSCLayerfindLayer (int detId) const
 

Protected Attributes

const CSCGeometrytheCSCGeometry
 
edm::InputTag theInputTag
 
const PSimHitMaptheSimHitMap
 

Detailed Description

Definition at line 14 of file CSCBaseValidation.h.

Member Typedef Documentation

◆ DQMStore

Definition at line 16 of file CSCBaseValidation.h.

◆ MonitorElement

Definition at line 17 of file CSCBaseValidation.h.

Constructor & Destructor Documentation

◆ CSCBaseValidation()

CSCBaseValidation::CSCBaseValidation ( const edm::InputTag inputTag)

Definition at line 4 of file CSCBaseValidation.cc.

5  : theInputTag(inputTag), theSimHitMap(nullptr), theCSCGeometry(nullptr) {}

◆ ~CSCBaseValidation()

virtual CSCBaseValidation::~CSCBaseValidation ( )
inlinevirtual

Definition at line 20 of file CSCBaseValidation.h.

20 {}

Member Function Documentation

◆ analyze()

virtual void CSCBaseValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
)
pure virtual

◆ findLayer()

const CSCLayer * CSCBaseValidation::findLayer ( int  detId) const
protected

Definition at line 7 of file CSCBaseValidation.cc.

7  {
8  assert(theCSCGeometry != nullptr);
9  const GeomDetUnit *detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
10  return dynamic_cast<const CSCLayer *>(detUnit);
11 }

References cms::cuda::assert(), CSCGeometry::idToDetUnit(), and theCSCGeometry.

Referenced by CSCRecHit2DValidation::analyze(), CSCWireDigiValidation::analyze(), CSCSegmentValidation::analyze(), and CSCComparatorDigiValidation::analyze().

◆ setGeometry()

void CSCBaseValidation::setGeometry ( const CSCGeometry geom)
inline

Definition at line 21 of file CSCBaseValidation.h.

21 { theCSCGeometry = geom; }

References relativeConstraints::geom, and theCSCGeometry.

Referenced by CSCRecHitValidation::analyze().

◆ setSimHitMap()

void CSCBaseValidation::setSimHitMap ( const PSimHitMap simHitMap)
inline

Definition at line 22 of file CSCBaseValidation.h.

22 { theSimHitMap = simHitMap; }

References theSimHitMap.

Referenced by CSCRecHitValidation::analyze().

Member Data Documentation

◆ theCSCGeometry

const CSCGeometry* CSCBaseValidation::theCSCGeometry
protected

Definition at line 29 of file CSCBaseValidation.h.

Referenced by findLayer(), CSCStripDigiValidation::setGeometry(), and setGeometry().

◆ theInputTag

edm::InputTag CSCBaseValidation::theInputTag
protected

◆ theSimHitMap

const PSimHitMap* CSCBaseValidation::theSimHitMap
protected
GeomDet
Definition: GeomDet.h:27
CSCBaseValidation::theInputTag
edm::InputTag theInputTag
Definition: CSCBaseValidation.h:27
cms::cuda::assert
assert(be >=bs)
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CSCBaseValidation::theSimHitMap
const PSimHitMap * theSimHitMap
Definition: CSCBaseValidation.h:28
CSCDetId
Definition: CSCDetId.h:26
SimL1EmulatorRepack_Full_cff.inputTag
inputTag
Definition: SimL1EmulatorRepack_Full_cff.py:56
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