]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/AliFMDInput.cxx
LHAPDF veraion 5.9.1
[u/mrichter/AliRoot.git] / FMD / AliFMDInput.cxx
index 4b84325a239d160c1f4bcc1c60649d8ef61fdd8a..49a60a433495c27c241d8bb4635cc8c9b99b2738 100644 (file)
@@ -187,7 +187,7 @@ AliFMDInput::SetLoads(UInt_t mask)
       if (i != UInt_t(type)) continue;
       AddLoad(type);
       break;
-    } while (*ptype != kUser);
+    } while (*ptype++ != kUser);
   }
 }
      
@@ -203,6 +203,7 @@ AliFMDInput::SetLoads(const char* what)
     ETrees type = ParseLoad(os->GetName());
     AddLoad(type);
   }
+  delete ll;
 }
     
 
@@ -217,7 +218,7 @@ AliFMDInput::ParseLoad(const char* what)
     ETrees  type = *ptype;
     if (opt.Contains(TreeName(type,true), TString::kIgnoreCase)) 
       return type;
-  } while (*ptype++);
+  } while (*ptype++ != kUser);
   return kUser;
 }
 //____________________________________________________________________
@@ -310,7 +311,7 @@ AliFMDInput::Init()
     ETrees type = *ptype;
     what.Append(Form("\n\t%-20s: %s", TreeName(type), 
                     IsLoaded(type) ? "yes" : "no"));
-  } while (*ptype++);
+  } while (*ptype++ != kUser);
   
   Info("Init","Initialising w/mask 0x%04x%s", fTreeMask, what.Data());
   // Get the run