1 |
//------------------------------------------------------------------------------------------------------------------------------------------------------- |
//------------------------------------------------------------------------------------------------------------------------------------------------------- |
2 |
// |
// |
3 |
// EventViewer.c version 9.02 (2006-03-09) |
// EventViewer.c version 9.03 (2006-03-10) |
4 |
// |
// |
5 |
// Shows PAMELA events - Emiliano Mocchiutti |
// Shows PAMELA events - Emiliano Mocchiutti |
6 |
// |
// |
24 |
// |
// |
25 |
// Changelog: |
// Changelog: |
26 |
// |
// |
27 |
|
// 9.02 - 9.03 (2006-03-10): Figure still editable during searching, fixed. Fixed CPU consuming. |
28 |
|
// |
29 |
// 9.01 - 9.02 (2006-03-09): Now reads tracker software output from v3r02. Small bugs fixed (figure not editable now and complete text inside the GUI if there are only files with the same name). |
// 9.01 - 9.02 (2006-03-09): Now reads tracker software output from v3r02. Small bugs fixed (figure not editable now and complete text inside the GUI if there are only files with the same name). |
30 |
// |
// |
31 |
// 9.00 - 9.01 (2006-03-03): Many bugs fixed and some correction in the behaviour in some cases (many thanks to Silvio for help in developing and debugging!). |
// 9.00 - 9.01 (2006-03-03): Many bugs fixed and some correction in the behaviour in some cases (many thanks to Silvio for help in developing and debugging!). |
288 |
// |
// |
289 |
|
|
290 |
class PAMevcontrol : public TGMainFrame { |
class PAMevcontrol : public TGMainFrame { |
|
//RQ_OBJECT("PAMevcontrol"); |
|
291 |
|
|
292 |
private: |
private: |
293 |
TGHProgressBar *fHProg1; |
TGHProgressBar *fHProg1; |
688 |
charmac = k; |
charmac = k; |
689 |
}; |
}; |
690 |
}; |
}; |
691 |
|
gVirtualX->Bell(0); |
692 |
}; |
}; |
693 |
if ( !charmac ) { |
if ( !charmac ) { |
694 |
gVirtualX->Bell(0); |
gVirtualX->Bell(0); |
6488 |
gApplication->Terminate(0); |
gApplication->Terminate(0); |
6489 |
}; |
}; |
6490 |
gSystem->ProcessEvents(); |
gSystem->ProcessEvents(); |
6491 |
|
gSystem->Sleep(10); |
6492 |
}; |
}; |
6493 |
if ( var.restart ){ |
if ( var.restart ){ |
6494 |
filename = var.thefilename.Data(); |
filename = var.thefilename.Data(); |
7109 |
if ( isOK && !jumpto ) { |
if ( isOK && !jumpto ) { |
7110 |
if ( var.doflag == 3 ) selection = 1; |
if ( var.doflag == 3 ) selection = 1; |
7111 |
printf("\n"); |
printf("\n"); |
7112 |
|
// |
7113 |
|
figure->SetEditable(kTRUE); |
7114 |
|
// |
7115 |
figure->Clear(); |
figure->Clear(); |
7116 |
figure->SetFillColor(10); |
figure->SetFillColor(10); |
7117 |
figure->cd(); |
figure->cd(); |
7732 |
figure->Modified(); |
figure->Modified(); |
7733 |
figure->Update(); |
figure->Update(); |
7734 |
figure->cd(); |
figure->cd(); |
7735 |
|
figure->SetEditable(kFALSE); |
7736 |
// |
// |
7737 |
// print infos on terminal |
// print infos on terminal |
7738 |
// |
// |
7800 |
var.jumpen = false; |
var.jumpen = false; |
7801 |
// njumpen = 0; |
// njumpen = 0; |
7802 |
Int_t ifout = 0; |
Int_t ifout = 0; |
|
figure->SetEditable(kFALSE); |
|
7803 |
while( !var.goon && !var.refresh && !var.restart ) { |
while( !var.goon && !var.refresh && !var.restart ) { |
7804 |
if ( !gROOT->GetListOfCanvases()->FindObject(figure) ) { |
if ( !gROOT->GetListOfCanvases()->FindObject(figure) ) { |
7805 |
pamgui->Close(); |
pamgui->Close(); |
7807 |
gApplication->Terminate(0); |
gApplication->Terminate(0); |
7808 |
}; |
}; |
7809 |
gSystem->ProcessEvents(); |
gSystem->ProcessEvents(); |
7810 |
|
gSystem->Sleep(10); |
7811 |
}; |
}; |
|
figure->SetEditable(kTRUE); |
|
7812 |
var.goon = false; |
var.goon = false; |
7813 |
if ( var.refresh || var.restart ){ |
if ( var.refresh || var.restart ){ |
7814 |
headerFile->Close(); |
headerFile->Close(); |