Changeset 1052 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/08/01 10:57:01 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1043 r1052  
    11                                                                  -*-*- 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
    292 2001/11/06: Thomas Bretz
    393
     
    33123     - changed so, that the arrays are dreed and allocated only
    34124       as less as possible
    35      - removed (by comment) AddPixel
    36125
    37126   * mraw/MRawFileRead.[h,cc]:
  • trunk/MagicSoft/Mars/Makefile

    r1048 r1052  
    4848
    4949LIBRARIES = $(SUBDIRS:=.a)
     50MRPROPERS = $(SUBDIRS:=.mrproper)
     51CLEANERS  = $(SUBDIRS:=.clean)
    5052
    5153#------------------------------------------------------------------------------
     
    6264
    6365all: rmlib $(PROGRAMS) $(SOLIB)
     66        @echo " Done. "
     67        @echo " "
    6468
    6569# Use $(CXX) -v ... for a more verbose output
     
    8084
    8185$(LIBRARIES):
    82         @echo " " 
    8386        @echo " Creating lib$@:"
    8487        (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 ..;)
    8596
    8697dox:
     
    90101include Makefile.rules
    91102
    92 clean:  rmlib rmcint rmobjs rmcore rmbin
     103clean:  rmcint rmobjs rmcore rmlib
    93104
    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."
     105mrproper:       $(MRPROPERS) rmbin rmbak rmbakmac rmhtml clean
     106        @echo " Done."
    122107
    123108tar:    mrproper
  • trunk/MagicSoft/Mars/Makefile.rules

    r1003 r1052  
    77        @echo " - Building Library lib$(LIB)"
    88        $(AR) $(LIB) *.o
     9        @echo " "
    910
    1011$(CINT)Cint.cc: $(HEADERS)
     
    3031
    3132rmcint:
    32         @echo "Removing cint-stuff..."
     33        @echo " Removing cint-stuff..."
    3334        @rm -f *Cint.*
    3435
    3536rmlib: 
    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
    3840
    3941rmobjs:
    40         @echo "Removing object files..."
     42        @echo " Removing object files..."
    4143        @rm -f *.o
    4244
    4345rmcore:
    44         @echo "Removing core files..."
     46        @echo " Removing core files..."
    4547        @rm -f core*
    4648
    4749rmbin: 
    48         @echo "Removing binary files..."
     50        @echo " Removing binary files..."
    4951        @rm -f $(PROGRAMS) lib/$(SOLIB) so_locations
    5052
    5153rmbak:
    52         @echo "Removing backup files..."
     54        @echo " Removing backup files..."
    5355        @rm -f *~ kk.kk *.bak
     56
     57rmbakmac:
     58        @echo " Removing backup files in macros"
     59        @rm -f macros/*~
     60
     61rmhtml:
     62        @echo " Removing htmldoc-tree"
     63        @rm -rf htmldoc
    5464
    5565cflags:
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r1051 r1052  
    4747    fArray = new TClonesArray("MPedestalPix", 577);
    4848
    49     //
    50     // TClonesArray: The 'new operator with placement' must be used
    51     // FIXME: Use ExpandCraete instead
    52     //
    5349    for (int i=0; i<577; i++)
    5450        new ((*fArray)[i]) MPedestalPix;
     
    6157MPedestalCam::~MPedestalCam()
    6258{
    63     // FIXME: Do we have to delete the objects itself?
    6459    delete fArray;
    6560}
  • trunk/MagicSoft/Mars/manalysis/Makefile

    r1018 r1052  
    5050include ../Makefile.rules
    5151
    52 clean:  rmlib rmcint rmobjs rmcore rmbin
     52clean:  rmcint rmobjs rmcore rmlib
    5353
    5454mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mbase/Makefile

    r1035 r1052  
    6464include ../Makefile.rules
    6565
    66 clean:  rmlib rmcint rmobjs rmcore
     66clean:  rmcint rmobjs rmcore rmlib
    6767
    6868mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mdatacheck/Makefile

    r959 r1052  
    4141include ../Makefile.rules
    4242
    43 clean:  rmlib rmcint rmobjs rmcore rmbin
     43clean:  rmcint rmobjs rmcore rmlib
    4444
    4545mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.cc

    r1030 r1052  
    338338    TGPopupMenu *filemenu = new TGPopupMenu(gClient->GetRoot());
    339339    filemenu->AddEntry("Save &As...",           kFileSaveAs);
    340     filemenu->AddEntry("Save As display.&ps",   kFileSaveAsPS);
     340    filemenu->AddEntry("Save As display.p&s",   kFileSaveAsPS);
    341341    filemenu->AddEntry("Save As display.&eps",  kFileSaveAsEPS);
    342342    filemenu->AddEntry("Save As display.&gif",  kFileSaveAsGIF);
     
    350350
    351351    TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame);
    352     menubar->AddPopup("File", filemenu, laymenuitem);
     352    menubar->AddPopup("&File", filemenu, laymenuitem);
    353353    AddFrame(menubar, laymenubar);
    354354
     
    393393    AddMenuBar();
    394394    AddFrames(fname, tname);
     395
     396    SetWMSizeHints(450, 400, 1000, 1000, 10, 10);
     397    Move(rand()%100+50, rand()%100+50);
    395398}
    396399
  • trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.cc

    r1030 r1052  
    129129
    130130    //
    131     // set the smallest and biggest size of the Main frame
    132     //
    133     SetWMSizeHints(450, 400, 1000, 1000, 10, 10);
    134 
    135     //
    136131    // Map the window, set up the layout, etc.
    137132    //
  • trunk/MagicSoft/Mars/meventdisp/Makefile

    r959 r1052  
    4242include ../Makefile.rules
    4343
    44 clean:  rmlib rmcint rmobjs rmcore rmbin
     44clean:  rmcint rmobjs rmcore rmlib
    4545
    4646mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mfilter/Makefile

    r856 r1052  
    4343include ../Makefile.rules
    4444
    45 clean:  rmlib rmcint rmobjs rmcore
     45clean:  rmcint rmobjs rmcore rmlib
    4646
    4747mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mgui/MGeomCam.h

    r1048 r1052  
    66#endif
    77#ifndef ROOT_TObjArray
    8 #include "TObjArray.h"
     8#include <TObjArray.h>
    99#endif
    1010
  • trunk/MagicSoft/Mars/mgui/Makefile

    r1018 r1052  
    4545include ../Makefile.rules
    4646
    47 clean:  rmlib rmcint rmobjs rmcore rmbin
     47clean:  rmcint rmobjs rmcore rmlib
    4848
    4949mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mhist/MHHillas.cc

    r1048 r1052  
    3636    // connect all the histogram with the container fHist
    3737    //
    38     fAlpha  = new TH1F("\\alpha [^\\circ]", "Alpha of Hillas",   90, 0,  90);
     38    fAlpha  = new TH1F("\\alpha [\\circ]", "Alpha of Hillas",   90, 0,  90);
    3939    fWidth  = new TH1F("Width [mm]",  "Width of Hillas",  100, 0, 300);
    4040    fLength = new TH1F("Length [mm]", "Length of Hillas", 100, 0, 300);
     
    4646    fWidth->SetDirectory(NULL);
    4747
    48     fAlpha->GetXaxis()->SetTitle("Alpha [°]");
     48    fAlpha->GetXaxis()->SetTitle("\\alpha [\\circ]");
    4949    fLength->GetXaxis()->SetTitle("Length [mm]");
    5050    fDist->GetXaxis()->SetTitle("Dist [mm]");
  • trunk/MagicSoft/Mars/mhist/Makefile

    r961 r1052  
    4848include ../Makefile.rules
    4949
    50 clean:  rmlib rmcint rmobjs rmcore rmbin
     50clean:  rmcint rmobjs rmcore rmlib
    5151
    5252mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mmain/MBrowser.cc

    r1050 r1052  
    3232#include <TGButton.h>       // TGTextButton
    3333#include <TGMsgBox.h>       // TGMsgBox
     34#include <TBrowser.h>       // TBrowser
    3435#include <TGListBox.h>      // TGListBox
    3536#include <TGTextEntry.h>    // TGTextEntry
     
    4849
    4950enum {
     51    kFileTBrowser,
    5052    kFileClose,
    5153    kButDirUp,
     
    6264    //
    6365    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);
    6570    fList->Add(filemenu);
    6671
     
    7580
    7681    TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame);
    77     menubar->AddPopup("File", filemenu, laymenuitem);
     82    menubar->AddPopup("&File", filemenu, laymenuitem);
    7883    AddFrame(menubar, laymenubar);
    7984    fList->Add(menubar);
     
    320325    ChangeDir();
    321326    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);
    322328}
    323329
     
    450456}
    451457
     458// --------------------------------------------------------------------------
     459//
     460// Process events generated by the gui elements in the frame.
     461//
    452462Bool_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               return kTRUE;
    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 container
    520           //
    521 
    522           if (parm1 != kButton1 || fFileCont->NumSelected() != 1)
    523               return kTRUE;
    524 
    525           //
    526           //  one file selected
    527           //
    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 directory
    535           // change to this directory
    536           //
    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  
    4444
    4545enum {
    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_CAMDISPLAY
     46    kFileExit,
     47    kFileAbout,
     48
     49    kPicMagic,
     50    kPicMars,
     51
     52    kButEvtDisplay,
     53    kButDataCheck,
     54    kButAnalysis,
     55    kButMonteCarlo,
     56    kButCameraDisplay
    5757};
    5858
     
    6868
    6969    TGPopupMenu *filemenu = new TGPopupMenu(gClient->GetRoot());
    70     filemenu->AddEntry("Exit", M_FILE_EXIT);
    71     //fFileMenu->Associate(this);
     70    filemenu->AddEntry("E&xit", kFileExit);
     71    filemenu->Associate(this);
    7272
    7373    TGMenuBar *menubar = new TGMenuBar(this, 1, 1, kHorizontalFrame);
    74     menubar->AddPopup("File", filemenu, laymenuitem);
     74    menubar->AddPopup("&File", filemenu, laymenuitem);
    7575    AddFrame(menubar, laymenubar);
    7676
     
    8888    fPic2 = gClient->GetPicture("marslogo.xpm");
    8989
    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);
    9292
    9393    fList->Add(magic);
     
    163163    fList->Add(laybut);
    164164
    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
     172MMars::MMars()
     173: TGMainFrame(gClient->GetRoot(), 330, 400, kVerticalFrame|kFixedSize)
    175174{
    176175    //
     
    212211    //
    213212    //   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);
    216217
    217218    MapSubwindows();
     
    269270            {
    270271
    271             case M_BUTTON_EVTDISP:
     272            case kButEvtDisplay:
    272273                new MEvtDisp(this);
    273274                return kTRUE;
    274275
    275             case M_BUTTON_DATACHECK:
     276            case kButDataCheck:
    276277                new MDataCheck(this);
    277278                return kTRUE;
    278279
    279             case M_BUTTON_ANALYSE:
     280            case kButAnalysis:
    280281                new MAnalysis(this);
    281282                return kTRUE;
    282283
    283             case M_BUTTON_MONTECARLO:
     284            case kButMonteCarlo:
    284285                new MMonteCarlo(this);
    285286                return kTRUE;
    286287
    287             case M_BUTTON_CAMDISPLAY:
     288            case kButCameraDisplay:
    288289                new MCameraDisplay(this);
    289290                return kTRUE;
    290291
    291             case M_PICTURE_MAGIC:
     292            case kPicMagic:
    292293                gSystem->Exec("netscape http://hegra1.mppmu.mpg.de/MAGICWeb/ &");
    293294                return kTRUE;
    294295
    295             case M_PICTURE_MARS:
     296            case kPicMars:
    296297                gSystem->Exec("netscape http://magic.uni-sw.gwdg.de/mars/ &");
    297298                return kTRUE;
     
    299300
    300301        case kCM_MENU:
    301             if (parm1!=M_FILE_EXIT)
     302            if (parm1!=kFileExit)
    302303                return kTRUE;
    303304
  • trunk/MagicSoft/Mars/mmain/MMars.h

    r1016 r1052  
    3333
    3434public:
    35     MMars(UInt_t w=400, UInt_t h=500);
    36 
     35    MMars();
    3736    ~MMars();
    3837
  • trunk/MagicSoft/Mars/mmain/Makefile

    r1018 r1052  
    4747include ../Makefile.rules
    4848
    49 clean:  rmlib rmcint rmobjs rmcore rmbin
     49clean:  rmcint rmobjs rmcore rmlib
    5050
    5151mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mmontecarlo/Makefile

    r879 r1052  
    4242include ../Makefile.rules
    4343
    44 clean:  rmlib rmcint rmobjs rmcore rmbin
     44clean:  rmcint rmobjs rmcore rmlib
    4545
    4646mrproper:       clean rmbak
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r859 r1052  
    5656ClassImp(MRawEvtPixelIter);
    5757
     58MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
     59{
     60    fNumHiGainSamples = dat->GetNumHiGainSamples();
     61    fNumLoGainSamples = dat->GetNumLoGainSamples();
     62
     63    Reset();
     64}
     65
    5866// --------------------------------------------------------------------------
    5967//
     
    92100            fNumLoGainEntry++;
    93101            fLoGainId++;
    94             fLoGainPos += fData->GetNumLoGainSamples();
     102            fLoGainPos += fNumLoGainSamples;
    95103        }
    96104
     
    100108    fNumHiGainEntry++;
    101109    fHiGainId++;
    102     fHiGainPos += fData->GetNumHiGainSamples();
     110    fHiGainPos += fNumHiGainSamples;
    103111
    104112    //
     
    125133    fHiGainId   = fData->fHiGainPixId->GetArray()-1;
    126134    fLoGainId   = fData->fLoGainPixId->GetArray()-1;
    127     fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fData->GetNumHiGainSamples();
    128     fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fData->GetNumLoGainSamples();
     135    fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples;
     136    fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples;
    129137}
    130138
     
    145153// returns the sum of all hi gain fadc samples of the actual pixel
    146154//
    147 ULong_t MRawEvtPixelIter::GetSumHiGainFadcSamples() const
     155ULong_t MRawEvtPixelIter::GetSumHiGainSamples() const
    148156{
    149157    //
     
    151159    //
    152160    Byte_t *ptr = fHiGainPos;
    153     const Byte_t *end = ptr + fData->GetNumHiGainSamples();
     161    const Byte_t *end = ptr + fNumHiGainSamples;
    154162
    155163    ULong_t sum=0;
     
    166174// if no lo gain information is available 0 is returned.
    167175//
    168 ULong_t MRawEvtPixelIter::GetSumLoGainFadcSamples() const
     176ULong_t MRawEvtPixelIter::GetSumLoGainSamples() const
    169177{
    170178    //
     
    175183
    176184    Byte_t *ptr = fLoGainPos;
    177     const Byte_t *end = ptr + fData->GetNumLoGainSamples();
     185    const Byte_t *end = ptr + fNumLoGainSamples;
    178186
    179187    ULong_t sum=0;
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r1018 r1052  
    2828    UShort_t fNumEntry;
    2929
     30    Byte_t fNumHiGainSamples;   //!
     31    Byte_t fNumLoGainSamples;   //!
     32
    3033    MRawEvtData *fData;         //! pointer to object which we are iterating
    3134
    3235public:
    33     MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
    34     {
    35         Reset();
    36     }
     36    MRawEvtPixelIter(MRawEvtData *dat);
    3737
    3838    MRawEvtData *Next();
     
    6666    Byte_t GetNumPixels() const;
    6767
    68     Byte_t *GetHiGainFadcSamples() const
     68    Byte_t *GetHiGainSamples() const
    6969    {
    7070        //
     
    7777    }
    7878
    79     ULong_t GetSumHiGainFadcSamples() const;
     79    ULong_t GetSumHiGainSamples() const;
    8080
    8181    Bool_t HasLoGain() const
     
    8787    }
    8888
    89     Byte_t *GetLoGainFadcSamples() const
     89    Byte_t *GetLoGainSamples() const
    9090    {
    9191        //
     
    9696    }
    9797
    98     ULong_t GetSumLoGainFadcSamples() const;
     98    ULong_t GetSumLoGainSamples() const;
     99
    99100
    100101    void Reset();
  • trunk/MagicSoft/Mars/mraw/Makefile

    r546 r1052  
    4747include ../Makefile.rules
    4848
    49 clean:  rmlib rmcint rmobjs rmcore rmbin
     49clean:  rmcint rmobjs rmcore rmlib
    5050
    5151mrproper:       clean rmbak
Note: See TracChangeset for help on using the changeset viewer.