CMS 3D CMS Logo

List of all members | 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 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 16 of file CSCBaseValidation.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file CSCBaseValidation.cc.

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

Definition at line 19 of file CSCBaseValidation.h.

19 {}

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 11 of file CSCBaseValidation.cc.

References CSCGeometry::idToDetUnit(), and theCSCGeometry.

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

11  {
12  assert(theCSCGeometry != nullptr);
13  const GeomDetUnit* detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
14  return dynamic_cast<const CSCLayer *>(detUnit);
15 }
const CSCGeometry * theCSCGeometry
const GeomDet * idToDetUnit(DetId) const override
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Definition: CSCGeometry.cc:93
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 28 of file CSCBaseValidation.h.

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

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