CMS 3D CMS Logo

HEcalDetIdAssociator Class Reference

#include <Calibration/Tools/interface/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.

00024 :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_, CaloGeometry::getValidDetIds(), and it.

00026                                                {
00027       std::set<DetId> setOfValidIds;
00028       std::vector<DetId> vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 1);//EB
00029       for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
00030          setOfValidIds.insert(*it);
00031 
00032       vectOfValidIds.clear();
00033       vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 2);//EE
00034       for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
00035          setOfValidIds.insert(*it);
00036 
00037       return setOfValidIds;
00038 
00039    }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:24:09 2009 for CMSSW by  doxygen 1.5.4