Changeset 4698 for trunk


Ignore:
Timestamp:
08/23/04 09:06:37 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4695 r4698  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/08/23: Thomas Bretz
     23
     24   * mbadpixels/MBadPixelsTreat.[h,cc]:
     25     - changed missleading ProcessRMS to ProcessPedestal
     26
     27   * mfileio/MReadTree.h:
     28     - added AddFiles(MDirIter&) which is overloaded by another function
     29       which resulted in some trouble
     30
     31   * mfileio/MWriteRootFile.[h,cc]:
     32     - added cd() member function
     33
     34
    2135
    2236 2004/08/20: Thomas Bretz
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r4635 r4698  
    537537// --------------------------------------------------------------------------
    538538//
    539 // Interpolate Pedestals if kProcessRMS not set
     539// Interpolate Pedestals if kProcessPedestal not set
    540540//
    541541Bool_t MBadPixelsTreat::ReInit(MParList *pList)
    542542{
    543     if (!TESTBIT(fFlags, kProcessRMS))
     543    if (!TESTBIT(fFlags, kProcessPedestal))
    544544        InterpolatePedestals();
    545545    return kTRUE;
     
    555555    {
    556556        InterpolateSignal();
    557         if (TESTBIT(fFlags, kProcessRMS))
     557        if (TESTBIT(fFlags, kProcessPedestal))
    558558            InterpolatePedestals();
    559559    }
     
    580580    if (TESTBIT(fFlags, kUseCentralPixel))
    581581        out << "   " << GetUniqueName() << ".SetUseCentralPixel();" << endl;
    582     if (TESTBIT(fFlags, kProcessRMS))
    583         out << "   " << GetUniqueName() << ".SetProcessRMS();" << endl;
     582    if (TESTBIT(fFlags, kProcessPedestal))
     583        out << "   " << GetUniqueName() << ".SetProcessPedestal();" << endl;
    584584    if (TESTBIT(fFlags, kHardTreatment))
    585585        out << "   " << GetUniqueName() << ".SetHardTreatment();" << endl;
     
    594594//   MBadPixelsTreat.UseCentralPixel:  no
    595595//   MBadPixelsTreat.HardTreatment:    no
    596 //   MBadPixelsTreat.ProcessRMS:       no
     596//   MBadPixelsTreat.ProcessPedestal:  no
    597597//   MBadPixelsTreat.NumMinNeighbors:  3
    598598//
     
    615615        SetHardTreatment(GetEnvValue(env, prefix, "HardTreatment", IsHardTreatment()));
    616616    }
    617     if (IsEnvDefined(env, prefix, "ProcessRMS", print))
     617    if (IsEnvDefined(env, prefix, "ProcessPedestal", print))
    618618    {
    619619        rc = kTRUE;
    620         SetProcessRMS(GetEnvValue(env, prefix, "ProcessRMS", IsProcessRMS()));
     620        SetProcessPedestal(GetEnvValue(env, prefix, "ProcessPedestal", IsProcessPedestal()));
    621621    }
    622622    if (IsEnvDefined(env, prefix, "NumMinNeighbors", print))
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.h

    r4633 r4698  
    2727        kUseInterpolation = 1,
    2828        kUseCentralPixel  = 2,
    29         kProcessRMS       = 3,
     29        kProcessPedestal  = 3,
    3030        kHardTreatment    = 4
    3131    };
     
    5656        b ? SETBIT(fFlags, kUseCentralPixel) : CLRBIT(fFlags, kUseCentralPixel);
    5757    }
    58     void SetProcessRMS(Bool_t b=kTRUE)
     58    void SetProcessPedestal(Bool_t b=kTRUE)
    5959    {
    60         b ? SETBIT(fFlags, kProcessRMS) : CLRBIT(fFlags, kProcessRMS);
     60        b ? SETBIT(fFlags, kProcessPedestal) : CLRBIT(fFlags, kProcessPedestal);
    6161    }
    6262    void SetHardTreatment(Bool_t b=kTRUE)
     
    6666
    6767    Bool_t IsHardTreatment() const    { return TESTBIT(fFlags, kHardTreatment); }
    68     Bool_t IsProcessRMS() const       { return TESTBIT(fFlags, kProcessRMS); }
     68    Bool_t IsProcessPedestal() const  { return TESTBIT(fFlags, kProcessPedestal); }
    6969    Bool_t IsUseCentralPixel() const  { return TESTBIT(fFlags, kUseCentralPixel); }
    7070    Bool_t IsUseInterpolation() const { return TESTBIT(fFlags, kUseInterpolation); }
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r3682 r4698  
    7171    virtual Int_t AddFile(const char *fname, Int_t entries=-1);
    7272    virtual Int_t AddFiles(const MReadTree &read);
     73    Int_t AddFiles(MDirIter &dir) { return MRead::AddFiles(dir); }
    7374
    7475    Int_t PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc

    r4694 r4698  
    775775// --------------------------------------------------------------------------
    776776//
     777// cd into file. See TFile::cd()
     778//
     779Bool_t MWriteRootFile::cd(const char *path)
     780{
     781    return fOut->cd(path);
     782}
     783
     784// --------------------------------------------------------------------------
     785//
    777786// Implementation of SavePrimitive. Used to write the call to a constructor
    778787// to a macro. In the original root implementation it is used to write
  • trunk/MagicSoft/Mars/mfileio/MWriteRootFile.h

    r4694 r4698  
    128128    void Print(Option_t *t=NULL) const;
    129129
     130    Bool_t cd(const char *path=0);
     131
    130132    ClassDef(MWriteRootFile, 1) // Task to write data into a root file
    131133};
Note: See TracChangeset for help on using the changeset viewer.