]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixed printf statements
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jun 2007 06:36:29 +0000 (06:36 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 20 Jun 2007 06:36:29 +0000 (06:36 +0000)
STEER/AliESD.cxx

index eab5c333344e7f635941ea64d22417694ded8e23..7cc56d79fcc5cb93d7fea973d4a9d3598d7924dd 100644 (file)
@@ -472,15 +472,17 @@ void AliESD::ReadFromTree(TTree *tree){
 
   fESDObjects = (TList*)((AliESD*)tree->GetTree()->GetUserInfo()->FindObject("AliESD"))->GetList(); 
 
-  if(fESDObjects->GetEntries()<kESDListN){
-    printf("%s %d AliESD::ReadFromTree() TList contains less than the standard contents %d < %d \n",(char*)__FILE__,__LINE__,fESDObjects->GetEntries(),kESDListN);
-  }
-
   // if list is empty
   // we could still set the branch adresses based on 
   // tree->GetListOfBranches() CKB
   // or create standard list 
 
+  if(fESDObjects->GetEntries()<kESDListN){
+    printf("%s %d AliESD::ReadFromTree() TList contains less than the standard contents %d < %d \n",(char*)__FILE__,__LINE__,fESDObjects->GetEntries(),kESDListN);
+  }
+
+
+
   // set the branch addresses
   TIter next(fESDObjects);
   TNamed *el;
@@ -491,13 +493,11 @@ void AliESD::ReadFromTree(TTree *tree){
       {
        // AliESDfriend does not have a name ...
       tree->SetBranchStatus("ESDfriend.*",1);
-      printf("Friend %s\n", bname.Data());
       tree->SetBranchAddress("ESDfriend.",fESDObjects->GetObjectRef(el));
 
 
     }
     else{
-      printf("%s\n", bname.Data());
       tree->SetBranchAddress(bname.Data(),fESDObjects->GetObjectRef(el));
     }
   }