- for(Int_t mod=0; mod<nMod; mod++) {
- for(Int_t col=0; col<nCol; col++) {
- for(Int_t row=0; row<nRow; row++) {
- sprintf(hnam,"%d_%d_%d",mod,row,col); // mod_X_Z
- histo = (TH1F*)f.Get(hnam);
- //TODO: dead channels exclusion!
- if(histo) {
- coeff = histo->GetMean()/refMean;
- if(coeff>0)
- calibData.SetADCchannelCpv(mod+1,col+1,row+1,1./coeff);
- AliInfo(Form("mod %d col %d row %d coeff %f\n",mod,col,row,coeff));
+ // Calculates relative calibration coefficients for all non-zero channels
+
+ for(Int_t mod=0; mod<nMod; mod++) {
+ for(Int_t col=0; col<nCol; col++) {
+ for(Int_t row=0; row<nRow; row++) {
+ sprintf(hnam,"%d_%d_%d",mod,row,col); // mod_X_Z
+ histo = (TH1F*)f.Get(hnam);
+ //TODO: dead channels exclusion!
+ if(histo) {
+ coeff = histo->GetMean()/refMean;
+ if(coeff>0)
+ calibData.SetADCchannelCpv(mod+1,col+1,row+1,1./coeff);
+ AliInfo(Form("mod %d col %d row %d coeff %f\n",mod,col,row,coeff));
+ }