Changeset 2274


Ignore:
Timestamp:
07/12/03 22:01:34 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2273 r2274  
    1515   * mraw/MRawRunHeader.cc:
    1616     - added an 'inf' to the log-stream
     17 
     18   * macros/status.C:
     19     - added some more plots
     20     - added some sanity chacks
     21
     22   * macros/sumevents.C, macros/sumeventserr.C, macros/sumeventsrms.C
     23     macros/sumpedestalrms.C, macros/sumpedestals.C:
     24     - fixed SetOptStat
     25     
     26   * manalysis/MBlindPixelCalc.[h,cc]:
     27     - removed dangerous SetPixels(int, short*)
     28     - changed Id to Idx
     29     - fixed a bug in SetPixels which caused crashes
     30     - renamed SetPixels to SetPixelIndices
     31
     32   * mhist/MHCamera.[h,cc]:
     33     - removed SetOptStat and fOptStat - found a better solution
     34     - fixed DistancetoPrimitive to show TPaveStat correctly
     35     - Use GetPainter() instead of an own THistPainter
     36
     37   * mmain/MStatusDisplay.cc:
     38     - some small changes to the layout
    1739
    1840
  • trunk/MagicSoft/Mars/macros/status.C

    r2226 r2274  
    3131/////////////////////////////////////////////////////////////////////////////
    3232
    33 void status(const char *fname="cosmics.root")
     33void status(const char *fname="*1947*cosmic*.root")
    3434{
    3535    //
     
    6464    plist.AddToList(&geomcam);
    6565
     66    /*
     67     MSrcPosCam src;
     68     src.SetXY(1./geomcam.GetConvMm2Deg(), 0);
     69     plist.AddToList(&src);
     70     */
     71
    6672    //
    6773    // Now setup the tasks and tasklist:
     
    7884    MCerPhotCalc      ncalc;
    7985
    80     MBlindPixelCalc   blind;
     86    TArrayS blinds(2);
     87    blinds[0] = 271;
     88    blinds[1] = 291;
     89
     90    MBlindPixelCalc blind;
     91    //blind.SetPixelIndices(blinds);
    8192    blind.SetUseInterpolation();
    8293
     
    8798    MCT1SupercutsCalc calc1;
    8899
     100    MHCamEvent hist("PedestalRms");
     101    hist.SetType(1);
     102    plist.AddToList(&hist);
     103
    89104    // -------------------------------------------
    90105    MFillH hfill0("Uncleaned [MHCamEvent]", "MCerPhotEvt");
    91     MFillH hfill1("MHHillas", "MHillas");
    92     MFillH hfill2("MHHillasExt");
    93     MFillH hfill3("MHHillasExtSrc [MHHillasExt]", "MHillasSrc");
    94     MFillH hfill4("MHHillasSrc","MHillasSrc");
    95     MFillH hfill5("MHNewImagePar","MNewImagePar");
    96     MFillH hfill6("MHStarMap", "MHillas");
    97     MFillH hfill7("Cleaned [MHCamEvent]", "MCerPhotEvt");
    98     MFillH hfill8("MHHadronness", "MHadronness");
    99     MFillH hfill9("MHSigmaTheta");
     106    MFillH hfill1("Pedestals [MHCamEvent]", "MPedestalCam");
     107    MFillH hfill2("PedestalRms", "MPedestalCam");
     108    MFillH hfill3("MHHillas", "MHillas");
     109    MFillH hfill4("MHHillasExt");
     110    MFillH hfill5("MHHillasExtSrc [MHHillasExt]", "MHillasSrc");
     111    MFillH hfill6("MHHillasSrc","MHillasSrc");
     112    MFillH hfill7("MHNewImagePar","MNewImagePar");
     113    MFillH hfill8("MHStarMap", "MHillas");
     114    MFillH hfill9("Cleaned [MHCamEvent]", "MCerPhotEvt");
     115    MFillH hfill10("MHHadronness", "MHadronness");
     116    MFillH hfill11("MHSigmaTheta");
    100117
    101118    tlist.AddToList(&read);
     
    103120    tlist.AddToList(&pnsb);
    104121    tlist.AddToList(&ncalc);
     122    tlist.AddToList(&blind);
    105123    tlist.AddToList(&hfill0);
    106     tlist.AddToList(&blind);
    107124    //tlist.AddToList(&sgcal);
    108125    tlist.AddToList(&clean);
     
    117134    tlist.AddToList(&hfill6);
    118135    tlist.AddToList(&hfill7);
    119     //tlist.AddToList(&hfill8);
     136    tlist.AddToList(&hfill8);
     137    tlist.AddToList(&hfill9);
     138    //tlist.AddToList(&hfill10);
    120139
    121140    MEvtLoop evtloop;
     
    131150    tlist.PrintStatistics();
    132151
     152    MHCamera &uncl = *((MHCamEvent*)plist.FindObject("Uncleaned"))->GetHistByName();
     153    MHCamera &hped = *((MHCamEvent*)plist.FindObject("Pedestals"))->GetHistByName();
     154    MHCamera &hrms = *((MHCamEvent*)plist.FindObject("PedestalRms"))->GetHistByName();
     155
     156    for (int i=0; i<577; i++)
     157    {
     158        if (uncl.IsUsed(i))
     159        {
     160            if (uncl[i+1]>uncl.GetMean()+3*uncl.GetRMS())
     161                cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " > 3*rms" << endl;
     162            if (uncl[i+1]==0)
     163                cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " <= 0" << endl;
     164            if (uncl[i+1]<uncl.GetMean()-3*uncl.GetRMS())
     165                cout << "Mean Charge of Pixel-Index #" << i << ": " << uncl[i+1] << " < 3*rms" << endl;
     166        }
     167        if (hped.IsUsed(i))
     168        {
     169            if (hped[i+1]>hped.GetMean()+1.5*hped.GetRMS())
     170                cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " > 1.5*rms" << endl;
     171            if (hped[i+1]==0)
     172                cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " <= 0" << endl;
     173            if (hped[i+1]<hped.GetMean()-1.5*hped.GetRMS())
     174                cout << "Mean Pedestal of Pixel-Index #" << i << ": " << hped[i+1] << " < 1.5*rms" << endl;
     175        }
     176        if (hrms.IsUsed(i))
     177        {
     178            if (hrms[i+1]>hrms.GetMean()+4*hrms.GetRMS())
     179                cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " > 4*rms" << endl;
     180            if (hrms[i+1]==0)
     181                cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " <= 0" << endl;
     182            if (hrms[i+1]<hrms.GetMean()-4*hrms.GetRMS())
     183                cout << "Mean PedestalRMS of Pixel-Index #" << i << ": " << hrms[i+1] << " < 4*rms" << endl;
     184        }
     185    }
     186
    133187    //
    134188    // Make sure the display hasn't been deleted by the user while the
     
    138192    {
    139193        // Save data in a postscriptfile (status.ps)
    140         d->SaveAsPS();
     194        //d->SaveAsPS();
    141195        /*
    142196         * ----------- Write status to a root file ------------
  • trunk/MagicSoft/Mars/macros/sumevents.C

    r2265 r2274  
    9090    disp3->SetYTitle("\\sigma_{S} [%]");
    9191
    92     disp1->SetOptStat(1111);
    93     disp2->SetOptStat(1101);
    94     disp3->SetOptStat(1101);
     92    TText text(0.1, 0.5, &fname[fname.Last('/')+1]);
     93    text.SetTextSize(0.015);
     94    text.DrawClone();
    9595
    9696    c->cd(1);
     97    gStyle->SetOptStat(1111);
    9798    disp1->Draw("hist");
     99    gPad->Update();
    98100
    99101    c->cd(2);
    100102    gPad->SetLogy();
     103    gStyle->SetOptStat(1101);
    101104    disp2->Draw("hist");
     105    gPad->Update();
    102106
    103107    c->cd(3);
    104108    gPad->SetLogy();
     109    gStyle->SetOptStat(1101);
    105110    disp3->Draw("hist");
     111    gPad->Update();
    106112
    107113    c->cd(4);
    108114    gPad->SetBorderMode(0);
    109     TText text(0.1, 0.95, &fname[fname.Last('/')+1]);
    110     text.SetTextSize(0.03);
    111     text.DrawClone();
    112115    gPad->Divide(1,1);
    113116    gPad->cd(1);
  • trunk/MagicSoft/Mars/macros/sumeventserr.C

    r2265 r2274  
    9393    disp3->SetYTitle("\\sigma_{S_{err}} [%]");
    9494
    95     disp1->SetOptStat(1111);
    96     disp2->SetOptStat(1101);
    97     disp3->SetOptStat(1101);
     95    TText text(0.1, 0.5, &fname[fname.Last('/')+1]);
     96    text.SetTextSize(0.015);
     97    text.DrawClone();
     98
     99    c->cd(1);
     100    gStyle->SetOptStat(1111);
     101    disp1->Draw("hist");
     102    gPad->Update();
     103
     104    c->cd(2);
     105    gPad->SetLogy();
     106    gStyle->SetOptStat(1101);
     107    disp2->Draw("hist");
     108    gPad->Update();
     109
     110    c->cd(3);
     111    gPad->SetLogy();
     112    gStyle->SetOptStat(1101);
     113    disp3->Draw("hist");
     114    gPad->Update();
    98115
    99116    c->cd(4);
    100117    gPad->SetBorderMode(0);
    101     TText text(0.1, 0.95, &fname[fname.Last('/')+1]);
    102     text.SetTextSize(0.03);
    103     text.DrawClone();
    104118    gPad->Divide(1,1);
    105119    gPad->cd(1);
     
    117131    gPad->cd(1);
    118132    disp3->Draw();
    119 
    120     c->cd(1);
    121     disp1->Draw("hist");
    122 
    123     c->cd(2);
    124     gPad->SetLogy();
    125     disp2->Draw("hist");
    126 
    127     c->cd(3);
    128     gPad->SetLogy();
    129     disp3->Draw("hist");
    130133
    131134    c->SaveAs(fname(0, fname.Last('.')+1) + "ps");
  • trunk/MagicSoft/Mars/macros/sumeventsrms.C

    r2252 r2274  
    100100    disp3->SetYTitle("rel.err [%]");
    101101
     102    TText text(0.1, 0.5, &fname[fname.Last('/')+1]);
     103    text.SetTextSize(0.015);
     104    text.DrawClone();
     105
     106    c->cd(1);
     107    disp1->Draw("hist");
     108
     109    c->cd(2);
     110    gPad->SetLogy();
     111    disp2->Draw("hist");
     112
     113    c->cd(3);
     114    gPad->SetLogy();
     115    disp3->Draw("hist");
     116
    102117    c->cd(4);
    103118    gPad->SetBorderMode(0);
    104     TText text(0.1, 0.95, &fname[fname.Last('/')+1]);
    105     text.SetTextSize(0.03);
    106     text.DrawClone();
    107119    gPad->Divide(1,1);
    108120    gPad->cd(1);
     
    120132    gPad->cd(1);
    121133    disp3->Draw();
    122 
    123     c->cd(1);
    124     disp1->Draw("hist");
    125 
    126     c->cd(2);
    127     gPad->SetLogy();
    128     disp2->Draw("hist");
    129 
    130     c->cd(3);
    131     gPad->SetLogy();
    132     disp3->Draw("hist");
    133134
    134135    c->SaveAs(fname(0, fname.Last('.')+1) + "ps");
  • trunk/MagicSoft/Mars/macros/sumpedestalrms.C

    r2265 r2274  
    9494    disp3->SetYTitle("\\sigma_{P_{rms}} [%]");
    9595
    96     disp1->SetOptStat(1111);
    97     disp2->SetOptStat(1101);
    98     disp3->SetOptStat(1101);
     96    TText text(0.1, 0.5, &fname[fname.Last('/')+1]);
     97    text.SetTextSize(0.015);
     98    text.DrawClone();
    9999
    100100    c->cd(1);
     101    gStyle->SetOptStat(1111);
    101102    disp1->Draw("hist");
     103    gPad->Update();
    102104
    103105    c->cd(2);
     106    gStyle->SetOptStat(1101);
    104107    disp2->Draw("hist");
     108    gPad->Update();
    105109
    106110    c->cd(3);
     111    gStyle->SetOptStat(1101);
    107112    disp3->Draw("hist");
     113    gPad->Update();
    108114 
    109115    c->cd(4);
    110116    gPad->SetBorderMode(0);
    111     TText text(0.1, 0.95, &fname[fname.Last('/')+1]);
    112     text.SetTextSize(0.03);
    113     text.DrawClone();
    114117    gPad->Divide(1,1);
    115118    gPad->cd(1);
  • trunk/MagicSoft/Mars/macros/sumpedestals.C

    r2265 r2274  
    9090    disp3->SetYTitle("\\sigma_{P} [%]");
    9191
    92     disp1->SetOptStat(1111);
    93     disp2->SetOptStat(1101);
    94     disp3->SetOptStat(1101);
     92    TText text(0.1, 0.5, &fname[fname.Last('/')+1]);
     93    text.SetTextSize(0.015);
     94    text.DrawClone();
    9595
    9696    c->cd(1);
     97    gStyle->SetOptStat(1111);
    9798    disp1->Draw("hist");
     99    gPad->Update();
    98100
    99101    c->cd(2);
     102    gStyle->SetOptStat(1101);
    100103    disp2->Draw("hist");
     104    gPad->Update();
    101105
    102106    c->cd(3);
     107    gStyle->SetOptStat(1101);
    103108    disp3->Draw("hist");
     109    gPad->Update();
    104110
    105111    c->cd(4);
    106112    gPad->SetBorderMode(0);
    107     TText text(0.1, 0.95, &fname[fname.Last('/')+1]);
    108     text.SetTextSize(0.03);
    109     text.DrawClone();
    110113    gPad->Divide(1,1);
    111114    gPad->cd(1);
  • trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.cc

    r2206 r2274  
    2929//
    3030//  This is the specific image cleaning for a list of pixels. This task
    31 //  sets the pixels listed in fPixelsID to unused so they should not be
     31//  sets the pixels listed in fPixelsIdx to unused so they should not be
    3232//  used for analysis (eg calculation of hillas parameters).
    3333//
     
    130130        return kTRUE;
    131131
    132     const UShort_t size = fPixelsID.GetSize();
     132    const UShort_t size = fPixelsIdx.GetSize();
    133133
    134134    if (size == 0)
     
    145145    // through the macros
    146146
    147     UShort_t numids = fPixelsID.GetSize();
     147    UShort_t numids = fPixelsIdx.GetSize();
    148148
    149149    for(Int_t i = 0; i<numids; i++)
    150         fPixels->SetPixelBlind(fPixelsID[i]);
     150        fPixels->SetPixelBlind(fPixelsIdx[i]);
    151151
    152152    return kTRUE;
     
    167167
    168168    //
    169     // remove the pixels in fPixelsID if they are set to be used,
     169    // remove the pixels in fPixelsIdx if they are set to be used,
    170170    // (set them to 'unused' state)
    171171    //
     
    174174        MCerPhotPix &pix = (*fEvt)[i];
    175175
    176         const Int_t id = pix.GetPixId();
    177 
    178         if (!fPixels->IsBlind(id))
     176        const Int_t idx = pix.GetPixId();
     177
     178        if (!fPixels->IsBlind(idx))
    179179            continue;
    180180
    181         const MGeomPix &gpix = (*fGeomCam)[id];
    182 
    183         const Int_t n = gpix.GetNumNeighbors();
     181        const MGeomPix &gpix = (*fGeomCam)[idx];
    184182
    185183        Int_t num = TESTBIT(fFlags, kUseCentralPixel) ? 1 : 0;
     
    188186        perr[i]  = TESTBIT(fFlags, kUseCentralPixel) ? pix.GetErrorPhot()  : 0;
    189187
    190         nphot[i] *= fGeomCam->GetPixRatio(id);
     188        nphot[i] *= fGeomCam->GetPixRatio(idx);
    191189        // FIXME: perr[i] ???
    192190
     191        const Int_t n = gpix.GetNumNeighbors();
    193192        for (int j=0; j<n; j++)
    194193        {
    195             const UShort_t nid = gpix.GetNeighbor(j);
    196 
    197             if (fPixels->IsBlind(nid))
     194            const UShort_t nidx = gpix.GetNeighbor(j);
     195
     196            if (fPixels->IsBlind(nidx))
    198197                continue;
    199198
    200             const MCerPhotPix *evtpix = fEvt->GetPixById(nid);
     199            const MCerPhotPix *evtpix = fEvt->GetPixById(nidx);
    201200            if (evtpix)
    202201            {
    203                 nphot[i] += evtpix->GetNumPhotons()*fGeomCam->GetPixRatio(nid);
     202                nphot[i] += evtpix->GetNumPhotons()*fGeomCam->GetPixRatio(nidx);
    204203                perr[i]  += evtpix->GetErrorPhot();
    205204                // FIXME: perr[i] ???
     
    208207        }
    209208
    210         nphot[i] /= num*fGeomCam->GetPixRatio(id);
     209        nphot[i] /= num*fGeomCam->GetPixRatio(idx);
    211210        perr[i]  /= num/*FIXME:???*/;
    212211    }
     
    235234
    236235    //
    237     // remove the pixels in fPixelsID if they are set to be used,
     236    // remove the pixels in fPixelsIdx if they are set to be used,
    238237    // (set them to 'unused' state)
    239238    //
     
    244243        if (fPixels->IsBlind(pix.GetPixId()))
    245244            pix.SetPixelUnused();
    246 
    247245    }
    248246}
     
    264262// --------------------------------------------------------------------------
    265263//
    266 //  Set pixels to no be used.
    267 //  This member function (public) should be called from the macro (or
    268 //  analysis program) setting the desired blind pixels.
    269 //  In the future, the blind pixels may be extracted from information which
    270 //  is already in the root file. 
    271 //
    272 void MBlindPixelCalc::SetPixels(Int_t num, Short_t *ids)
    273 {
    274     fPixelsID.Adopt(num, ids);
    275 }
    276 
    277 // --------------------------------------------------------------------------
    278 //
    279264//  - Check whether pixels to disable are available. If pixels are
    280265//    given by the user nothing more is done.
     
    290275    // If pixels are given by the user, we are already done
    291276    //
    292     if (fPixelsID.GetSize() > 0)
     277    if (fPixelsIdx.GetSize() > 0)
    293278        return kTRUE;
    294279
     
    355340        out << "   " << GetUniqueName() << ".SetUseCentralPixel();" << endl;
    356341
    357     if (fPixelsID.GetSize()==0)
     342    if (fPixelsIdx.GetSize()==0)
    358343        return;
    359344
    360345    out << "   {" << endl;
    361346    out << "      TArrayS dummy;" << endl;
    362     for (int i=0; i<fPixelsID.GetSize(); i++)
    363         out << "      dummy[" << i << "]=" << ((TArrayS)fPixelsID)[i] << ";" << endl;
     347    for (int i=0; i<fPixelsIdx.GetSize(); i++)
     348        out << "      dummy[" << i << "]=" << ((TArrayS)fPixelsIdx)[i] << ";" << endl;
    364349    out << "      " << GetUniqueName() << ".SetPixels(dummy);" << endl;
    365350    out << "   }" << endl;
  • trunk/MagicSoft/Mars/manalysis/MBlindPixelCalc.h

    r2206 r2274  
    2121    MGeomCam     *fGeomCam; //!
    2222
    23     TArrayS fPixelsID;  // Pixel IDs for blind pixels, which are entered by the user.
     23    TArrayS fPixelsIdx;  // Pixel Indices for blind pixels, which are entered by the user.
    2424
    2525    Byte_t fFlags;      // flag for the method which is used
     
    5555    }
    5656
    57     void SetPixels(Int_t num, Short_t *ids);
    58     void SetPixels(const TArrayS pix) { SetPixels((Int_t)pix.GetSize(), (Short_t*)pix.GetArray()); }
     57    void SetPixelIndices(const TArrayS &pix) { fPixelsIdx = pix; }
    5958    virtual Bool_t ReInit(MParList *pList);
    6059
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r2265 r2274  
    8181//  Default Constructor. To be used by the root system ONLY.
    8282//
    83 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend), fOptStat(-1)
     83MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend)
    8484{
    8585    SetDirectory(NULL);
     
    478478    {
    479479        opt.ReplaceAll("hist", "");
    480         Int_t mode = gStyle->GetOptStat();
    481         TVirtualPad *save = gPad;
    482         gPad=NULL;
    483         gStyle->SetOptStat(fOptStat<0 ? mode : fOptStat);
    484         gPad=save;
    485         TH1D::Paint(o);
    486         gPad=NULL;
    487         gStyle->SetOptStat(mode);
    488         gPad=save;
     480        TH1D::Paint(opt);
    489481        return;
    490482    }
     
    496488    Bool_t iscol = isbox ? !opt.Contains("nocol") : 1;
    497489
    498     THistPainter paint;
    499     if (!TestBit(TH1::kNoStats))
    500     {
    501         paint.SetHistogram(this);
    502         paint.PaintStat(fOptStat<0?gStyle->GetOptStat():fOptStat, NULL);
     490    GetPainter();
     491    if (fPainter)
     492    {
     493        if (!TestBit(TH1::kNoStats))
     494        {
     495            fPainter->SetHistogram(this);
     496            fPainter->PaintStat(gStyle->GetOptStat(), NULL);
     497        }
     498
     499        // Paint primitives (pixels, color legend, photons, ...)
     500        if (fPainter->InheritsFrom(THistPainter::Class()))
     501            ((THistPainter*)fPainter)->PaintTitle();
    503502    }
    504503
    505504    // Update Contents of the pixels and paint legend
    506505    Update(gPad->GetLogy(), isbox, iscol);
    507 
    508     // Paint primitives (pixels, color legend, photons, ...)
    509     paint.PaintTitle();
    510506    PaintAxisTitle();
    511507}
     
    950946Int_t MHCamera::DistancetoPrimitive(Int_t px, Int_t py)
    951947{
     948    const Int_t kMaxDiff = 7;
     949
     950    TPaveStats *box = (TPaveStats*)gPad->GetPrimitive("stats");
     951    if (box)
     952    {
     953        const Double_t w = box->GetY2NDC()-box->GetY1NDC();
     954        box->SetX1NDC(gStyle->GetStatX()-gStyle->GetStatW());
     955        box->SetY1NDC(gStyle->GetStatY()-w);
     956        box->SetX2NDC(gStyle->GetStatX());
     957        box->SetY2NDC(gStyle->GetStatY());
     958    }
     959
    952960    if (TString(GetDrawOption()).Contains("hist", TString::kIgnoreCase))
    953961        return TH1D::DistancetoPrimitive(px, py);
     
    959967            return 0;
    960968    }
    961     return 999999;
     969
     970    if (!box)
     971        return 999999;
     972
     973    const Int_t dist = box->DistancetoPrimitive(px, py);
     974    if (dist > kMaxDiff)
     975        return 999999;
     976
     977    gPad->SetSelected(box);
     978    return dist;
    962979}
    963980
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r2265 r2274  
    3535    TList         *fNotify;      //!
    3636
    37     Int_t          fOptStat;
     37    //Int_t          fOptStat;
    3838
    3939    //TGStatusBar   *fStatusBar;
     
    5555    };
    5656
    57     Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }
    5857    void   SetUsed(Int_t idx)      { SETBIT(fUsed[idx], kIsUsed); }
    5958    void   ResetUsed(Int_t idx)    { CLRBIT(fUsed[idx], kIsUsed); }
     
    7372    MHCamera(const MGeomCam &geom, const char *name="", const char *title="");
    7473    ~MHCamera();
     74
     75    Bool_t IsUsed(Int_t idx) const { return TESTBIT(const_cast<TArrayC&>(fUsed)[idx], kIsUsed); }
    7576
    7677    //void     AddPixContent(Int_t idx) const { AddBinContent(idx+1); }
     
    135136
    136137    void  SetAutoScale(); // *MENU*
    137     void  SetOptStat(Int_t os=-1); // *MENU*
     138    //void  SetOptStat(Int_t os=-1); // *MENU*
    138139
    139140    void  SetPix(const Int_t pixnum, const Int_t color, Float_t min, Float_t max);      // New function added by M.Lopez in 31-01-03
     
    150151
    151152inline void MHCamera::SetAutoScale() { fMinimum = fMaximum = -1111; }
    152 inline void MHCamera::SetOptStat(Int_t os) { fOptStat = os; }
     153//inline void MHCamera::SetOptStat(Int_t os) { fOptStat = os; }
    153154
    154155#endif
  • trunk/MagicSoft/Mars/mmain/MStatusDisplay.cc

    r2215 r2274  
    289289    fList->Add(l);
    290290
    291     TGLayoutHints *layb = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 10, 10);
     291    TGLayoutHints *layb = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 5, 5);
    292292    fList->Add(layb);
    293293    f->AddFrame(l, layb);
     
    309309        mars->Associate(this);
    310310
    311         TGLayoutHints *lay2 = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY, 10, 10, 10, 10);
     311        TGLayoutHints *lay2 = new TGLayoutHints(kLHintsCenterX|kLHintsCenterY, 10, 10, 5, 5);
    312312        fList->Add(lay2);
    313313        f->AddFrame(mars, lay2);
     
    324324    fList->Add(l);
    325325    f->AddFrame(l, layb);
     326
     327    TGLayoutHints *layc = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 5);
     328    fList->Add(layc);
     329
     330    l = new TGLabel(f, "<< Thomas Bretz >>");
     331    fList->Add(l);
     332    f->AddFrame(l, layc);
    326333}
    327334
Note: See TracChangeset for help on using the changeset viewer.