CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

EcalDetIdAssociator Class Reference

#include <EcalDetIdAssociator.h>

Inheritance diagram for EcalDetIdAssociator:
CaloDetIdAssociator DetIdAssociator

List of all members.

Public Member Functions

 EcalDetIdAssociator ()
 EcalDetIdAssociator (const edm::ParameterSet &pSet)
virtual const char * name () const

Protected Member Functions

virtual const unsigned int getNumberOfSubdetectors () const
virtual const std::vector
< DetId > & 
getValidDetIds (unsigned int subDetectorIndex) const

Detailed Description

Definition at line 24 of file EcalDetIdAssociator.h.


Constructor & Destructor Documentation

EcalDetIdAssociator::EcalDetIdAssociator ( ) [inline]

Definition at line 26 of file EcalDetIdAssociator.h.

:CaloDetIdAssociator(360,300,0.02){};
EcalDetIdAssociator::EcalDetIdAssociator ( const edm::ParameterSet pSet) [inline]

Definition at line 28 of file EcalDetIdAssociator.h.


Member Function Documentation

virtual const unsigned int EcalDetIdAssociator::getNumberOfSubdetectors ( ) const [inline, protected, virtual]

Reimplemented from DetIdAssociator.

Definition at line 34 of file EcalDetIdAssociator.h.

{ return 2;}
virtual const std::vector<DetId>& EcalDetIdAssociator::getValidDetIds ( unsigned int  subDetectorIndex) const [inline, protected, virtual]

Reimplemented from CaloDetIdAssociator.

Definition at line 35 of file EcalDetIdAssociator.h.

References DetId::Ecal, EcalBarrel, EcalEndcap, CaloDetIdAssociator::geometry_, and CaloGeometry::getValidDetIds().

                                                                                       {
     if ( subDetectorIndex == 0 )
       return geometry_->getValidDetIds(DetId::Ecal, EcalBarrel);//EB
     else
       return geometry_->getValidDetIds(DetId::Ecal, EcalEndcap);//EE
   };
virtual const char* EcalDetIdAssociator::name ( void  ) const [inline, virtual]

Reimplemented from CaloDetIdAssociator.

Definition at line 30 of file EcalDetIdAssociator.h.

{ return "ECAL"; }