some more work towards musrt0

This commit is contained in:
nemu
2009-03-27 14:56:41 +00:00
parent 99ccb9e0ae
commit 3a5df41971
2 changed files with 17 additions and 1 deletions

View File

@ -131,6 +131,8 @@ PMusrT0::PMusrT0(PRawRunData *rawRunData, int runNo, int histoNo, int detectorTa
fBar->Layout(); fBar->Layout();
fPopupMain->Connect("TGPopupMenu", "Activated(Int_t)", "PMusrT0", this, "HandleMenuPopup(Int_t)"); fPopupMain->Connect("TGPopupMenu", "Activated(Int_t)", "PMusrT0", this, "HandleMenuPopup(Int_t)");
fMainCanvas->SetCrosshair(2);
fMainCanvas->Show(); fMainCanvas->Show();
fMainCanvas->Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", "PMusrT0", fMainCanvas->Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", "PMusrT0",
@ -220,7 +222,7 @@ void PMusrT0::HandleCmdKey(Int_t event, Int_t x, Int_t y, TObject *selected)
} else if (x == 'u') { // unzoom to the original range } else if (x == 'u') { // unzoom to the original range
UnZoom(); UnZoom();
} else if (x == 't') { // set t0 channel } else if (x == 't') { // set t0 channel
cout << endl << "will set t0 channel ..." << endl; SetT0Channel();
} else if (x == 'b') { // set first background channel } else if (x == 'b') { // set first background channel
cout << endl << "will set first background channel ..." << endl; cout << endl << "will set first background channel ..." << endl;
} else if (x == 'B') { // set last background channel } else if (x == 'B') { // set last background channel
@ -243,6 +245,7 @@ void PMusrT0::HandleMenuPopup(Int_t id)
{ {
switch (id) { switch (id) {
case P_MENU_ID_T0: case P_MENU_ID_T0:
SetT0Channel();
break; break;
case P_MENU_ID_FIRST_BKG_CHANNEL: case P_MENU_ID_FIRST_BKG_CHANNEL:
break; break;
@ -420,6 +423,18 @@ void PMusrT0::InitDataAndBkg()
fMainCanvas->Update(); fMainCanvas->Update();
} }
//--------------------------------------------------------------------------
// SetT0Channel
//--------------------------------------------------------------------------
/**
* <p>
*
*/
void PMusrT0::SetT0Channel()
{
cout << endl << "Set T0 Channel";
}
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
// UnZoom // UnZoom
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------

View File

@ -107,6 +107,7 @@ class PMusrT0 : public TObject, public TQObject
TLine *fLastDataLine; TLine *fLastDataLine;
void InitDataAndBkg(); void InitDataAndBkg();
void SetT0Channel();
void UnZoom(); void UnZoom();
ClassDef(PMusrT0, 1) ClassDef(PMusrT0, 1)