File indexing completed on 2024-04-06 11:59:28
0001 #ifndef HTrackAssociator_HHcalDetIdAssociator_h
0002 #define HTrackAssociator_HHcalDetIdAssociator_h 1
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "Calibration/Tools/interface/CaloDetIdAssociator.h"
0023
0024 class HHcalDetIdAssociator : public HCaloDetIdAssociator {
0025 public:
0026 HHcalDetIdAssociator() : HCaloDetIdAssociator(72, 70, 0.087){};
0027
0028 protected:
0029 std::set<DetId> getASetOfValidDetIds() override {
0030 std::set<DetId> setOfValidIds;
0031 const std::vector<DetId>& vectOfValidIds = geometry_->getValidDetIds(DetId::Hcal, 1);
0032 for (std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
0033 setOfValidIds.insert(*it);
0034
0035
0036 const std::vector<DetId>& vectOfValidIdsHE = geometry_->getValidDetIds(DetId::Hcal, 2);
0037 for (std::vector<DetId>::const_iterator it = vectOfValidIdsHE.begin(); it != vectOfValidIdsHE.end(); ++it)
0038 setOfValidIds.insert(*it);
0039
0040 return setOfValidIds;
0041 }
0042 };
0043 #endif