Setting the tree address after the creation of the TClonesArray
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jan 2004 18:07:15 +0000 (18:07 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jan 2004 18:07:15 +0000 (18:07 +0000)
TOF/AliTOFSDigitizer.cxx

index 034a2357b8ce059c31d27a4ab0abd34ee2cb960e..e1e8f23709593db0a4ec26ce409fd15eadaed786 100644 (file)
@@ -236,8 +236,6 @@ void AliTOFSDigitizer::Exec(Option_t *verboseOption) {
     //Make branch for digits
     TOF->MakeBranch("S");
     
-    TOF->SetTreeAddress();
-
     // recreate TClonesArray fSDigits - for backward compatibility
     if (TOF->SDigits() == 0) {
       TOF->CreateSDigitsArray();
@@ -245,6 +243,8 @@ void AliTOFSDigitizer::Exec(Option_t *verboseOption) {
       TOF->RecreateSDigitsArray();
     }
 
+    TOF->SetTreeAddress();
+
     Int_t version=TOF->IsVersion();
 
     Int_t nselectedHitsinEv=0;