Changeset 7841 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/03/06 18:48:57 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7840 r7841  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
    20  2006/08/03 Markus Meyer
    21 
    22    * datacenter/macros/fillstar.C
    23      - update of reference values for muon analysis
    24 
    25 
    26 
    2720 2006/08/03 Thomas Bretz
    2821
     
    3932     - fixed a typo in a comment
    4033
     34   * mhist/MHRate.cc, mhist/MHWeather.cc, mhvstime/MHSectorVsTime.cc,
     35     mhvstime/MHVsTime.cc:
     36     - changed position of SetMinimum and SetMaximum
     37
     38   * mimage/MHHillas.[h,cc]
     39     - made the Center-Histogram in the case only one is displayed
     40       one with palette
     41
    4142
    4243
     
    4546   * resources/calibration.rc, calibration_spline.rc
    4647     - update of correction factors
     48
     49   * datacenter/macros/fillstar.C
     50     - update of reference values for muon analysis
    4751
    4852
  • trunk/MagicSoft/Mars/NEWS

    r7839 r7841  
    6161     Use FirstBin=1 and NumEvents=120 to fit the effective on time
    6262     from the resulting gamma candidates
     63
     64   - star: The Center histogram in MHHillas is now by default displayed
     65     with the colz draw-option
    6366
    6467   - ganymed: now pruduces valid error codes if failed
  • trunk/MagicSoft/Mars/mhist/MHRate.cc

    r7224 r7841  
    9696    fRate.SetYTitle("Counts");
    9797
    98     fRateTime.SetMinimum(0);
    99 
    10098    fRate.SetDirectory(0);
    10199    fRateZd.SetDirectory(0);
     
    289287void MHRate::Paint(Option_t *o)
    290288{
     289    // If this is set to early the plot remains empty in root 5.12/00
     290    if (fRateTime.GetN()>0)
     291        fRateTime.SetMinimum(0);
     292
    291293    DrawGraph(fRateTime, "f [Hz]");
    292294    /*
  • trunk/MagicSoft/Mars/mhist/MHWeather.cc

    r7033 r7841  
    9696    InitGraph(fEventRate);
    9797
    98     fHumidity.SetMinimum(0);
    99     fHumidity.SetMaximum(100);
    100     fTemperature.SetMinimum(-25);
    101     fTemperature.SetMaximum(45);
    102     fWindSpeed.SetMinimum(0);
    103     fSolarRadiation.SetMinimum(0);
    104     fEventRate.SetMinimum(0);
    105 
    10698    fHumidity.SetMarkerColor(kBlue);
    10799    fTemperature.SetMarkerColor(kRed);
     
    262254void MHWeather::Paint(Option_t *o)
    263255{
     256    // If this is set to early the plot remains empty in root 5.12/00
     257    if (fHumidity.GetN()>0)
     258    {
     259        fHumidity.SetMinimum(0);
     260        fHumidity.SetMaximum(100);
     261    }
     262    if (fTemperature.GetN()>0)
     263    {
     264        fTemperature.SetMinimum(-25);
     265        fTemperature.SetMaximum(45);
     266    }
     267    if (fWindSpeed.GetN()>0)
     268        fWindSpeed.SetMinimum(0);
     269    if (fSolarRadiation.GetN()>0)
     270        fSolarRadiation.SetMinimum(0);
     271    if (fEventRate.GetN()>0)
     272        fEventRate.SetMinimum(0);
     273
    264274    DrawGraph(fHumidity,       "H [%]");
    265275    DrawGraph(fSolarRadiation, "R [W/m^{2}]");
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r7355 r7841  
    198198    fGraph->SetMarkerStyle(kFullDotMedium);
    199199
    200     if (fMinimum!=-1111)
    201         fGraph->SetMinimum(fMinimum);
    202     if (fMaximum!=-1111)
    203         fGraph->SetMaximum(fMaximum);
    204 
    205200    fMin =  FLT_MAX;
    206201    fMax = -FLT_MAX;
     
    309304    }
    310305
     306    // If this is set to early the plot remains empty in root 5.12/00
     307    if (fMinimum!=-1111)
     308        fGraph->SetMinimum(fMinimum);
     309    if (fMaximum!=-1111)
     310        fGraph->SetMaximum(fMaximum);
     311
    311312    // This is a workaround if the TGraph has only one point.
    312313    // Otherwise MStatusDisplay::Update hangs.
  • trunk/MagicSoft/Mars/mimage/MHHillas.cc

    r7491 r7841  
    271271// --------------------------------------------------------------------------
    272272//
    273 // Setup a inversed deep blue sea palette for the fCenter histogram.
    274 //
    275 void MHHillas::SetColors() const
    276 {
    277     gStyle->SetPalette(51, NULL);
    278     Int_t c[50];
    279     for (int i=0; i<50; i++)
    280         c[49-i] = gStyle->GetColorPalette(i);
    281     gStyle->SetPalette(50, c);
    282 }
    283 
    284 // --------------------------------------------------------------------------
    285 //
    286273// Creates a new canvas and draws the four histograms into it.
    287274// Be careful: The histograms belongs to this object and won't get deleted
     
    344331    fSize->Draw(same?"same":"");
    345332
    346     //if (!same)
    347     {
    348         pad->cd(4);
    349         gPad->SetBorderMode(0);
    350         gPad->SetPad(0.51, 0.01, 0.99, 0.65);
    351         if (same)
     333    pad->cd(4);
     334    gPad->SetBorderMode(0);
     335    gPad->SetPad(0.51, 0.01, 0.99, 0.65);
     336    if (same)
     337    {
     338        TH2 *h=dynamic_cast<TH2*>(gPad->FindObject("Center"));
     339        if (h)
    352340        {
    353             /*
    354             TH1 *h = dynamic_cast<TH1*>(gPad->FindObject("Center"));
    355             if (h)
    356             {
    357                 h->SetDrawOption("");
    358                 h->SetMarkerColor(kBlack);
    359             }*/
    360             RemoveFromPad("CenterSame");
    361             fCenter->SetMarkerColor(kGreen);
    362             fCenter->Draw("same");
     341            h->SetDrawOption("");
     342            h->SetMarkerColor(kBlack);
    363343        }
    364         else
    365         {
    366             //SetColors();
    367             fCenter->Draw(/*"colz"*/);
    368         }
    369         if (fGeomCam)
    370         {
    371             MHCamera *cam = new MHCamera(*fGeomCam);
    372             cam->Draw("same");
    373             cam->SetBit(kCanDelete);
    374         }
     344
     345        RemoveFromPad("CenterSame");
     346        fCenter->SetMarkerColor(kGreen);
     347        fCenter->Draw("same");
     348    }
     349    else
     350        fCenter->Draw("colz");
     351
     352    if (fGeomCam)
     353    {
     354        MHCamera *cam = new MHCamera(*fGeomCam);
     355        cam->Draw("same");
     356        cam->SetBit(kCanDelete);
    375357    }
    376358
     
    383365    if (gPad && !same)
    384366        delete gPad;
    385 
    386     //pad->Modified();
    387     //pad->Update();
    388367}
    389368
     
    408387void MHHillas::Paint(Option_t *opt)
    409388{
    410     SetColors();
     389    MH::SetPalette("pretty");
    411390    MH::Paint();
    412391}
  • trunk/MagicSoft/Mars/mimage/MHHillas.h

    r6977 r7841  
    2323    TH1F *fSize;    //-> Sum of used pixels
    2424    TH2F *fCenter;  //-> Center
    25 
    26     void SetColors() const;
    2725
    2826    MGeomCam *fGeomCam; //! Camera geometry for plots (for the moment this is a feature for a loop only!)
Note: See TracChangeset for help on using the changeset viewer.