CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(0),
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 assert(), CSCDetId, CSCGeometry::idToDetUnit(), and theCSCGeometry.

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

11  {
12  assert(theCSCGeometry != 0);
13  const GeomDetUnit* detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
14  return dynamic_cast<const CSCLayer *>(detUnit);
15 }
const CSCGeometry * theCSCGeometry
assert(m_qm.get())
virtual const GeomDetUnit * 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

Definition at line 21 of file CSCBaseValidation.h.

References theSimHitMap.

Referenced by CSCRecHitValidation::analyze(), and CSCDigiValidation::CSCDigiValidation().

21 {theSimHitMap = simHitMap;}
const PSimHitMap * theSimHitMap

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