Changeset 1385 for trunk/MagicSoft/Mars
- Timestamp:
- 07/08/02 11:44:34 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1384 r1385 22 22 - cd to right canvas before drawing camera display 23 23 24 * meventdisp/MGEvtDisplay. cc:24 * meventdisp/MGEvtDisplay.[h,cc]: 25 25 - added the "Geometry"-Tab 26 - added MC informations to gui 26 27 27 28 * mgui/MCamDisplay.[h,cc]: -
trunk/MagicSoft/Mars/NEWS
r1384 r1385 25 25 - Added a camera display displaying the pixel numbers to the 26 26 event display gui. 27 28 - Added Monte Carlo Informations to event display gui 27 29 28 30 -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r1384 r1385 47 47 #include "MGeomCamMagic.h" 48 48 49 #include "MMcEvt.hxx" 50 49 51 ClassImp(MGEvtDisplay); 50 52 … … 131 133 132 134 // 133 // layout and add frame 135 // --- the top1 part of the window --- 136 // 137 TGHorizontalFrame *top2 = new TGHorizontalFrame(frame, 300, 100); 138 fList->Add(top2); 139 140 fEvtInfo = new TGLabel(top2, new TGString("")); 141 fList->Add(fEvtInfo); 142 143 top2->AddFrame(fEvtInfo, laystd); 144 145 // 146 // layout and add frames 134 147 // 135 148 TGLayoutHints *laytop1 = new TGLayoutHints(kLHintsTop); 136 149 fList->Add(laytop1); 137 138 150 frame->AddFrame(top1, laytop1); 151 frame->AddFrame(top2, laytop1); 139 152 } 140 153 … … 393 406 394 407 MReadMarsFile *read = new MReadMarsFile(tname, fname); 408 read->DisableAutoScheme(); 395 409 tlist->AddToList(read); 396 410 … … 430 444 { 431 445 delete this; 446 } 447 448 void MGEvtDisplay::UpdateMcLabel() 449 { 450 MMcEvt *evt=(MMcEvt*)GetParList()->FindObject("MMcEvt"); 451 if (!evt) 452 return; 453 454 TString txt = " "; 455 456 switch (evt->GetPartId()) 457 { 458 case kGAMMA: 459 txt += "Gamma"; 460 break; 461 case kPROTON: 462 txt += "Proton"; 463 break; 464 case kHELIUM: 465 txt += "Helium"; 466 break; 467 default: 468 txt += "Unknown Particle Id"; 469 } 470 471 txt += ": E="; 472 txt += (int)(evt->GetEnergy()+.5); 473 txt += "GeV r="; 474 txt += (int)(evt->GetImpact()/100+.5); 475 txt += "m ZA="; 476 txt += (int)(evt->GetTheta()*180/TMath::Pi()+.5); 477 txt += "° "; 478 479 fEvtInfo->SetText(txt); 432 480 } 433 481 … … 443 491 GetReader()->DecEventNum(); 444 492 UpdateDisplay(); 493 UpdateMcLabel(); 445 494 } 446 495 -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h
r1030 r1385 27 27 // 28 28 TGLabel *fNumOfEvts; 29 TGLabel *fEvtInfo; 29 30 TGTextEntry *fTxtEvtNr; 30 31 … … 62 63 Bool_t IsInitOk() { return fInitOk; } 63 64 65 void UpdateMcLabel(); 66 64 67 virtual void UpdateDisplay() = 0; 65 68 -
trunk/MagicSoft/Mars/meventdisp/Makefile
r1383 r1385 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../mraw -I../mgui -I../manalysis -I../mfileio 24 INCLUDES = -I. -I../mbase -I../mraw -I../mgui \ 25 -I../manalysis -I../mfileio -I../mmc 25 26 26 27 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.