]> 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 4fb6aa6b0945a739ac10b797af232b8052441486..9d0cf32731f6de8b582b1001c4df0356f1551b20 100644 (file)
@@ -641,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)));