Have definable geometry file.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:32:00 +0000 (13:32 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Jul 2002 13:32:00 +0000 (13:32 +0000)
HLT/hough/AliL3HoughDisplay.cxx
HLT/hough/AliL3HoughDisplay.h

index db5ec66..cd0903b 100644 (file)
@@ -41,11 +41,11 @@ AliL3HoughDisplay::~AliL3HoughDisplay()
     delete fTracks;
 }
 
-void AliL3HoughDisplay::Init(Char_t *trackfile)
+void AliL3HoughDisplay::Init(Char_t *trackfile, Char_t *gfile)
 {
-  TFile *file = TFile::Open("$(LEVEL3)/GEO/alice.geom");
+  TFile *file = TFile::Open(gfile);
   if(!file->IsOpen())
-    cerr<<"AliL3HoughDisplay::AliL3HoughDisplay : Geometry file alice.geom does not exist"<<endl;
+    cerr<<"AliL3HoughDisplay::AliL3HoughDisplay : Geometry file " << gfile << " does not exist"<<endl;
   fGeom = (TGeometry*)file->Get("AliceGeom");
   file->Close();
   
@@ -57,7 +57,6 @@ void AliL3HoughDisplay::Init(Char_t *trackfile)
   delete tfile;
 }
 
-
 void AliL3HoughDisplay::GenerateHits(AliL3Track *track,Float_t *x,Float_t *y,Float_t *z,Int_t &n)
 {
   n=0;
@@ -172,6 +171,7 @@ void AliL3HoughDisplay::DisplayEvent()
   
   cout<<"Displaying...."<<endl;
   fGeom->Draw("same");
-  //c1->x3d();
+  c1->x3d();
 }
   
+
index 97631d3..0ebf6ee 100644 (file)
@@ -28,7 +28,7 @@ class AliL3HoughDisplay {
   AliL3HoughDisplay();
   virtual ~AliL3HoughDisplay();
   
-  void Init(Char_t *trackfile);
+  void Init(Char_t *trackfile, Char_t *gfile="$(LEVEL3)/GEO/alice.geom");
   void DisplayEvent();
   void ShowData(AliL3DigitRowData *data,UInt_t size,Int_t slice,Int_t patch);
 
@@ -43,5 +43,4 @@ inline void AliL3HoughDisplay::ShowData(AliL3DigitRowData *data,UInt_t size,Int_
   fNDigitRowData = size;
 }
 
-
 #endif