Changeset 6276 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/07/05 09:25:42 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6265 r6276  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/02/07 Thomas Bretz
     24
     25   * mbase/MFilter.cc:
     26     - use paranthesis around ClassName in GetRule
     27
     28   * mdata/MDataFormula.h:
     29     - fixed a wrong comment in variable description
     30
     31   * mhist/MHCamEvent.[h,cc], mhist/MHCamera.[h,cc],
     32     mjobs/MJCalibrateSignal.cc,
     33     mjobs/MJCalibrateSignalFromOutside.cc:
     34     - to make sure there are no missunderstandings we have to
     35       replace all occurances of 'Variance' by 'SqrtVariance'
     36       (it was not my decision)
     37
     38
    2239
    2340 2005/02/04 Markus Gaug
  • trunk/MagicSoft/Mars/mbase/MFilter.cc

    r6253 r6276  
    9595TString MFilter::GetRule() const
    9696{
    97     return ClassName(); //"<GetRule n/a for " + fName + ">";
     97    return Form("(%s)", ClassName()); //"<GetRule n/a for " + fName + ">";
    9898}
    9999
  • trunk/MagicSoft/Mars/mdata/MDataFormula.h

    r3666 r6276  
    1717private:
    1818    TFormula      *fFormula;    // TFormula
    19     TOrdCollection fMembers;    // Container for the filters
     19    TOrdCollection fMembers;    // List of arguments
    2020
    2121    TString Parse(const char *rule);
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.cc

    r6032 r6276  
    3333// =====
    3434//
    35 // To plot the variance instead of the rms use:
    36 //    MHCamEvent::SetBit(MHCamera::kVariance);
     35// To plot sqrt(variance) instead of the rms use:
     36//    MHCamEvent::SetBit(MHCamera::kSqrtVariance);
    3737//  or
    38 //    MHCamEvent::EnableVariance()
     38//    MHCamEvent::EnableSqrtVariance()
    3939//
    4040// To count how often a certain pixel is above or below a threshold do:
     
    127127// use this to display the variance instead of the rms.
    128128//
    129 void MHCamEvent::EnableVariance(Bool_t b)
    130 {
    131     b ? SetBit(MHCamera::kVariance) : ResetBit(MHCamera::kVariance);
     129void MHCamEvent::EnableSqrtVariance(Bool_t b)
     130{
     131    b ? SetBit(MHCamera::kSqrtVariance) : ResetBit(MHCamera::kSqrtVariance);
    132132}
    133133
     
    173173        fSum->SetYTitle("a.u.");
    174174    fSum->SetBit(MHCamera::kProfile);
    175     if (TestBit(MHCamera::kVariance))
    176         fSum->SetBit(MHCamera::kVariance);
     175    if (TestBit(MHCamera::kSqrtVariance))
     176        fSum->SetBit(MHCamera::kSqrtVariance);
    177177
    178178    fSum->SetXTitle("Pixel Idx");
     
    301301    MHCamera *cam = new MHCamera(*fSum->GetGeometry());
    302302    cam->SetName(Form("%s;err", fName.Data()));
    303     cam->SetTitle(fSum->TestBit(MHCamera::kVariance)?"Variance":"Root Mean Squared (rms)");
     303    cam->SetTitle(fSum->TestBit(MHCamera::kSqrtVariance)?"Sqrt(Variance)":"Root Mean Squared (rms)");
    304304    cam->SetYTitle(fSum->GetYaxis()->GetTitle());
    305305    cam->SetCamContent(*fSum, 1);
  • trunk/MagicSoft/Mars/mhist/MHCamEvent.h

    r5560 r6276  
    5050
    5151    void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
    52     void EnableVariance(Bool_t b=kTRUE);
     52    void EnableSqrtVariance(Bool_t b=kTRUE);
    5353
    5454    ClassDef(MHCamEvent, 1) // Histogram to sum camera events
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r5807 r6276  
    329329// ------------------------------------------------------------------------
    330330//
    331 // Return the variance of all entries which are used if all=kFALSE and
     331// Return the sqrt variance of all entries which are used if all=kFALSE and
    332332// of all entries if all=kTRUE if sector<0. If sector>=0 only
    333333// entries with match the given sector are taken into account.
     
    11551155{
    11561156    Double_t rc = 0;
    1157     if (TestBit(kVariance) && GetEntries()>0) // error on the mean
     1157    if (TestBit(kSqrtVariance) && GetEntries()>0) // error on the mean
    11581158    {
    11591159        const Double_t error = fSumw2.fArray[bin]/GetEntries();
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r6058 r6276  
    4040public:
    4141    enum {
    42         kProfile  = BIT(18), // FIXME: When changing change max/min!
    43         kFreezed  = BIT(19),
    44         kNoLegend = BIT(20),
    45         kVariance = BIT(21)
     42        kProfile      = BIT(18), // FIXME: When changing change max/min!
     43        kFreezed      = BIT(19),
     44        kNoLegend     = BIT(20),
     45        kSqrtVariance = BIT(21)
    4646    };
    4747private:
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6246 r6276  
    553553    MHCamEvent evt8(0, "Conv",        "Calibration Conv. Factors;;[phe/fadc cnts]");
    554554
    555     evt0.EnableVariance();
    556     evt1.EnableVariance();
    557     evt2.EnableVariance();
     555    evt0.EnableSqrtVariance();
     556    evt1.EnableSqrtVariance();
     557    evt2.EnableSqrtVariance();
    558558    // evt3.EnableVariance();
    559     evt4.EnableVariance();
    560     evt5.EnableVariance();
    561     evt7.EnableVariance();
    562     evt8.EnableVariance();
     559    evt4.EnableSqrtVariance();
     560    evt5.EnableSqrtVariance();
     561    evt7.EnableSqrtVariance();
     562    evt8.EnableSqrtVariance();
    563563
    564564    MFillH fill0(&evt0, "MPedestalFundamental",   "FillPedFLG");
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignalFromOutside.cc

    r5866 r6276  
    346346    MHCamEvent evt8(0, "HiLoConv",    "Ratio Hi-Lo Gain Signal;;Ratio [1]");
    347347
    348     evt0.EnableVariance();
    349     evt1.EnableVariance();
    350     evt2.EnableVariance();
    351     evt3.EnableVariance();
    352     evt4.EnableVariance();
    353     evt5.EnableVariance();
    354     evt7.EnableVariance();
    355     evt8.EnableVariance();
     348    evt0.EnableSqrtVariance();
     349    evt1.EnableSqrtVariance();
     350    evt2.EnableSqrtVariance();
     351    evt3.EnableSqrtVariance();
     352    evt4.EnableSqrtVariance();
     353    evt5.EnableSqrtVariance();
     354    evt7.EnableSqrtVariance();
     355    evt8.EnableSqrtVariance();
    356356
    357357    MFillH fill0(&evt0, "MPedestalFundamental",   "FillPedFLG");
Note: See TracChangeset for help on using the changeset viewer.