Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:28

0001 #ifndef HTrackAssociator_HHcalDetIdAssociator_h
0002 #define HTrackAssociator_HHcalDetIdAssociator_h 1
0003 // -*- C++ -*-
0004 //
0005 // Package:    HTrackAssociator
0006 // Class:      HHcalDetIdAssociator
0007 //
0008 /*
0009 
0010  Description: <one line class summary>
0011 
0012  Implementation:
0013      <Notes on implementation>
0014 
0015 //
0016 // Original Author:  Michal Szleper
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);  //HB
0032     for (std::vector<DetId>::const_iterator it = vectOfValidIds.begin(); it != vectOfValidIds.end(); ++it)
0033       setOfValidIds.insert(*it);
0034 
0035     //      vectOfValidIds.clear();
0036     const std::vector<DetId>& vectOfValidIdsHE = geometry_->getValidDetIds(DetId::Hcal, 2);  //HE
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