From: laphecet Date: Wed, 19 Aug 2009 10:04:05 +0000 (+0000) Subject: AliMUONTrackerIO::DecodeGains : move declaration of iADC in order not to get memory... X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=4599f6aabd17b6792017b6381eb9381e6c0f3f4b AliMUONTrackerIO::DecodeGains : move declaration of iADC in order not to get memory error when the TString is a concatenation of several .par files (AMORE issue). AliMUONTrackerDataWrapper.h : add the method UpdateData in order to update the data without having to Unregister the corresponding wrapper (AMORE issue). (Guillaume) --- diff --git a/MUON/AliMUONTrackerDataWrapper.h b/MUON/AliMUONTrackerDataWrapper.h index e2f21449516..4a58afdbb90 100644 --- a/MUON/AliMUONTrackerDataWrapper.h +++ b/MUON/AliMUONTrackerDataWrapper.h @@ -58,6 +58,8 @@ public: virtual Long64_t Merge(TCollection* li); + virtual void UpdateData(AliMUONVTrackerData* data=0x0) { fData = data; } + private: /// not implemented. AliMUONTrackerDataWrapper(const AliMUONTrackerDataWrapper& rhs); diff --git a/MUON/AliMUONTrackerIO.cxx b/MUON/AliMUONTrackerIO.cxx index caa6446cf3f..6e766d9fa97 100644 --- a/MUON/AliMUONTrackerIO.cxx +++ b/MUON/AliMUONTrackerIO.cxx @@ -280,7 +280,6 @@ AliMUONTrackerIO::DecodeGains(TString data, AliMUONVStore& gainStore, Int_t* runs(0x0); Int_t* dac(0x0); Int_t nDAC(0); - Int_t iDAC(0); while ( in.getline(line,1024) ) { @@ -317,6 +316,7 @@ AliMUONTrackerIO::DecodeGains(TString data, AliMUONVStore& gainStore, in.getline(line,1024); in.getline(line,1024); // then get run and dac values + Int_t iDAC(0); for ( Int_t i = 0; i < nDAC; ++i ) { in.getline(line,1024);