Set the branch address only once
[u/mrichter/AliRoot.git] / TPC / AliTPCDigitizer.cxx
index 252cfdbb7eed1897a5d0f7c2f34ddb4a7b65bf58..33609b45139c977e9ac5ba1dc966898282e96ae8 100644 (file)
@@ -173,7 +173,7 @@ void AliTPCDigitizer::ExecFast(Option_t* option)
      ogime->MakeTree("D");
      tree  = ogime->TreeD();
    }
-  TBranch* branch = tree->Branch("Segment","AliSimDigits",&digrow);
+  tree->Branch("Segment","AliSimDigits",&digrow);
   //
 
   param->SetZeroSup(2);
@@ -283,7 +283,6 @@ void AliTPCDigitizer::ExecFast(Option_t* option)
     
     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++)