Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:36

0001 #ifndef TrackAssociator_HODetIdAssociator_h
0002 #define TrackAssociator_HODetIdAssociator_h 1
0003 // -*- C++ -*-
0004 //
0005 // Package:    TrackAssociator
0006 // Class:      HODetIdAssociator
0007 //
0008 /*
0009 
0010  Description: <one line class summary>
0011 
0012  Implementation:
0013      <Notes on implementation>
0014 */
0015 //
0016 // Original Author:  Dmytro Kovalskyi
0017 //         Created:  Fri Apr 21 10:59:41 PDT 2006
0018 //
0019 //
0020 
0021 #include "CaloDetIdAssociator.h"
0022 #include "DataFormats/HcalDetId/interface/HcalSubdetector.h"
0023 class HODetIdAssociator : public CaloDetIdAssociator {
0024 public:
0025   HODetIdAssociator() : CaloDetIdAssociator(72, 30, 0.087, nullptr){};
0026 
0027   using CaloDetIdAssociator::CaloDetIdAssociator;
0028 
0029   const char* name() const override { return "HO"; }
0030 
0031 protected:
0032   void getValidDetIds(unsigned int subDectorIndex, std::vector<DetId>& validIds) const override {
0033     if (subDectorIndex != 0)
0034       cms::Exception("FatalError")
0035           << "HO sub-dectors are all handle as one sub-system, but subDetectorIndex is not zero.\n";
0036     validIds = geometry_->getValidDetIds(DetId::Hcal, HcalOuter);
0037   }
0038 };
0039 #endif