Added parameter 'Width_t fWidth' to TrackRnrStyle and a method to change width of...
[u/mrichter/AliRoot.git] / EVE / Reve / Track.cxx
index 7bd7235fe5c92499804ee977d4f3b65899be85a0..d43d1964c1cd027dc37304351bc53f6acfcd7986 100644 (file)
@@ -260,6 +260,7 @@ TrackRnrStyle::TrackRnrStyle() :
   TObject(),
 
   fColor(1),
+  fWidth(1),
   fMagField(fgDefMagField),
 
   fMaxR  (350),
@@ -395,6 +396,17 @@ void TrackList::MakeMarkers()
 /**************************************************************************/
 /*************************************************************************/
 
+void TrackList::SetWidth(Width_t w)
+{
+  Width_t oldw = fRnrStyle->fWidth;
+  fRnrStyle->fWidth = w;
+  for (lpRE_i i=fChildren.begin(); i!=fChildren.end(); ++i) {
+    Track& t = *((Track*)(*i));
+    if (t.GetLineWidth() == oldw)
+      t.SetLineWidth(w);
+  }
+}
+
 void TrackList::SetMaxR(Float_t x)
 {
   fRnrStyle->fMaxR = x;