- if (strstr(option,"adcdecal") || strstr(option,"all")) {
- printf("\n ---- ADC decalibration channel values ----\n\n");
- for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
- if(supermodule >= 10)
- nRow = nRow2;
- printf("============== Supermodule %d\n",supermodule+1);
- for (Int_t column=0; column<nCol; column++){
- for (Int_t row=0; row<nRow; row++){
- printf(" %2.4f ",fADCchannelDecal[supermodule][column][row]);
- }
- printf("\n");
- }
- }
- }
-
- if (strstr(option,"time") || strstr(option,"all")) {
- printf("\n ---- time channel values ----\n\n");
- for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
- if(supermodule >= 10)
- nRow = nRow2;
- printf("============== Supermodule %d\n",supermodule+1);
- for (Int_t column=0; column<nCol; column++){
- for (Int_t row=0; row<nRow; row++){
- for(Int_t bc = 0; bc < 4; bc++)
- printf(" %2.4f ",fTimeChannel[supermodule][column][row][bc]);
- }
- printf("\n");
- }
- }
- }
-
- if (strstr(option,"time") || strstr(option,"all")) {
- printf("\n ---- time decalibration channel values ----\n\n");
- for (Int_t supermodule=0; supermodule<nSMod; supermodule++){
- if(supermodule >= 10)
- nRow = nRow2;
- printf("============== Supermodule %d\n",supermodule+1);
- for (Int_t column=0; column<nCol; column++){
- for (Int_t row=0; row<nRow; row++){
- printf(" %2.4f ",fTimeChannelDecal[supermodule][column][row]);
- }
- printf("\n");
+ for (Int_t supermodule = 0; supermodule < nSMod; supermodule++)
+ {
+ nCol = AliEMCALGeoParams::fgkEMCALCols; //48
+ nRow = AliEMCALGeoParams::fgkEMCALRows; //24
+
+ //Init all SM equally, even the channels known to not exist.
+
+ printf("============== Supermodule %d\n",supermodule+1);
+ for (Int_t column = 0; column < nCol; column++)
+ {
+ for (Int_t row = 0; row < nRow; row++)
+ {
+ printf("[col %d,row %d] ",column, row);
+ if (strstr(option,"gain") || strstr(option,"all"))
+ printf("calib=%2.4f ",GetADCchannel(supermodule,column,row));
+
+ if (strstr(option,"online") || strstr(option,"all"))
+ printf("calib0=%2.4f ", GetADCchannelOnline(supermodule,column,row));
+
+ if (strstr(option,"decal") || strstr(option,"all"))
+ printf("calibDecal=%2.4f ",GetADCchannelDecal(supermodule,column,row));
+
+ if (strstr(option,"ped") || strstr(option,"all"))
+ printf("ped=%2.4f ", GetADCpedestal(supermodule,column,row));
+
+ if (strstr(option,"time") || strstr(option,"all"))
+ printf("time::bc0 =%2.4f, bc1=%2.4f, bc2=%2.4f, bc3=%2.4f ",
+ GetTimeChannel(supermodule,column,row,0), GetTimeChannel(supermodule,column,row,1), GetTimeChannel(supermodule,column,row,2), GetTimeChannel(supermodule,column,row,3));
+
+ if (strstr(option,"timdecal") || strstr(option,"all"))
+ printf("timeDecal=%2.4f ", GetTimeChannelDecal(supermodule,column,row));
+
+ if (strstr(option,"all") || (row%4==3) ) printf("\n");