Changeset 2942 for trunk/MagicSoft


Ignore:
Timestamp:
01/28/04 13:43:54 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2941 r2942  
    2121   * mcalib/MHCalibrationPixel.h:
    2222     - removed obsolete include of MFFT
     23
     24   * manalysis/MCerPhotAnal.cc, manalysis/MCerPhotCalc.cc,
     25     manalysis/MPedestalCam.[h,cc]:
     26     - removed use of obsolete MPedestalCam::CheckBounds. This was
     27       a workaround for a 'bug' in very old camera files, which is not
     28       necessary anymore.
    2329
    2430
  • trunk/MagicSoft/Mars/manalysis/MCerPhotAnal.cc

    r2237 r2942  
    191191        const UInt_t pixid = pixel.GetPixelId();
    192192
    193         //
    194         // sanity check (old MC files sometimes have pixids>577)
    195         //
    196         if (fPedestals && !fPedestals->CheckBounds(pixid))
    197         {
    198             *fLog << inf << "Pixel ID larger than camera... skipping event." << endl;
    199             return kCONTINUE;
    200         }
    201 
    202193        fCerPhotEvt->AddPixel(pixid, nphot, sigmaped/2.236);
    203194
  • trunk/MagicSoft/Mars/manalysis/MCerPhotCalc.cc

    r2563 r2942  
    216216    {
    217217        const UInt_t idx = pixel.GetPixelId();
    218         //
    219         // sanity check (old MC files sometimes have pixids>577)
    220         //
    221         if (!fPedestals->CheckBounds(idx))
    222         {
    223             *fLog << inf << "Pixel Index out of MPedestalCam bounds... skipping event." << endl;
    224             return kCONTINUE;
    225         }
    226218
    227219        MPedestalPix &ped = (*fPedestals)[idx];
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.cc

    r2937 r2942  
    7474    fArray->ExpandCreate(i);
    7575}
    76 
    77 // --------------------------------------------------------------------------
    78 //
    79 // Check if position i is inside bounds
    80 //
    81 Bool_t MPedestalCam::CheckBounds(Int_t i) const
    82 {
    83   return i < GetSize();
    84 }
    8576
    8677// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/manalysis/MPedestalCam.h

    r2929 r2942  
    3131    Float_t GetPedestalMax(const MGeomCam *cam) const;
    3232
    33     Bool_t CheckBounds(Int_t i) const;
    34 
    3533    void Print(Option_t *o="") const;
    3634
Note: See TracChangeset for help on using the changeset viewer.