Proper initialization of bounding box for fBoxSet.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 18:15:56 +0000 (18:15 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Jun 2006 18:15:56 +0000 (18:15 +0000)
EVE/Alieve/TPCSector3D.cxx

index 5a1fa4f060c76f17678e0cfe2af07e007bde4769..f79a793ffcc2f5c57acb8f3275302ff9255f8665 100644 (file)
@@ -62,7 +62,9 @@ void TPCSector3D::ComputeBBox()
   fBBox[3] =  o2Seg.GetRLow() + o2Seg.GetNRows()*o2Seg.GetPadHeight();
   fBBox[4] = -0.5;
   fBBox[5] =  250.5;
   fBBox[3] =  o2Seg.GetRLow() + o2Seg.GetNRows()*o2Seg.GetPadHeight();
   fBBox[4] = -0.5;
   fBBox[5] =  250.5;
-  dynamic_cast<TAttBBox&>(fBoxSet) = dynamic_cast<TAttBBox&>(*this);
+  Float_t* b = fBoxSet.AssertBBox();
+  for(Int_t i=0; i<6; ++i) { b[i] = fBBox[i]; }
+
 }
 
 void TPCSector3D::Paint(Option_t* option)
 }
 
 void TPCSector3D::Paint(Option_t* option)