Reading Tracks and trigger tracks brach per branch (Gines)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Mar 2007 23:42:34 +0000 (23:42 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 8 Mar 2007 23:42:34 +0000 (23:42 +0000)
MUON/AliMUONData.h

index 30a9cba..d09c45d 100644 (file)
@@ -222,13 +222,13 @@ inline void AliMUONData::GetTriggerD() const {
 /// Return reconstructed tracks
 inline void AliMUONData::GetRecTracks() const {
   if (fLoader && fLoader->TreeT())
-    fLoader->TreeT()->GetEvent(0);
+    fLoader->TreeT()->GetBranch("MUONTrack")->GetEvent(0);
 }
 
 /// Return reconstructed trigger tracks
 inline void AliMUONData::GetRecTriggerTracks() const {
   if (fLoader && fLoader->TreeT())
-    fLoader->TreeT()->GetEvent(0);
+    fLoader->TreeT()->GetBranch("MUONTriggerTrack")->GetEvent(0);
 }