#include <Calibration/Tools/interface/EcalDetIdAssociator.h>
Public Member Functions | |
HEcalDetIdAssociator () | |
Protected Member Functions | |
virtual std::set< DetId > | getASetOfValidDetIds () |
Definition at line 22 of file EcalDetIdAssociator.h.
HEcalDetIdAssociator::HEcalDetIdAssociator | ( | ) | [inline] |
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 }