#include <Calibration/Tools/interface/HcalDetIdAssociator.h>
Public Member Functions | |
HHcalDetIdAssociator () | |
Protected Member Functions | |
virtual std::set< DetId > | getASetOfValidDetIds () |
Definition at line 24 of file HcalDetIdAssociator.h.
HHcalDetIdAssociator::HHcalDetIdAssociator | ( | ) | [inline] |
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(), DetId::Hcal, and it.
00028 { 00029 std::set<DetId> setOfValidIds; 00030 std::vector<DetId> vectOfValidIds = geometry_->getValidDetIds(DetId::Hcal, 1);//HB 00031 for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it) 00032 setOfValidIds.insert(*it); 00033 00034 vectOfValidIds.clear(); 00035 vectOfValidIds = geometry_->getValidDetIds(DetId::Hcal, 2);//HE 00036 for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it) 00037 setOfValidIds.insert(*it); 00038 00039 return setOfValidIds; 00040 00041 }