File indexing completed on 2024-09-07 04:37:37
0001 #ifndef RecoLocalCalo_HGCalRecAlgos_HGCalRecHitAbsAlgo_HH
0002 #define RecoLocalCalo_HGCalRecAlgos_HGCalRecHitAbsAlgo_HH
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <vector>
0013 #include "DataFormats/HGCRecHit/interface/HGCRecHit.h"
0014 #include "DataFormats/HGCRecHit/interface/HGCUncalibratedRecHit.h"
0015 #include "RecoLocalCalo/HGCalRecAlgos/interface/RecHitTools.h"
0016
0017 class HGCalRecHitAbsAlgo {
0018 public:
0019
0020
0021
0022
0023 virtual ~HGCalRecHitAbsAlgo() {}
0024
0025 inline void set(const CaloGeometry& geom) { rhtools_.setGeometry(geom); }
0026
0027
0028 virtual void setLayerWeights(const std::vector<float>& weights) {}
0029
0030 virtual void setADCToGeVConstant(const float value) = 0;
0031 virtual HGCRecHit makeRecHit(const HGCUncalibratedRecHit& uncalibRH, const uint32_t& flags) const = 0;
0032
0033 protected:
0034 hgcal::RecHitTools rhtools_;
0035 };
0036 #endif