Ignore:
Timestamp:
03/04/07 14:01:14 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r8353 r8364  
    550550    const UShort_t nhi  = fRunHeader->GetNumSamplesHiGain();
    551551    const UShort_t npic = fRunHeader->GetNumPixInCrate();
    552 
    553     return (nhi+nlo)*npic;
     552    const UShort_t nbps = fRunHeader->GetNumBytesPerSample();
     553
     554    return (nhi+nlo)*npic*nbps;
    554555}
    555556
     
    566567Bool_t MRawEvtData::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
    567568{
     569    *fLog << warn << "WARNING - The use of MRawEvtData::GetPixelContent is deprecated!" << endl;
     570
     571    /*
    568572    MRawEvtPixelIter Next(const_cast<MRawEvtData*>(this));
    569573    if (!Next.Jump(idx))
     
    592596        return val >= 0;
    593597    }
    594 
     598*/
    595599    return kTRUE;
    596600}
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r8348 r8364  
    164164}
    165165
     166/*
    166167// --------------------------------------------------------------------------
    167168//
    168169// Returns the index of the FADC slice the maximum signal in. If the highest
    169 // slices have the same value the last one is returned.
     170// slices have the same value the first one is returned.
    170171//
    171172Byte_t MRawEvtPixelIter::GetIdxMaxHiGainSample(const Byte_t hifirst, const Byte_t hilast) const
     
    188189//
    189190// Returns the index of the FADC slice the maximum signal in. If no lo-gains
    190 // are available -1 is returned. If the highest slices have the same value the
    191 // last one is returned.
     191// are available -1 is returned. If the highest slices have the same value
     192// the first one is returned.
    192193//
    193194Short_t MRawEvtPixelIter::GetIdxMaxLoGainSample(const Byte_t lofirst, const Byte_t lolast) const
     
    294295// If no lo-gains are existing and the hi-gains have saturating values
    295296// a negative value (-1) is returned.
    296 // 
     297//
    297298Short_t MRawEvtPixelIter::GetIdxMaxHiLoGainSample() const
    298299{
     
    371372    return sum;
    372373}
     374*/
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r8348 r8364  
    9191    */
    9292
    93     Byte_t  GetNumHiGainSamples() const { return fNumHiGainSamples ; }// Use is deprecated!
    94     Byte_t  GetNumLoGainSamples() const { return fNumLoGainSamples ; }// Use is deprecated!
     93//    Byte_t  GetNumHiGainSamples() const { return fNumHiGainSamples ; }// Use is deprecated!
     94//    Byte_t  GetNumLoGainSamples() const { return fNumLoGainSamples ; }// Use is deprecated!
    9595    Byte_t  GetNumSamples() const { return fNumHiGainSamples+fNumLoGainSamples; }
    9696
    97     Byte_t  GetIdxMaxHiGainSample(const Byte_t hifirst=0, const Byte_t hilast=0xff) const;
    98     Short_t GetIdxMaxLoGainSample(const Byte_t lofirst=0, const Byte_t lolast=0xff) const;
     97//    Byte_t  GetIdxMaxHiGainSample(const Byte_t hifirst=0, const Byte_t hilast=0xff) const;
     98//    Short_t GetIdxMaxLoGainSample(const Byte_t lofirst=0, const Byte_t lolast=0xff) const;
    9999
    100     Byte_t  GetMaxHiGainSample(const Byte_t hifirst=0, const Byte_t hilast=0xff) const;
     100//    Byte_t  GetMaxHiGainSample(const Byte_t hifirst=0, const Byte_t hilast=0xff) const;
    101101
    102     ULong_t GetSumHiGainSamples() const;
    103     ULong_t GetSumSqrHiGainSamples() const;
    104     Float_t GetVarHiGainSamples() const;
     102//    ULong_t GetSumHiGainSamples() const;
     103//    ULong_t GetSumSqrHiGainSamples() const;
     104//    Float_t GetVarHiGainSamples() const;
    105105
    106     Byte_t  GetMaxLoGainSample() const;
    107     Short_t GetIdxMaxHiLoGainSample() const;
     106//    Byte_t  GetMaxLoGainSample() const;
     107//    Short_t GetIdxMaxHiLoGainSample() const;
    108108
    109     ULong_t GetSumLoGainSamples() const;
    110     ULong_t GetSumSqrLoGainSamples() const;
     109//    ULong_t GetSumLoGainSamples() const;
     110//    ULong_t GetSumSqrLoGainSamples() const;
    111111
    112112    Bool_t HasLoGain() const { return fNumLoGainSamples>0; }
Note: See TracChangeset for help on using the changeset viewer.