]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/Alieve/TPCLoaderEditor.cxx
Waiting for a tagged version of Root. All the development is in EVE-dev
[u/mrichter/AliRoot.git] / EVE / Alieve / TPCLoaderEditor.cxx
index a5b5b2a990e418ca7524d7efb0c0023bdbb4f06a..bef26f50aee144daef1e1e401c19b4fc58588364 100644 (file)
@@ -25,11 +25,23 @@ using namespace Alieve;
 
 ClassImp(TPCLoaderEditor)
 
-TPCLoaderEditor::TPCLoaderEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height,
+TPCLoaderEditor::TPCLoaderEditor(const TGWindow *p, Int_t id,
+                                 Int_t width, Int_t height,
                                 UInt_t options, Pixel_t back) :
-  TGedFrame(p, id, width, height, options | kVerticalFrame, back)
+  TGedFrame(p, id, width, height, options | kVerticalFrame, back),
+
+  fM (0),
+
+  fFile     (0),
+  fOpenFile (0),
+
+  fEvent    (0),
+  fDoubleSR (0),
+
+  fUpdateSectors   (0),
+  fCreateSectors3D (0),
+  fDeleteSectors3D (0)
 {
-  fM = 0;
   MakeTitle("TPCLoader");
 
   Int_t labelW = 42;
@@ -138,11 +150,9 @@ const char *tpcfiletypes[] = {
 
 void TPCLoaderEditor::FileSelect()
 {
-  TString dname = gSystem->DirName (fM->fFile);
-  TString fname = gSystem->BaseName(fM->fFile);
   TGFileInfo fi;
-  fi.fIniDir    = const_cast<char*>(dname.Data());
-  fi.fFilename  = const_cast<char*>(fname.Data());
+  fi.fIniDir    = StrDup(gSystem->DirName (fM->fFile));
+  fi.fFilename  = StrDup(gSystem->BaseName(fM->fFile));
   fi.fFileTypes = tpcfiletypes;
 
   new TGFileDialog(fClient->GetRoot(), gReve, kFDOpen, &fi);