]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Reve/Track.cxx
In class Track: renamed ImportDaughters() to ImportKine(), added ImportKineWithArgs...
[u/mrichter/AliRoot.git] / EVE / Reve / Track.cxx
index 1adcf83216d63c86050cf70cb832458c210cd467..39addb484d784c6535a84df9309b70ad468162a7 100644 (file)
@@ -120,11 +120,10 @@ void Track::Reset(Int_t n_points)
 }
 */
 
 }
 */
 
- /**************************************************************************/
+/**************************************************************************/
 
 void Track::MakeTrack()
 {
 
 void Track::MakeTrack()
 {
-  
   TrackRnrStyle& RS((fRnrStyle != 0) ? *fRnrStyle : TrackRnrStyle::fgDefStyle);
 
   Float_t px = fP.x, py = fP.y, pz = fP.z;  
   TrackRnrStyle& RS((fRnrStyle != 0) ? *fRnrStyle : TrackRnrStyle::fgDefStyle);
 
   Float_t px = fP.x, py = fP.y, pz = fP.z;  
@@ -265,15 +264,29 @@ void Track::ImportClustersFromIndex()
   gROOT->ProcessLine(Form("clusters_from_index(%d);", fIndex));
 }
 
   gROOT->ProcessLine(Form("clusters_from_index(%d);", fIndex));
 }
 
-void Track::ImportDaughters()
+/**************************************************************************/
+
+void Track::ImportKine()
+{
+  static const Exc_t eH("Track::ImportKine ");
+
+  if (fLabel < 0)
+    throw(eH + "label not set.");
+
+  Reve::LoadMacro("kine_tracks.C");
+  gROOT->ProcessLine(Form("kine_track(%d, kTRUE, kFALSE);", fLabel));
+}
+
+void Track::ImportKineWithArgs(Bool_t importMother, Bool_t importDaugters)
 {
 {
-  static const Exc_t eH("Track::ImportDaughters ");
+  static const Exc_t eH("Track::ImportKineWithArgs ");
 
   if (fLabel < 0)
     throw(eH + "label not set.");
 
 
   if (fLabel < 0)
     throw(eH + "label not set.");
 
-  Reve::LoadMacro("kine_daughter_tracks.C");
-  gROOT->ProcessLine(Form("kine_daughter_tracks(%d);", fLabel));
+  Reve::LoadMacro("kine_tracks.C");
+  gROOT->ProcessLine(Form("kine_track(%d, %d, %d);",
+                         fLabel, importMother, importDaugters));
 }
 
 /**************************************************************************/
 }
 
 /**************************************************************************/