]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/FORWARD/analysis2/AliFMDEventInspector.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliFMDEventInspector.cxx
index 74c3fad8b0c7de45d57d83baba63ed00e4b4ce62..9d0cf32731f6de8b582b1001c4df0356f1551b20 100644 (file)
@@ -383,13 +383,6 @@ AliFMDEventInspector::SetupForData(const TAxis& vtxAxis)
     }
   }
       
-  Printf("Got vertex axis %p (%d,%f,%f)", 
-        &vtxAxis, 
-        (&vtxAxis ? vtxAxis.GetNbins() : -1),
-        (&vtxAxis ? vtxAxis.GetXmin() : -1),
-        (&vtxAxis ? vtxAxis.GetXmax() : -1));
-  // if (&vtxAxis) vtxAxis.Dump();
-        
   fVtxAxis.Set(vtxAxis.GetNbins(), vtxAxis.GetXmin(), vtxAxis.GetXmax());
   
   fCentAxis  = new TAxis(limits.GetSize()-1, limits.GetArray());
@@ -648,11 +641,13 @@ AliFMDEventInspector::StoreProduction()
   Int_t   rootSVN           = p.GetRootSvnVersion();
   fProdPass                 = p.GetRecoPass();
   fProdMC                   = p.IsMC();
-
-  TObjArray* pp = TPRegexp("LHC([0-9]+)([a-z]+)").MatchS(period);
-  fProdYear     = static_cast<TObjString*>(pp->At(1))->String().Atoi();
-  fProdLetter   = static_cast<TObjString*>(pp->At(2))->String()[0];
-  pp->Delete();
+  
+  if (period.Length() > 0) {
+    TObjArray* pp = TPRegexp("LHC([0-9]+)([a-z]+)").MatchS(period);
+    fProdYear     = static_cast<TObjString*>(pp->At(1))->String().Atoi();
+    fProdLetter   = static_cast<TObjString*>(pp->At(2))->String()[0];
+    pp->Delete();
+  }
   
   out->Add(AliForwardUtil::MakeParameter("year", fProdYear));
   out->Add(AliForwardUtil::MakeParameter("letter", Int_t(fProdLetter)));