From: hristov Date: Thu, 13 Aug 2009 12:51:03 +0000 (+0000) Subject: Fixes for memory problems X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=bc6cefce3464167883091463bd4803287c9d31bb;hp=d8691591f955e11faefbd5edb2920a6557fa43f6;ds=sidebyside Fixes for memory problems --- diff --git a/HMPID/AliHMPIDQADataMakerRec.cxx b/HMPID/AliHMPIDQADataMakerRec.cxx index be0da001a12..c890e4011bc 100644 --- a/HMPID/AliHMPIDQADataMakerRec.cxx +++ b/HMPID/AliHMPIDQADataMakerRec.cxx @@ -229,7 +229,7 @@ void AliHMPIDQADataMakerRec::MakeRaws(AliRawReader *rawReader) } } - stream.Delete(); + // stream.Delete(); } diff --git a/HMPID/AliHMPIDRawStream.cxx b/HMPID/AliHMPIDRawStream.cxx index 1b01269dbfd..b4b05c56bef 100644 --- a/HMPID/AliHMPIDRawStream.cxx +++ b/HMPID/AliHMPIDRawStream.cxx @@ -119,10 +119,11 @@ AliHMPIDRawStream::~AliHMPIDRawStream() fWord=0; fZeroSup=0; fTurbo=0; - for(Int_t i=0;iBranch("AliTAG", &tag); btag->SetCompressionLevel(9); for(Int_t iEventNumber = 0; iEventNumber < chain->GetEntries(); iEventNumber++) { @@ -525,13 +525,13 @@ void AliESDTagCreator::CreateTag(TChain* chain, const char *type) { if(fguid != fTempGuid) { fTempGuid = fguid; - ttag.Fill(); + ttag->Fill(); tag->Clear(""); } tag->AddEventTag(*evTag); if(iEventNumber+1 == chain->GetEntries()) { //AliInfo(Form("File: %s",fturl.Data())); - ttag.Fill(); + ttag->Fill(); tag->Clear(""); } }//event loop @@ -549,7 +549,7 @@ void AliESDTagCreator::CreateTag(TChain* chain, const char *type) { ftag->cd(); tag->Clear(); - ttag.Write(); + ttag->Write(); ftag->Close(); //gSystem->GetMemInfo(meminfo); @@ -607,8 +607,8 @@ void AliESDTagCreator::CreateTag(TFile* file, const char *guid, const char *md5, AliRunTag *tag = new AliRunTag(); AliEventTag *evTag = new AliEventTag(); - TTree ttag("T","A Tree with event tags"); - TBranch * btag = ttag.Branch("AliTAG", &tag); + TTree * ttag = new TTree("T","A Tree with event tags"); + TBranch * btag = ttag->Branch("AliTAG", &tag); btag->SetCompressionLevel(9); gSystem->GetMemInfo(meminfo); AliInfo(Form("After the tag initialization - Memory used: %d MB",meminfo->fMemUsed)); @@ -904,9 +904,9 @@ void AliESDTagCreator::CreateTag(TFile* file, const char *guid, const char *md5, TFile* ftag = TFile::Open(fileName, "recreate"); ftag->cd(); - ttag.Fill(); + ttag->Fill(); tag->Clear(); - ttag.Write(); + ttag->Write(); ftag->Close(); gSystem->GetMemInfo(meminfo); @@ -962,8 +962,8 @@ void AliESDTagCreator::CreateTag(TFile* file, const char *filepath, Int_t Counte AliRunTag *tag = new AliRunTag(); AliEventTag *evTag = new AliEventTag(); - TTree ttag("T","A Tree with event tags"); - TBranch * btag = ttag.Branch("AliTAG", &tag); + TTree * ttag = new TTree("T","A Tree with event tags"); + TBranch * btag = ttag->Branch("AliTAG", &tag); btag->SetCompressionLevel(9); AliInfo(Form("Creating the ESD tags.......")); @@ -1243,9 +1243,9 @@ void AliESDTagCreator::CreateTag(TFile* file, const char *filepath, Int_t Counte TFile* ftag = TFile::Open(fileName, "recreate"); ftag->cd(); - ttag.Fill(); + ttag->Fill(); tag->Clear(); - ttag.Write(); + ttag->Write(); ftag->Close(); delete ftag; @@ -1336,8 +1336,8 @@ void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, AliGRP AliRunTag *tag = new AliRunTag(); AliEventTag *evTag = new AliEventTag(); - TTree ttag("T","A Tree with event tags"); - TBranch * btag = ttag.Branch("AliTAG", &tag); + TTree * ttag = new TTree("T","A Tree with event tags"); + TBranch * btag = ttag->Branch("AliTAG", &tag); btag->SetCompressionLevel(9); if(fLastEvent != -1) iNumberOfEvents = fLastEvent + 1; @@ -1589,9 +1589,9 @@ void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, AliGRP } ftag->cd(); - ttag.Fill(); + ttag->Fill(); tag->Clear(); - ttag.Write(); + ttag->Write(); ftag->Close(); file->cd(); delete tag; diff --git a/ZDC/AliZDCQADataMakerRec.cxx b/ZDC/AliZDCQADataMakerRec.cxx index 622134c551e..1f9b2a35fcf 100644 --- a/ZDC/AliZDCQADataMakerRec.cxx +++ b/ZDC/AliZDCQADataMakerRec.cxx @@ -361,7 +361,7 @@ void AliZDCQADataMakerRec::MakeRaws(AliRawReader *rawReader) GetRawsData(18)->Fill(sumQ_ZPC_lg); GetRawsData(19)->Fill(sumQ_ZPA_lg); // - stream.Delete(); +// stream.Delete(); } //___________________________________________________________________________