]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSPlaneEffSPD.cxx
Forgotten commit
[u/mrichter/AliRoot.git] / ITS / AliITSPlaneEffSPD.cxx
index 2df630ee1a4200965b357af37560395b5b782300..1ec8d5e42271d093e6550abfa51292dff374ac8c 100644 (file)
@@ -510,7 +510,7 @@ UInt_t AliITSPlaneEffSPD::GetColFromLocZ(Float_t zloc) const {
   Int_t ix,iz;
   if(spd.LocalToDet(0,zloc,ix,iz)) col+=iz;
   else {
-    AliError("GetColFromLocZ: cannot compute column number from local z");
+    AliDebug(1,Form("cannot compute column number from local z=%f",zloc));
     col=99999;}
   return col;
 /*
@@ -620,6 +620,9 @@ void AliITSPlaneEffSPD::InitHistos() {
   TString histnameClusErrX="HistClusErrX_mod_";
   TString histnameClusErrZ="HistClusErrZ_mod_";
 //
+
+  TH1::AddDirectory(kFALSE);
+
   fHisResX=new TH1F*[kNHisto];
   fHisResZ=new TH1F*[kNHisto];
   fHisResXZ=new TH2F*[kNHisto];
@@ -723,6 +726,9 @@ void AliITSPlaneEffSPD::InitHistos() {
     fHisClusErrZ[nhist]->SetTitle(aux.Data());
 
   }
+
+  TH1::AddDirectory(kTRUE);
+
 return;
 }
 //__________________________________________________________
@@ -843,7 +849,7 @@ Bool_t AliITSPlaneEffSPD::WriteHistosToFile(TString filename, Option_t* option)
   // Saves the histograms into a tree and saves the trees into a file
   //
   if (!fHis) return kFALSE;
-  if (filename.Data()=="") {
+  if (filename.IsNull() || filename.IsWhitespace()) {
      AliWarning("WriteHistosToFile: null output filename!");
      return kFALSE;
   }
@@ -928,7 +934,7 @@ Bool_t AliITSPlaneEffSPD::ReadHistosFromFile(TString filename) {
   // Read histograms from an already existing file 
   //
   if (!fHis) return kFALSE;
-  if (filename.Data()=="") {
+  if (filename.IsNull() || filename.IsWhitespace()) {
      AliWarning("ReadHistosFromFile: incorrect output filename!");
      return kFALSE;
   }