CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

HEcalDetIdAssociator Class Reference

#include <EcalDetIdAssociator.h>

Inheritance diagram for HEcalDetIdAssociator:
HCaloDetIdAssociator HDetIdAssociator

List of all members.

Public Member Functions

 HEcalDetIdAssociator ()

Protected Member Functions

virtual std::set< DetIdgetASetOfValidDetIds ()

Detailed Description

Definition at line 22 of file EcalDetIdAssociator.h.


Constructor & Destructor Documentation

HEcalDetIdAssociator::HEcalDetIdAssociator ( ) [inline]

Definition at line 24 of file EcalDetIdAssociator.h.

:HCaloDetIdAssociator(180,150,0.04){};

Member Function Documentation

virtual std::set<DetId> HEcalDetIdAssociator::getASetOfValidDetIds ( ) [inline, protected, virtual]

Reimplemented from HCaloDetIdAssociator.

Definition at line 26 of file EcalDetIdAssociator.h.

References DetId::Ecal, HCaloDetIdAssociator::geometry_, and CaloGeometry::getValidDetIds().

                                               {
      std::set<DetId> setOfValidIds;
      const std::vector<DetId>& vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 1);//EB
      for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
         setOfValidIds.insert(*it);

//      vectOfValidIds.clear();
      const std::vector<DetId>& vectOfValidIdsEE = geometry_->getValidDetIds(DetId::Ecal, 2);//EE
      for(std::vector<DetId>::const_iterator it = vectOfValidIdsEE.begin(); it != vectOfValidIdsEE.end(); ++it)
         setOfValidIds.insert(*it);

      return setOfValidIds;

   }