Make the histograms memory resident, otherwise they belong to a wrong file and we...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Aug 2008 14:02:12 +0000 (14:02 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Aug 2008 14:02:12 +0000 (14:02 +0000)
ITS/AliITSPlaneEffSSD.cxx

index 06a966d..51cf673 100644 (file)
@@ -428,6 +428,9 @@ void AliITSPlaneEffSSD::InitHistos() {
   TString histnameClusErrX="HistClusErrX_mod_";
   TString histnameClusErrZ="HistClusErrZ_mod_";
 //
+
+  TH1::AddDirectory(kFALSE);
+
   fHisResX=new TH1F*[kNHisto];
   fHisResZ=new TH1F*[kNHisto];
   fHisResXZ=new TH2F*[kNHisto];
@@ -489,6 +492,9 @@ void AliITSPlaneEffSSD::InitHistos() {
     fHisClusErrZ[nhist]->SetTitle(aux.Data());
 
   }
+
+  TH1::AddDirectory(kTRUE);
+
 return;
 }
 //__________________________________________________________