Print() method outputs the branch names of the AOD now
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Aug 2009 15:20:58 +0000 (15:20 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Aug 2009 15:20:58 +0000 (15:20 +0000)
STEER/AliAODEvent.cxx

index 8b2a1f4..b2d9581 100644 (file)
@@ -541,7 +541,14 @@ void AliAODEvent::ReadFromTree(TTree *tree, Option_t* opt /*= ""*/)
 //______________________________________________________________________________
 void AliAODEvent::Print(Option_t *) const
 {
-  // Something meaningful should be implemented here.
+  // Print the names of the all branches
+  TIter next(fAODObjects);
+  TNamed *el;
+  Printf(">>>>>  AOD  Content <<<<<");    
+  while((el=(TNamed*)next())){
+    Printf(">> %s ",el->GetName());      
+  }
+  Printf(">>>>>                <<<<<");    
   
   return;
 }