Skip to content

Commit

Permalink
values from fake clusters agree with expectation from calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Jun 14, 2016
1 parent 2330385 commit 2738606
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -46,7 +46,7 @@ class HGCalRecHitSimpleAlgo : public HGCalRecHitAbsAlgo {
HGCalDetId hid(uncalibRH.id());

// float clockToNsConstant = 25;
float energy = uncalibRH.amplitude() * weights_[hid.layer()] * 1.0f-3;
float energy = uncalibRH.amplitude() * weights_[hid.layer()] * 0.001f;
float time = uncalibRH.jitter();

//if(time<0) time = 0; // fast-track digi conversion
Expand Down
Expand Up @@ -34,9 +34,10 @@ HGCalRecHitWorkerSimple::HGCalRecHitWorkerSimple(const edm::ParameterSet&ps) :
for( auto weight : dweights ) {
weights.push_back(weight);
}
rechitMaker_->setLayerWeights(weights);

// residual correction for cell thickness
const auto& rcorr = ps.getParameter<std::vector<double> >("layerCorrection");
const auto& rcorr = ps.getParameter<std::vector<double> >("thicknessCorrection");
rcorr_.clear();
rcorr_.push_back(1.f);
for( auto corr : rcorr ) {
Expand Down
2 changes: 1 addition & 1 deletion RecoLocalCalo/HGCalRecProducers/python/HGCalRecHit_cfi.py
Expand Up @@ -79,7 +79,7 @@

# EM Scale calibrations
layerWeights = dEdX_weights,
EM_scale_corr = cms.vdouble(0.964,0.920,0.909), # 100, 200, 300 um
thicknessCorrection = cms.vdouble(0.964,0.920,0.909), # 100, 200, 300 um

# algo
algo = cms.string("HGCalRecHitWorkerSimple")
Expand Down

0 comments on commit 2738606

Please sign in to comment.