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;
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);