#include <TrackingTools/TrackAssociator/interface/EcalDetIdAssociator.h>
Public Member Functions | |
EcalDetIdAssociator (const edm::ParameterSet &pSet) | |
EcalDetIdAssociator () | |
Protected Member Functions | |
virtual std::set< DetId > | getASetOfValidDetIds () const |
Definition at line 24 of file EcalDetIdAssociator.h.
EcalDetIdAssociator::EcalDetIdAssociator | ( | ) | [inline] |
EcalDetIdAssociator::EcalDetIdAssociator | ( | const edm::ParameterSet & | pSet | ) | [inline] |
virtual std::set<DetId> EcalDetIdAssociator::getASetOfValidDetIds | ( | ) | const [inline, protected, virtual] |
Reimplemented from CaloDetIdAssociator.
Definition at line 32 of file EcalDetIdAssociator.h.
References DetId::Ecal, CaloDetIdAssociator::geometry_, CaloGeometry::getValidDetIds(), and it.
00032 { 00033 std::set<DetId> setOfValidIds; 00034 std::vector<DetId> vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 1);//EB 00035 for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it) 00036 setOfValidIds.insert(*it); 00037 00038 vectOfValidIds.clear(); 00039 vectOfValidIds = geometry_->getValidDetIds(DetId::Ecal, 2);//EE 00040 for(std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it) 00041 setOfValidIds.insert(*it); 00042 00043 return setOfValidIds; 00044 };