CMS 3D CMS Logo

Public Member Functions | Protected Member Functions

HHcalDetIdAssociator Class Reference

#include <HcalDetIdAssociator.h>

Inheritance diagram for HHcalDetIdAssociator:
HCaloDetIdAssociator HDetIdAssociator

List of all members.

Public Member Functions

 HHcalDetIdAssociator ()

Protected Member Functions

virtual std::set< DetIdgetASetOfValidDetIds ()

Detailed Description

Definition at line 24 of file HcalDetIdAssociator.h.


Constructor & Destructor Documentation

HHcalDetIdAssociator::HHcalDetIdAssociator ( ) [inline]

Definition at line 26 of file HcalDetIdAssociator.h.

:HCaloDetIdAssociator(72,70,0.087){};

Member Function Documentation

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

Reimplemented from HCaloDetIdAssociator.

Definition at line 28 of file HcalDetIdAssociator.h.

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

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

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

      return setOfValidIds;

   }