Skip to content

Commit

Permalink
Finalise move to RecHitTools for HGCalRecHit algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
clelange committed Jun 20, 2019
1 parent bec6bb7 commit 68b182e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion RecoLocalCalo/HGCalRecAlgos/interface/HGCalRecHitAbsAlgo.h
Expand Up @@ -22,7 +22,7 @@ class HGCalRecHitAbsAlgo {
/// Destructor
virtual ~HGCalRecHitAbsAlgo(){};

inline void getEventSetup(const edm::EventSetup& es) { rhtools_.getEventSetup(es); }
inline void set(const edm::EventSetup& es) { rhtools_.getEventSetup(es); }

/// make rechits from dataframes
virtual void setLayerWeights(const std::vector<float>& weights){};
Expand Down
Expand Up @@ -47,10 +47,7 @@ class HGCalRecHitSimpleAlgo : public HGCalRecHitAbsAlgo {

DetId baseid = uncalibRH.id();
unsigned layer = rhtools_.getLayerWithOffset(baseid);
bool hfnose(false);

if (DetId::Forward == baseid.det() && HFNose == baseid.subdetId())
hfnose = true;
bool hfnose = DetId::Forward == baseid.det() && HFNose == baseid.subdetId();

// float clockToNsConstant = 25;
float energy = (hfnose ? (uncalibRH.amplitude() * weightsNose_[layer] * 0.001f)
Expand Down
Expand Up @@ -70,6 +70,7 @@ HGCalRecHitWorkerSimple::HGCalRecHitWorkerSimple(const edm::ParameterSet& ps) :

void HGCalRecHitWorkerSimple::set(const edm::EventSetup& es) {
tools_->getEventSetup(es);
rechitMaker_->set(es);
if (hgcEE_isSiFE_) {
edm::ESHandle<HGCalGeometry> hgceeGeoHandle;
es.get<IdealGeometryRecord>().get("HGCalEESensitive", hgceeGeoHandle);
Expand Down

0 comments on commit 68b182e

Please sign in to comment.