Skip to content

Commit

Permalink
Merge pull request cms-sw#898 from kodolova/Fix-eta-phi
Browse files Browse the repository at this point in the history
Calibration bug fix -- Fix eta phi indices to be within range.

Related to https://hypernews.cern.ch/HyperNews/CMS/get/swReleases/3946.html
  • Loading branch information
ktf committed Sep 23, 2013
2 parents 3439400 + 4aca5c1 commit 69df1ce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Calibration/HcalCalibAlgos/src/HOCalibAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1775,10 +1775,12 @@ HOCalibAnalyzer::endJob() {
ysiz = 1200; //600;
TCanvas *c0 = new TCanvas("c0", " Pedestal vs signal", xsiz, ysiz);

float mean_eta[nphimx];
float mean_phi[netamx];
float rms_eta[nphimx];
float rms_phi[netamx];
// Fix is done for eta-phi

float mean_eta[netamx];
float mean_phi[nphimx];
float rms_eta[netamx];
float rms_phi[nphimx];

for (int ij=0; ij<nphimx; ++ij) {mean_phi[ij] = 0; rms_phi[ij] = 0;}
for (int ij=0; ij<netamx; ++ij) {mean_eta[ij] = 0; rms_eta[ij] = 0;}
Expand Down

0 comments on commit 69df1ce

Please sign in to comment.