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 15 of file CSCBaseValidation.h.

Member Typedef Documentation

Definition at line 17 of file CSCBaseValidation.h.

Definition at line 18 of file CSCBaseValidation.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file CSCBaseValidation.cc.

5  : theInputTag(inputTag), theSimHitMap(nullptr), theCSCGeometry(nullptr) {}
edm::InputTag theInputTag
const CSCGeometry * theCSCGeometry
const PSimHitMap * theSimHitMap
virtual CSCBaseValidation::~CSCBaseValidation ( )
inlinevirtual

Definition at line 21 of file CSCBaseValidation.h.

21 {}

Member Function Documentation

virtual void CSCBaseValidation::analyze ( const edm::Event e,
const edm::EventSetup eventSetup 
)
pure virtual
const CSCLayer * CSCBaseValidation::findLayer ( int  detId) const
protected

Definition at line 7 of file CSCBaseValidation.cc.

References CSCGeometry::idToDetUnit(), and theCSCGeometry.

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

7  {
8  assert(theCSCGeometry != nullptr);
9  const GeomDetUnit *detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
10  return dynamic_cast<const CSCLayer *>(detUnit);
11 }
const CSCGeometry * theCSCGeometry
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: CSCGeometry.cc:89
void CSCBaseValidation::setGeometry ( const CSCGeometry geom)
inline
void CSCBaseValidation::setSimHitMap ( const PSimHitMap simHitMap)
inline

Member Data Documentation

const CSCGeometry* CSCBaseValidation::theCSCGeometry
protected

Definition at line 30 of file CSCBaseValidation.h.

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

edm::InputTag CSCBaseValidation::theInputTag
protected
const PSimHitMap* CSCBaseValidation::theSimHitMap
protected