Setting the branch address to permit correct reading
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Apr 2003 13:40:37 +0000 (13:40 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Apr 2003 13:40:37 +0000 (13:40 +0000)
TPC/AliTPCDigitizer.cxx

index 8b04bb507ef4960d685e1cdba7f4ef6f1594d6f9..77c21172e5c487adc122366e4995b944a26fe785 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.8  2002/10/23 07:17:33  alibrary
+Introducing Riostream.h
+
 Revision 1.7  2002/10/14 14:57:42  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -142,12 +145,9 @@ void AliTPCDigitizer::ExecFast(Option_t* option)
          <<" input "<< i1<<endl;
       return;
     }
+    treear->GetBranch("Segment")->SetAddress(&digarr[i1]);
     if (treear->GetIndex()==0) 
       treear->BuildIndex("fSegmentID","fSegmentID");
-    if (!treear) {      
-      cerr<<" TPC -  not existing input = \n"<<i1<<" ";      
-    }
-    treear->GetBranch("Segment")->SetAddress(&digarr[i1]);
   }
   Stat_t nentries = fManager->GetInputTreeTPCS(0)->GetEntries();