X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALCalibData.cxx;h=a74dc85cd48e1503b55219faa0bc091931833f55;hb=9e4f5bb3809044e9cbec9eddd7969eec3d057889;hp=ae482b330727235faa92f055f6ded7cdd51aa91e;hpb=c08d8e3ca825c6138650cf2aac04cc06b0c2a903;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALCalibData.cxx b/EMCAL/AliEMCALCalibData.cxx index ae482b33072..a74dc85cd48 100644 --- a/EMCAL/AliEMCALCalibData.cxx +++ b/EMCAL/AliEMCALCalibData.cxx @@ -57,43 +57,31 @@ TNamed(calibda), fADCchannelRef(calibda.fADCchannelRef) SetTitle(calibda.GetName()); Reset(); - Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; + Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 - - for(Int_t supermodule = 0; supermodule < nSMod; supermodule++) { + + for(Int_t supermodule = 0; supermodule < nSMod; supermodule++) + { nCol = AliEMCALGeoParams::fgkEMCALCols; //48 nRow = AliEMCALGeoParams::fgkEMCALRows; //24 - // in reality they are 1/3 but leave them as 1/2 - - if(supermodule /2 == 5) - nRow = nRow/2; - if(supermodule > 11 && supermodule < 18) - nCol = nCol*2/3; - for(Int_t column = 0; column 11 && supermodule < 18) - nCol = nCol*2/3; + //Init all SM equally, even the channels known to not exist. - for(Int_t column = 0; column 11 && supermodule < 18) - nCol = nCol*2/3; - - for (Int_t column=0; column < nCol; column++){ - - for (Int_t row = 0; row < nRow; row++){ - - fADCpedestal [supermodule][column][row]=0.; - - fADCchannelDecal [supermodule][column][row]=1.; - fADCchannel [supermodule][column][row]=1.; - - fTimeChannelDecal[supermodule][column][row]=0.; - + //Init all SM equally, even the channels known to not exist. + + for (Int_t column=0; column < nCol; column++) + { + for (Int_t row = 0; row < nRow; row++) + { + + SetADCchannel (supermodule,column,row, fADCchannelRef); + SetADCchannelOnline(supermodule,column,row, fADCchannelRef); + SetADCchannelDecal (supermodule,column,row, 1); + SetADCpedestal (supermodule,column,row, 0); + SetTimeChannelDecal(supermodule,column,row, 0); for(Int_t bc = 0; bc < 4; bc++) - fTimeChannel[supermodule][column][row][bc]=0; - + SetTimeChannel(supermodule,column,row, bc, 0); + } } } @@ -191,112 +163,47 @@ void AliEMCALCalibData::Reset() void AliEMCALCalibData::Print(Option_t *option) const { // Print tables of pedestals and ADC channels widths - // options are: "gain", "ped", "decal", "time", "all" + // options are: "gain", "ped", "online", "decal", "time", "timdecal", "all" - Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; + Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 - - if (strstr(option,"ped") || strstr(option,"all")) { - printf("\n ---- Pedestal values ----\n\n"); - for (Int_t supermodule=0; supermodule 11 && supermodule < 18) - nCol = nCol*2/3; - printf("============== Supermodule %d\n",supermodule+1); - for (Int_t column=0; column 11 && supermodule < 18) - nCol = nCol*2/3; - printf("============== Supermodule %d\n",supermodule+1); - for (Int_t column=0; column 11 && supermodule < 18) - nCol = nCol*2/3; - printf("============== Supermodule %d\n",supermodule+1); - for (Int_t column=0; column 11 && supermodule < 18) - nCol = nCol*2/3; - printf("============== Supermodule %d\n",supermodule+1); - for (Int_t column=0; column 11 && supermodule < 18) - nCol = nCol*2/3; - printf("============== Supermodule %d\n",supermodule+1); - for (Int_t column=0; column