]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Set the branch address only once
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jan 2004 17:50:11 +0000 (17:50 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Jan 2004 17:50:11 +0000 (17:50 +0000)
TPC/AliTPCDigitizer.cxx

index 252cfdbb7eed1897a5d0f7c2f34ddb4a7b65bf58..33609b45139c977e9ac5ba1dc966898282e96ae8 100644 (file)
@@ -173,7 +173,7 @@ void AliTPCDigitizer::ExecFast(Option_t* option)
      ogime->MakeTree("D");
      tree  = ogime->TreeD();
    }
      ogime->MakeTree("D");
      tree  = ogime->TreeD();
    }
-  TBranch* branch = tree->Branch("Segment","AliSimDigits",&digrow);
+  tree->Branch("Segment","AliSimDigits",&digrow);
   //
 
   param->SetZeroSup(2);
   //
 
   param->SetZeroSup(2);
@@ -283,7 +283,6 @@ void AliTPCDigitizer::ExecFast(Option_t* option)
     
     digrow->CompresBuffer(1,zerosup);
     digrow->CompresTrackBuffer(1);
     
     digrow->CompresBuffer(1,zerosup);
     digrow->CompresTrackBuffer(1);
-    branch->SetAddress(&digrow);
     tree->Fill();
     if (fDebug>0) cerr<<sec<<"\t"<<row<<"\n";  
    } //for (Int_t n=0; n<param->GetNRowsTotal(); n++) 
     tree->Fill();
     if (fDebug>0) cerr<<sec<<"\t"<<row<<"\n";  
    } //for (Int_t n=0; n<param->GetNRowsTotal(); n++)