X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=EMCAL%2FAliEMCALCalibData.cxx;h=7b899fac1995ab6c583b3b82c2a2b1e89d9483c0;hp=2fd4cbdbca828157cffa31cd614dbb147398971e;hb=aae41db554d9c0154b7bf725530017d1f1e2bc41;hpb=da91abdb2fa5cc6e11d61538722eb52f4b43cfb0 diff --git a/EMCAL/AliEMCALCalibData.cxx b/EMCAL/AliEMCALCalibData.cxx index 2fd4cbdbca8..7b899fac199 100644 --- a/EMCAL/AliEMCALCalibData.cxx +++ b/EMCAL/AliEMCALCalibData.cxx @@ -32,36 +32,35 @@ ClassImp(AliEMCALCalibData) //__________________________________________________________ - AliEMCALCalibData::AliEMCALCalibData() : fADCchannelRef(0) +AliEMCALCalibData::AliEMCALCalibData() : +TNamed(), fADCchannelRef(0) { // Default constructor Reset(); } //________________________________________________________________________ -AliEMCALCalibData::AliEMCALCalibData(const char* name) : fADCchannelRef(0) +AliEMCALCalibData::AliEMCALCalibData(const char* name) : +TNamed(name,name),fADCchannelRef(0) { // Constructor - TString namst = "Calib_"; - namst += name; - SetName (namst.Data()); - SetTitle(namst.Data()); Reset(); } //______________________________________________________________________ AliEMCALCalibData::AliEMCALCalibData(const AliEMCALCalibData& calibda) : - TNamed(calibda), fADCchannelRef(calibda.fADCchannelRef) +TNamed(calibda), fADCchannelRef(calibda.fADCchannelRef) { // copy constructor SetName (calibda.GetName()); SetTitle(calibda.GetName()); Reset(); - + Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; //12 Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 Int_t nRow2 = AliEMCALGeoParams::fgkEMCALRows; //12 - Modules 11 and 12 are half modules + // in reality they are 1/3 but leave them as 1/2 for(Int_t supermodule = 0; supermodule < nSMod; supermodule++) { @@ -83,17 +82,16 @@ AliEMCALCalibData::AliEMCALCalibData(const AliEMCALCalibData& calibda) : fTimeChannelDecal[supermodule][column][row] = calibda.GetTimeChannelDecal(supermodule,column,row); - - for(Int_t bc = 0; bc < 4; bc++) - fTimeChannel[supermodule][column][row][bc] = - calibda.GetTimeChannel(supermodule,column,row,bc); + + for(Int_t bc = 0; bc < 4; bc++) + fTimeChannel[supermodule][column][row][bc] = + calibda.GetTimeChannel(supermodule,column,row,bc); } } } } - //________________________________________________________________ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibda) { @@ -101,13 +99,14 @@ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibd SetName (calibda.GetName()); SetTitle(calibda.GetName()); Reset(); - + fADCchannelRef = calibda.fADCchannelRef ; - + Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; //12 Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 Int_t nRow2 = AliEMCALGeoParams::fgkEMCALRows/2; //12 - Modules 11 and 12 are half modules + // in reality they are 1/3 but leave them as 1/2 for(Int_t supermodule = 0; supermodule < nSMod; supermodule++) { @@ -126,18 +125,18 @@ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibd fADCpedestal[supermodule][column][row] = calibda.GetADCpedestal(supermodule,column,row); - + fTimeChannelDecal[supermodule][column][row] = calibda.GetTimeChannelDecal(supermodule,column,row); - for(Int_t bc = 0; bc < 4; bc++) - fTimeChannel[supermodule][column][row][bc] = - calibda.GetTimeChannel(supermodule,column,row,bc); - + for(Int_t bc = 0; bc < 4; bc++) + fTimeChannel[supermodule][column][row][bc] = + calibda.GetTimeChannel(supermodule,column,row,bc); + } } } - + return *this; } @@ -145,13 +144,14 @@ AliEMCALCalibData &AliEMCALCalibData::operator =(const AliEMCALCalibData& calibd void AliEMCALCalibData::Reset() { // Set all pedestals to 0 and all ADC channels widths to 1 - + fADCchannelRef = 0.0162; - + Int_t nSMod = AliEMCALGeoParams::fgkEMCALModules; //12 Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 Int_t nRow2 = AliEMCALGeoParams::fgkEMCALRows/2; //12 - Modules 11 and 12 are half modules + // in reality they are 1/3 but leave them as 1/2 for (Int_t supermodule=0; supermodule= 10) @@ -166,16 +166,16 @@ void AliEMCALCalibData::Reset() fADCchannel [supermodule][column][row]=1.; fTimeChannelDecal[supermodule][column][row]=0.; - - for(Int_t bc = 0; bc < 4; bc++) - fTimeChannel[supermodule][column][row][bc]=0; - + + for(Int_t bc = 0; bc < 4; bc++) + fTimeChannel[supermodule][column][row][bc]=0; + } } } } -//________________________________________________________________ +//____________________________________________________ void AliEMCALCalibData::Print(Option_t *option) const { // Print tables of pedestals and ADC channels widths @@ -185,7 +185,8 @@ void AliEMCALCalibData::Print(Option_t *option) const Int_t nCol = AliEMCALGeoParams::fgkEMCALCols; //48 Int_t nRow = AliEMCALGeoParams::fgkEMCALRows; //24 Int_t nRow2 = AliEMCALGeoParams::fgkEMCALRows/2; //12 - Modules 11 and 12 are half modules - + // in reality they are 1/3 but leave them as 1/2 + if (strstr(option,"ped") || strstr(option,"all")) { printf("\n ---- Pedestal values ----\n\n"); for (Int_t supermodule=0; supermodule