Changeset 7223


Ignore:
Timestamp:
07/26/05 15:14:13 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7222 r7223  
    3434     - improved scaling for significance plot, so that significances
    3535     similar to the ThetaSq plot come out
     36
     37   * mhvstime/MHSectorVsTime.[h,cc]:
     38     - implemented the possibility to set a minimum/maximum from outside
     39
     40   * mjobs/MJStar.cc:
     41     - added a plot of the pedestal rms vs time
     42     - set minimum and maximum for dc currents vs time
     43
     44   * mpedestal/MPedPhotCam.cc:
     45     - added a sanity in GetPixelContent for the index
    3646
    3747
  • trunk/MagicSoft/Mars/NEWS

    r7220 r7223  
    118118   - star: New tab (Currents) displaying the time evolution of the mean
    119119           DC currents
     120
     121   - star: New tab (MeanRms) displaying the time volution of the mean
     122           Pedestal Rms
    120123
    121124   - star: Output now contains MReportStarguider
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r7210 r7223  
    9595//
    9696MHSectorVsTime::MHSectorVsTime(const char *name, const char *title)
    97     : fGraph(0), fEvt(NULL), fType(0), fTypeErr(-1)
     97    : fGraph(0), fEvt(NULL), fMinimum(-1111), fMaximum(-1111),
     98    fType(0), fTypeErr(-1)
    9899{
    99100    //
     
    191192    fGraph->SetMarkerStyle(kFullDotMedium);
    192193
     194    if (fMinimum!=-1111)
     195        fGraph->SetMinimum(fMinimum);
     196    if (fMaximum!=-1111)
     197        fGraph->SetMaximum(fMaximum);
     198
    193199    fMin =  FLT_MAX;
    194200    fMax = -FLT_MAX;
     
    248254    const Double_t add = (fMax-fMin)*0.15;
    249255
    250     fGraph->SetMinimum(fMin-add);
    251     fGraph->SetMaximum(fMax+add);
     256    if (fMinimum==-1111)
     257        fGraph->SetMinimum(fMin-add);
     258    if (fMaximum==-1111)
     259        fGraph->SetMaximum(fMax+add);
    252260
    253261    return kTRUE;
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h

    r7210 r7223  
    3535    MHCamera fHCamera;      //!
    3636
    37     Double_t fMin;          //!
    38     Double_t fMax;          //!
     37    Double_t fMin;          //! Calculation of minimum
     38    Double_t fMax;          //! Calculation of maximum
     39
     40    Double_t fMinimum;      // User defined minimum
     41    Double_t fMaximum;      // User defined maximum
    3942
    4043    TString fNameEvt;
     
    6366    void SetAreaIndex(const TArrayI &a)  { fAreaIndex=a; }
    6467
     68    void SetMinimum(Double_t min=-1111) { fMinimum = min; }
     69    void SetMaximum(Double_t max=-1111) { fMaximum = max; }
     70
    6571    // Getter
    6672    TH1 *GetHistByName(const TString name="") const;
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7210 r7223  
    391391
    392392    // Initialize histogram
    393     MHSectorVsTime histdc;
     393    MHSectorVsTime histdc, histrms;
    394394    histdc.SetNameTime("MTimeCurrents");
    395395    histdc.SetTitle("Mean of all DC Currents;;<I> [nA]");
     396    histdc.SetMinimum(0);
     397    histdc.SetMaximum(3);
     398    histrms.SetNameTime("MTimeCurrents");
     399    histrms.SetTitle("Mean pedestal rms of all pixels;;<\\sigma_{p}> [phe]");
     400    histrms.SetMinimum(0);
     401    histrms.SetMaximum(0.2);
     402
    396403    /*
    397404     // Define area index [0=inner, 1=outer]
     
    400407
    401408    // Task to fill the histogram
    402     MFillH filldc(&histdc, "MCameraDC", "FillDC");
     409    MFillH filldc(&histdc,   "MCameraDC",                 "FillDC");
     410    MFillH fillrms(&histrms, "MPedPhotFromExtractorRndm", "FillPedRms");
    403411    filldc.SetNameTab("Currents");
     412    fillrms.SetNameTab("MeanRms");
    404413
    405414    MFillH fillw("MHWeather", "MTimeCC", "FillWeather");
     
    414423    if (!ismc)
    415424    {
    416         tlist.AddToList(&fillw,  "CC");
    417         tlist.AddToList(&fillp1, "Drive");
    418         tlist.AddToList(&fillp2, "Starguider");
    419         tlist.AddToList(&filldc, "Currents");
     425        tlist.AddToList(&fillw,   "CC");
     426        tlist.AddToList(&fillp1,  "Drive");
     427        tlist.AddToList(&fillp2,  "Starguider");
     428        tlist.AddToList(&filldc,  "Currents");
     429        tlist.AddToList(&fillrms, "Currents");
    420430    }
    421431    tlist.AddToList(&write);
  • trunk/MagicSoft/Mars/mpedestal/MPedPhotCam.cc

    r7122 r7223  
    336336Bool_t MPedPhotCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    337337{
     338    if (idx>=GetSize())
     339        return kFALSE;
     340
    338341    switch (type)
    339342    {
Note: See TracChangeset for help on using the changeset viewer.