Changeset 1052 for trunk/MagicSoft/Mars
- Timestamp:
- 11/08/01 10:57:01 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1043 r1052 1 1 -*-*- END -*-*- 2 2001/11/08: Thomas Bretz 3 4 * manalysis/MCerPhotCalc.cc, manalysis/MPedCalcPedRun.cc, 5 mhist/MHFadcCam.cc: 6 - removed 'Fadc' from function names 7 8 * manalysis/MCerPhotEvt.[h,cc]: 9 - made AddPixel inline 10 11 * manalysis/MMcPedestalCopy.cc: 12 - added output 13 14 * manalysis/MPedestalCam.cc: 15 - removed FIXME 16 17 * Makefile's: 18 - some reordering 19 - changed to the output 20 21 * mbase/MReadTree.cc: 22 - removed setting of AutoDel-flag (this was not intended and doesn't 23 work for a TChain, yet) 24 25 * meventdisp/MGCamDisplay.cc, meventdisp/MGFadcDisp.cc: 26 - moved SetWMSizeHints to base class 27 28 * meventdisp/MGEvtDisplay.cc: 29 - added a random move and the SetWMSizeHints 30 31 * mhist/MHHillas.cc: 32 - replaced some text by Latex-formulas 33 34 * mmain/MBrowser.cc: 35 - added a menu entry for opening a TBrowser 36 - added a random move 37 38 * mmain/MMars.[h,cc]: 39 - changed enums to root style 40 - moved size specification from header to source 41 - changed SetWMSizeHints call 42 43 * mraw/MrawEvtPixelIter.[h,cc]: 44 - added fNum[Hi,Lo]GainSamples to make GetSum* faster 45 - removed 'Fadc' from function names 46 47 48 49 2001/11/07: Thomas Bretz 50 51 * Makefile: 52 - changed order in 'mrproper' 53 54 * manalysis/MCT1ReadAscii.cc, manalysis/MCerPhotCalc.cc: 55 - added InitSize 56 57 * manalysis/MCerPhotEvt.[h,cc]: 58 - introduces InitSize to speed up things 59 - changed []-operator to an unchecked access 60 61 * manalysis/MPedestalCam.h: 62 - changed ExpandCreateFast to ExpandCreate (due to lack of good dox) 63 - changed []-operator to an unchecked access 64 65 * mbase/MEvtLoop.cc: 66 - changed 'total' to 'real' time. 67 68 * mgui/MGeomCam.[h,cc]: 69 - moved []-operator code back to class definition, due to runtime speed 70 - changed []-operator to an unchecked access 71 72 * mhist/MHHillas.cc: 73 - changed 'degree' to Latex-style 74 75 * manalysis/MImgCleanStd.cc: 76 - we are now initialising an array holding the used pixel to prevent 77 looping through all pixel thousands of times 78 (MCerPhotEvt::IsPixelUsed) 79 80 * mbase/MWriteAsciiFile.cc: 81 - enhanced the documentation 82 83 * mmain/MBrowser.[h,cc]: 84 - enhanced the functionality to display the filename 85 - improved the layout 86 87 * mmain/MMars.cc: 88 - added calling of 'netscape' for the two picture buttons 89 90 91 2 92 2001/11/06: Thomas Bretz 3 93 … … 33 123 - changed so, that the arrays are dreed and allocated only 34 124 as less as possible 35 - removed (by comment) AddPixel36 125 37 126 * mraw/MRawFileRead.[h,cc]: -
trunk/MagicSoft/Mars/Makefile
r1048 r1052 48 48 49 49 LIBRARIES = $(SUBDIRS:=.a) 50 MRPROPERS = $(SUBDIRS:=.mrproper) 51 CLEANERS = $(SUBDIRS:=.clean) 50 52 51 53 #------------------------------------------------------------------------------ … … 62 64 63 65 all: rmlib $(PROGRAMS) $(SOLIB) 66 @echo " Done. " 67 @echo " " 64 68 65 69 # Use $(CXX) -v ... for a more verbose output … … 80 84 81 85 $(LIBRARIES): 82 @echo " "83 86 @echo " Creating lib$@:" 84 87 (cd $*; make; cd ..; mv $*/$@ lib/lib$@) 88 89 $(MRPROPERS): 90 @echo " Doing Mr.Proper in $(@:.mrproper=)" 91 (cd $(@:.mrproper=); (make mrproper > /dev/null); cd ..;) 92 93 $(CLEANERS): 94 @echo "Cleaning $(@:.clean=):" 95 (cd $(@:.clean=); make clean; cd ..;) 85 96 86 97 dox: … … 90 101 include Makefile.rules 91 102 92 clean: rm lib rmcint rmobjs rmcore rmbin103 clean: rmcint rmobjs rmcore rmlib 93 104 94 mrproper: clean rmbak 95 @echo "Removing backup files in macros" 96 @rm -f macros/*~ 97 @echo "Removing htmldoc-tree" 98 @rm -rf htmldoc 99 @echo "Doing Mr.Proper in manalysis" 100 @cd manalysis; (make mrproper > /dev/null); cd .. 101 @echo "Doing Mr.Proper in mbase" 102 @cd mbase; (make mrproper > /dev/null); cd .. 103 @echo "Doing Mr.Proper in mdatacheck" 104 @cd mdatacheck; (make mrproper > /dev/null); cd .. 105 @echo "Doing Mr.Proper in mevtdisp" 106 @cd meventdisp; (make mrproper > /dev/null); cd .. 107 @echo "Doing Mr.Proper in mfilter" 108 @cd mfilter; (make mrproper > /dev/null); cd .. 109 @echo "Doing Mr.Proper in mgui" 110 @cd mgui; (make mrproper > /dev/null); cd .. 111 @echo "Doing Mr.Proper in mhist" 112 @cd mhist; (make mrproper > /dev/null); cd .. 113 @echo "Doing Mr.Proper in mmain" 114 @cd mmain; (make mrproper > /dev/null); cd .. 115 @echo "Doing Mr.Proper in mmc" 116 @cd mmc; (make mrproper > /dev/null); cd .. 117 @echo "Doing Mr.Proper in mmontecarlo" 118 @cd mmontecarlo; (make mrproper > /dev/null); cd .. 119 @echo "Doing Mr.Proper in mraw" 120 @cd mraw; (make mrproper > /dev/null); cd .. 121 @echo "Done." 105 mrproper: $(MRPROPERS) rmbin rmbak rmbakmac rmhtml clean 106 @echo " Done." 122 107 123 108 tar: mrproper -
trunk/MagicSoft/Mars/Makefile.rules
r1003 r1052 7 7 @echo " - Building Library lib$(LIB)" 8 8 $(AR) $(LIB) *.o 9 @echo " " 9 10 10 11 $(CINT)Cint.cc: $(HEADERS) … … 30 31 31 32 rmcint: 32 @echo " Removing cint-stuff..."33 @echo " Removing cint-stuff..." 33 34 @rm -f *Cint.* 34 35 35 36 rmlib: 36 @echo "Removing libraries..." 37 @rm -f lib/lib*.a lib*.a 37 @echo " Removing libraries..." 38 @echo " " 39 @rm -f lib/lib*.a lib*.a 38 40 39 41 rmobjs: 40 @echo " Removing object files..."42 @echo " Removing object files..." 41 43 @rm -f *.o 42 44 43 45 rmcore: 44 @echo " Removing core files..."46 @echo " Removing core files..." 45 47 @rm -f core* 46 48 47 49 rmbin: 48 @echo " Removing binary files..."50 @echo " Removing binary files..." 49 51 @rm -f $(PROGRAMS) lib/$(SOLIB) so_locations 50 52 51 53 rmbak: 52 @echo " Removing backup files..."54 @echo " Removing backup files..." 53 55 @rm -f *~ kk.kk *.bak 56 57 rmbakmac: 58 @echo " Removing backup files in macros" 59 @rm -f macros/*~ 60 61 rmhtml: 62 @echo " Removing htmldoc-tree" 63 @rm -rf htmldoc 54 64 55 65 cflags: -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc
r1051 r1052 47 47 fArray = new TClonesArray("MPedestalPix", 577); 48 48 49 //50 // TClonesArray: The 'new operator with placement' must be used51 // FIXME: Use ExpandCraete instead52 //53 49 for (int i=0; i<577; i++) 54 50 new ((*fArray)[i]) MPedestalPix; … … 61 57 MPedestalCam::~MPedestalCam() 62 58 { 63 // FIXME: Do we have to delete the objects itself?64 59 delete fArray; 65 60 } -
trunk/MagicSoft/Mars/manalysis/Makefile
r1018 r1052 50 50 include ../Makefile.rules 51 51 52 clean: rm lib rmcint rmobjs rmcore rmbin52 clean: rmcint rmobjs rmcore rmlib 53 53 54 54 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mbase/Makefile
r1035 r1052 64 64 include ../Makefile.rules 65 65 66 clean: rm lib rmcint rmobjs rmcore66 clean: rmcint rmobjs rmcore rmlib 67 67 68 68 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mdatacheck/Makefile
r959 r1052 41 41 include ../Makefile.rules 42 42 43 clean: rm lib rmcint rmobjs rmcore rmbin43 clean: rmcint rmobjs rmcore rmlib 44 44 45 45 mrproper: clean rmbak -
trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc
r1030 r1052 338 338 TGPopupMenu *filemenu = new TGPopupMenu(gClient->GetRoot()); 339 339 filemenu->AddEntry("Save &As...", kFileSaveAs); 340 filemenu->AddEntry("Save As display. &ps", kFileSaveAsPS);340 filemenu->AddEntry("Save As display.p&s", kFileSaveAsPS); 341 341 filemenu->AddEntry("Save As display.&eps", kFileSaveAsEPS); 342 342 filemenu->AddEntry("Save As display.&gif", kFileSaveAsGIF); … … 350 350 351 351 TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame); 352 menubar->AddPopup(" File", filemenu, laymenuitem);352 menubar->AddPopup("&File", filemenu, laymenuitem); 353 353 AddFrame(menubar, laymenubar); 354 354 … … 393 393 AddMenuBar(); 394 394 AddFrames(fname, tname); 395 396 SetWMSizeHints(450, 400, 1000, 1000, 10, 10); 397 Move(rand()%100+50, rand()%100+50); 395 398 } 396 399 -
trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc
r1030 r1052 129 129 130 130 // 131 // set the smallest and biggest size of the Main frame132 //133 SetWMSizeHints(450, 400, 1000, 1000, 10, 10);134 135 //136 131 // Map the window, set up the layout, etc. 137 132 // -
trunk/MagicSoft/Mars/meventdisp/Makefile
r959 r1052 42 42 include ../Makefile.rules 43 43 44 clean: rm lib rmcint rmobjs rmcore rmbin44 clean: rmcint rmobjs rmcore rmlib 45 45 46 46 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mfilter/Makefile
r856 r1052 43 43 include ../Makefile.rules 44 44 45 clean: rm lib rmcint rmobjs rmcore45 clean: rmcint rmobjs rmcore rmlib 46 46 47 47 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mgui/MGeomCam.h
r1048 r1052 6 6 #endif 7 7 #ifndef ROOT_TObjArray 8 #include "TObjArray.h"8 #include <TObjArray.h> 9 9 #endif 10 10 -
trunk/MagicSoft/Mars/mgui/Makefile
r1018 r1052 45 45 include ../Makefile.rules 46 46 47 clean: rm lib rmcint rmobjs rmcore rmbin47 clean: rmcint rmobjs rmcore rmlib 48 48 49 49 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mhist/MHHillas.cc
r1048 r1052 36 36 // connect all the histogram with the container fHist 37 37 // 38 fAlpha = new TH1F("\\alpha [ ^\\circ]", "Alpha of Hillas", 90, 0, 90);38 fAlpha = new TH1F("\\alpha [\\circ]", "Alpha of Hillas", 90, 0, 90); 39 39 fWidth = new TH1F("Width [mm]", "Width of Hillas", 100, 0, 300); 40 40 fLength = new TH1F("Length [mm]", "Length of Hillas", 100, 0, 300); … … 46 46 fWidth->SetDirectory(NULL); 47 47 48 fAlpha->GetXaxis()->SetTitle(" Alpha [°]");48 fAlpha->GetXaxis()->SetTitle("\\alpha [\\circ]"); 49 49 fLength->GetXaxis()->SetTitle("Length [mm]"); 50 50 fDist->GetXaxis()->SetTitle("Dist [mm]"); -
trunk/MagicSoft/Mars/mhist/Makefile
r961 r1052 48 48 include ../Makefile.rules 49 49 50 clean: rm lib rmcint rmobjs rmcore rmbin50 clean: rmcint rmobjs rmcore rmlib 51 51 52 52 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mmain/MBrowser.cc
r1050 r1052 32 32 #include <TGButton.h> // TGTextButton 33 33 #include <TGMsgBox.h> // TGMsgBox 34 #include <TBrowser.h> // TBrowser 34 35 #include <TGListBox.h> // TGListBox 35 36 #include <TGTextEntry.h> // TGTextEntry … … 48 49 49 50 enum { 51 kFileTBrowser, 50 52 kFileClose, 51 53 kButDirUp, … … 62 64 // 63 65 TGPopupMenu *filemenu = new TGPopupMenu(gClient->GetRoot()); 64 filemenu->AddEntry("Close", kFileClose); 66 filemenu->AddEntry("Open &TBrowser", kFileTBrowser); 67 filemenu->AddSeparator(); 68 filemenu->AddEntry("&Close", kFileClose); 69 filemenu->Associate(this); 65 70 fList->Add(filemenu); 66 71 … … 75 80 76 81 TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame); 77 menubar->AddPopup(" File", filemenu, laymenuitem);82 menubar->AddPopup("&File", filemenu, laymenuitem); 78 83 AddFrame(menubar, laymenubar); 79 84 fList->Add(menubar); … … 320 325 ChangeDir(); 321 326 SetWMSizeHints(400, 350, 1000, 1000, 10, 10); // set the smallest and biggest size of the Main frame 327 Move(rand()%100+50, rand()%100+50); 322 328 } 323 329 … … 450 456 } 451 457 458 // -------------------------------------------------------------------------- 459 // 460 // Process events generated by the gui elements in the frame. 461 // 452 462 Bool_t MBrowser::ProcessMessage(Long_t msg, Long_t parm1, Long_t) 453 { 454 // Process events generated by the buttons in the frame.455 456 switch (GET_MSG(msg))457 {458 case kC_TEXTENTRY:459 if (GET_SUBMSG(msg)!=kTE_ENTER) 460 return kTRUE;461 462 SetFileName(fEntry->GetText()); 463 return kTRUE;464 465 case kC_COMMAND:466 switch (GET_SUBMSG(msg))467 {468 case kCM_BUTTON:469 470 switch (parm1)471 {472 case kButDirUp : 473 //474 // goto the parent directory 475 //476 ChangeDir("..");477 478 479 case kButListMode:480 fFileView->SetViewMode(kLVList); 481 fDetail->SetState(kButtonUp) ;482 return kTRUE;483 484 case kButDetailMode:485 fFileView->SetViewMode(kLVDetails);486 fListMode->SetState(kButtonUp);487 return kTRUE;488 } 489 return kTRUE;490 491 case kCM_COMBOBOX:492 //493 // FIXME: Don't add the new entry to the list! 494 // But to do this we need the number of entries in the list.495 //496 if (parm1 != kCBDirectory)497 return kTRUE;498 499 ChangeDir(((TGTreeLBEntry*)fDir->GetSelectedEntry())->GetPath()->GetString());500 return kTRUE; 501 502 case kCM_MENU: 503 if (parm1==kFileClose) 504 CloseWindow(); 505 return kTRUE;506 }507 return kTRUE;508 509 case kC_CONTAINER: 510 switch (GET_SUBMSG(msg))511 {512 513 // case kCT_ITEMCLICK: 514 // printf ("itemclick\n");515 // break;516 517 case kCT_ITEMDBLCLICK: 518 //519 // process the double click in the file view container520 //521 522 if (parm1 != kButton1 || fFileCont->NumSelected() != 1)523 return kTRUE;524 525 //526 // one file selected527 //528 void *dummy = NULL;529 const TGFileItem *item = (TGFileItem *)fFileCont->GetNextSelected(&dummy);530 531 const char *str = item->GetItemName()->GetString();532 533 //534 // if the user choose a directory535 // change to this directory536 //537 if (S_ISDIR(item->GetType()))538 {539 ChangeDir(str);540 return kTRUE;541 }542 543 SetFileName(str);544 return kTRUE;545 }546 }547 return kTRUE;548 } 463 { 464 switch (GET_MSG(msg)) 465 { 466 case kC_TEXTENTRY: 467 if (GET_SUBMSG(msg)!=kTE_ENTER) 468 return kTRUE; 469 470 SetFileName(fEntry->GetText()); 471 return kTRUE; 472 473 case kC_COMMAND: 474 switch (GET_SUBMSG(msg)) 475 { 476 case kCM_MENU: 477 switch (parm1) 478 { 479 case kFileClose: 480 CloseWindow(); 481 return kTRUE; 482 483 case kFileTBrowser: 484 new TBrowser(); 485 return kTRUE; 486 } 487 return kTRUE; 488 489 case kCM_BUTTON: 490 switch (parm1) 491 { 492 case kButDirUp: 493 // 494 // goto the parent directory 495 // 496 ChangeDir(".."); 497 return kTRUE; 498 499 case kButListMode: 500 fFileView->SetViewMode(kLVList); 501 fDetail->SetState(kButtonUp); 502 return kTRUE; 503 504 case kButDetailMode: 505 fFileView->SetViewMode(kLVDetails); 506 fListMode->SetState(kButtonUp); 507 return kTRUE; 508 } 509 return kTRUE; 510 511 case kCM_COMBOBOX: 512 if (parm1 != kCBDirectory) 513 return kTRUE; 514 515 ChangeDir(((TGTreeLBEntry*)fDir->GetSelectedEntry())->GetPath()->GetString()); 516 return kTRUE; 517 } 518 return kTRUE; 519 520 case kC_CONTAINER: 521 switch (GET_SUBMSG(msg)) 522 { 523 524 // case kCT_ITEMCLICK: 525 // printf ("itemclick\n"); 526 // break; 527 528 case kCT_ITEMDBLCLICK: 529 // 530 // process the double click in the file view container 531 // 532 if (parm1 != kButton1 || fFileCont->NumSelected() != 1) 533 return kTRUE; 534 535 // 536 // one file selected 537 // 538 void *dummy = NULL; 539 const TGFileItem *item = (TGFileItem *)fFileCont->GetNextSelected(&dummy); 540 541 const char *str = item->GetItemName()->GetString(); 542 543 // 544 // if the user choose a directory 545 // change to this directory 546 // 547 if (S_ISDIR(item->GetType())) 548 { 549 ChangeDir(str); 550 return kTRUE; 551 } 552 553 SetFileName(str); 554 return kTRUE; 555 } 556 } 557 return kTRUE; 558 } -
trunk/MagicSoft/Mars/mmain/MMars.cc
r1050 r1052 44 44 45 45 enum { 46 M_FILE_EXIT,47 M_FILE_ABOUT,48 49 M_PICTURE_MAGIC,50 M_PICTURE_MARS,51 52 M_BUTTON_EVTDISP,53 M_BUTTON_DATACHECK,54 M_BUTTON_ANALYSE,55 M_BUTTON_MONTECARLO,56 M_BUTTON_CAMDISPLAY46 kFileExit, 47 kFileAbout, 48 49 kPicMagic, 50 kPicMars, 51 52 kButEvtDisplay, 53 kButDataCheck, 54 kButAnalysis, 55 kButMonteCarlo, 56 kButCameraDisplay 57 57 }; 58 58 … … 68 68 69 69 TGPopupMenu *filemenu = new TGPopupMenu(gClient->GetRoot()); 70 filemenu->AddEntry("E xit", M_FILE_EXIT);71 //fFileMenu->Associate(this);70 filemenu->AddEntry("E&xit", kFileExit); 71 filemenu->Associate(this); 72 72 73 73 TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame); 74 menubar->AddPopup(" File", filemenu, laymenuitem);74 menubar->AddPopup("&File", filemenu, laymenuitem); 75 75 AddFrame(menubar, laymenubar); 76 76 … … 88 88 fPic2 = gClient->GetPicture("marslogo.xpm"); 89 89 90 TGPictureButton *magic = new TGPictureButton(top, fPic1, M_PICTURE_MAGIC);91 TGPictureButton *mars = new TGPictureButton(top, fPic2, M_PICTURE_MARS);90 TGPictureButton *magic = new TGPictureButton(top, fPic1, kPicMagic); 91 TGPictureButton *mars = new TGPictureButton(top, fPic2, kPicMars); 92 92 93 93 fList->Add(magic); … … 163 163 fList->Add(laybut); 164 164 165 CreateTextButton(tab2, "Event Display", M_BUTTON_EVTDISP, laybut); 166 CreateTextButton(tab2, "Data Check", M_BUTTON_DATACHECK, laybut); 167 CreateTextButton(tab2, "Analysis", M_BUTTON_ANALYSE, laybut); 168 CreateTextButton(tab2, "Monte Carlo", M_BUTTON_MONTECARLO, laybut); 169 CreateTextButton(tab2, "Camera Display", M_BUTTON_CAMDISPLAY, laybut); 170 } 171 172 MMars::MMars(/*const TGWindow *p,*/ UInt_t w, UInt_t h) 173 : TGMainFrame(gClient->GetRoot(), w, h) 174 //: MBrowser (gClient->GetRoot(), gClient->GetRoot(), w, h) 165 CreateTextButton(tab2, "Event Display", kButEvtDisplay, laybut); 166 CreateTextButton(tab2, "Data Check", kButDataCheck, laybut); 167 CreateTextButton(tab2, "Analysis", kButAnalysis, laybut); 168 CreateTextButton(tab2, "Monte Carlo", kButMonteCarlo, laybut); 169 CreateTextButton(tab2, "Camera Display", kButCameraDisplay, laybut); 170 } 171 172 MMars::MMars() 173 : TGMainFrame(gClient->GetRoot(), 330, 400, kVerticalFrame|kFixedSize) 175 174 { 176 175 // … … 212 211 // 213 212 // Map the window, set up the layout, etc. 214 // 215 SetWMSizeHints(330, 410, 330, 410, 10, 10); // set the smallest and biggest size of the Main frame 213 // kFixedSize seems to be ignored 214 // 215 SetWMSizeHints(GetWidth(), GetHeight(), GetWidth(), GetHeight(), 0, 0); // set the smallest and biggest size of the Main frame 216 Move(rand()%100, rand()%100); 216 217 217 218 MapSubwindows(); … … 269 270 { 270 271 271 case M_BUTTON_EVTDISP:272 case kButEvtDisplay: 272 273 new MEvtDisp(this); 273 274 return kTRUE; 274 275 275 case M_BUTTON_DATACHECK:276 case kButDataCheck: 276 277 new MDataCheck(this); 277 278 return kTRUE; 278 279 279 case M_BUTTON_ANALYSE:280 case kButAnalysis: 280 281 new MAnalysis(this); 281 282 return kTRUE; 282 283 283 case M_BUTTON_MONTECARLO:284 case kButMonteCarlo: 284 285 new MMonteCarlo(this); 285 286 return kTRUE; 286 287 287 case M_BUTTON_CAMDISPLAY:288 case kButCameraDisplay: 288 289 new MCameraDisplay(this); 289 290 return kTRUE; 290 291 291 case M_PICTURE_MAGIC:292 case kPicMagic: 292 293 gSystem->Exec("netscape http://hegra1.mppmu.mpg.de/MAGICWeb/ &"); 293 294 return kTRUE; 294 295 295 case M_PICTURE_MARS:296 case kPicMars: 296 297 gSystem->Exec("netscape http://magic.uni-sw.gwdg.de/mars/ &"); 297 298 return kTRUE; … … 299 300 300 301 case kCM_MENU: 301 if (parm1!= M_FILE_EXIT)302 if (parm1!=kFileExit) 302 303 return kTRUE; 303 304 -
trunk/MagicSoft/Mars/mmain/MMars.h
r1016 r1052 33 33 34 34 public: 35 MMars(UInt_t w=400, UInt_t h=500); 36 35 MMars(); 37 36 ~MMars(); 38 37 -
trunk/MagicSoft/Mars/mmain/Makefile
r1018 r1052 47 47 include ../Makefile.rules 48 48 49 clean: rm lib rmcint rmobjs rmcore rmbin49 clean: rmcint rmobjs rmcore rmlib 50 50 51 51 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mmontecarlo/Makefile
r879 r1052 42 42 include ../Makefile.rules 43 43 44 clean: rm lib rmcint rmobjs rmcore rmbin44 clean: rmcint rmobjs rmcore rmlib 45 45 46 46 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r859 r1052 56 56 ClassImp(MRawEvtPixelIter); 57 57 58 MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat) 59 { 60 fNumHiGainSamples = dat->GetNumHiGainSamples(); 61 fNumLoGainSamples = dat->GetNumLoGainSamples(); 62 63 Reset(); 64 } 65 58 66 // -------------------------------------------------------------------------- 59 67 // … … 92 100 fNumLoGainEntry++; 93 101 fLoGainId++; 94 fLoGainPos += f Data->GetNumLoGainSamples();102 fLoGainPos += fNumLoGainSamples; 95 103 } 96 104 … … 100 108 fNumHiGainEntry++; 101 109 fHiGainId++; 102 fHiGainPos += f Data->GetNumHiGainSamples();110 fHiGainPos += fNumHiGainSamples; 103 111 104 112 // … … 125 133 fHiGainId = fData->fHiGainPixId->GetArray()-1; 126 134 fLoGainId = fData->fLoGainPixId->GetArray()-1; 127 fHiGainPos = fData->fHiGainFadcSamples->GetArray()-f Data->GetNumHiGainSamples();128 fLoGainPos = fData->fLoGainFadcSamples->GetArray()-f Data->GetNumLoGainSamples();135 fHiGainPos = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples; 136 fLoGainPos = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples; 129 137 } 130 138 … … 145 153 // returns the sum of all hi gain fadc samples of the actual pixel 146 154 // 147 ULong_t MRawEvtPixelIter::GetSumHiGain FadcSamples() const155 ULong_t MRawEvtPixelIter::GetSumHiGainSamples() const 148 156 { 149 157 // … … 151 159 // 152 160 Byte_t *ptr = fHiGainPos; 153 const Byte_t *end = ptr + f Data->GetNumHiGainSamples();161 const Byte_t *end = ptr + fNumHiGainSamples; 154 162 155 163 ULong_t sum=0; … … 166 174 // if no lo gain information is available 0 is returned. 167 175 // 168 ULong_t MRawEvtPixelIter::GetSumLoGain FadcSamples() const176 ULong_t MRawEvtPixelIter::GetSumLoGainSamples() const 169 177 { 170 178 // … … 175 183 176 184 Byte_t *ptr = fLoGainPos; 177 const Byte_t *end = ptr + f Data->GetNumLoGainSamples();185 const Byte_t *end = ptr + fNumLoGainSamples; 178 186 179 187 ULong_t sum=0; -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r1018 r1052 28 28 UShort_t fNumEntry; 29 29 30 Byte_t fNumHiGainSamples; //! 31 Byte_t fNumLoGainSamples; //! 32 30 33 MRawEvtData *fData; //! pointer to object which we are iterating 31 34 32 35 public: 33 MRawEvtPixelIter(MRawEvtData *dat) : fData(dat) 34 { 35 Reset(); 36 } 36 MRawEvtPixelIter(MRawEvtData *dat); 37 37 38 38 MRawEvtData *Next(); … … 66 66 Byte_t GetNumPixels() const; 67 67 68 Byte_t *GetHiGain FadcSamples() const68 Byte_t *GetHiGainSamples() const 69 69 { 70 70 // … … 77 77 } 78 78 79 ULong_t GetSumHiGain FadcSamples() const;79 ULong_t GetSumHiGainSamples() const; 80 80 81 81 Bool_t HasLoGain() const … … 87 87 } 88 88 89 Byte_t *GetLoGain FadcSamples() const89 Byte_t *GetLoGainSamples() const 90 90 { 91 91 // … … 96 96 } 97 97 98 ULong_t GetSumLoGainFadcSamples() const; 98 ULong_t GetSumLoGainSamples() const; 99 99 100 100 101 void Reset(); -
trunk/MagicSoft/Mars/mraw/Makefile
r546 r1052 47 47 include ../Makefile.rules 48 48 49 clean: rm lib rmcint rmobjs rmcore rmbin49 clean: rmcint rmobjs rmcore rmlib 50 50 51 51 mrproper: clean rmbak
Note:
See TracChangeset
for help on using the changeset viewer.