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 (DQMStore *dbe, 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

DQMStoredbe_
 
const CSCGeometrytheCSCGeometry
 
edm::InputTag theInputTag
 
const PSimHitMaptheSimHitMap
 

Detailed Description

Definition at line 16 of file CSCBaseValidation.h.

Constructor & Destructor Documentation

CSCBaseValidation::CSCBaseValidation ( DQMStore dbe,
const edm::InputTag inputTag 
)

Definition at line 4 of file CSCBaseValidation.cc.

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

Definition at line 20 of file CSCBaseValidation.h.

20 {}

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

References CSCDetId, CSCGeometry::idToDetUnit(), and theCSCGeometry.

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

13  {
14  assert(theCSCGeometry != 0);
15  const GeomDetUnit* detUnit = theCSCGeometry->idToDetUnit(CSCDetId(detId));
16  return dynamic_cast<const CSCLayer *>(detUnit);
17 }
const CSCGeometry * theCSCGeometry
virtual const GeomDetUnit * idToDetUnit(DetId) const
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 23 of file CSCBaseValidation.h.

References theSimHitMap.

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

23 {theSimHitMap = simHitMap;}
const PSimHitMap * theSimHitMap

Member Data Documentation

DQMStore* CSCBaseValidation::dbe_
protected
const CSCGeometry* CSCBaseValidation::theCSCGeometry
protected

Definition at line 33 of file CSCBaseValidation.h.

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

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