Changeset 4754


Ignore:
Timestamp:
08/27/04 12:56:27 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4738 r4754  
    368368void MRawEvtData::InitArrays(UShort_t numconnected, UShort_t maxid)
    369369{
     370    const Int_t numlo = fRunHeader ? fRunHeader->GetNumSamplesHiGain() : 0;
     371    const Int_t numhi = fRunHeader ? fRunHeader->GetNumSamplesHiGain() : 0;
     372
    370373    fHiGainPixId       = new MArrayS(numconnected);
    371374    fLoGainPixId       = new MArrayS(numconnected);
    372     fHiGainFadcSamples = new MArrayB(numconnected*fRunHeader->GetNumSamplesHiGain());
    373     fLoGainFadcSamples = new MArrayB(numconnected*fRunHeader->GetNumSamplesLoGain());
     375    fHiGainFadcSamples = new MArrayB(numconnected*numhi);
     376    fLoGainFadcSamples = new MArrayB(numconnected*numlo);
    374377
    375378    fABFlags           = new MArrayB(maxid/8+1);
Note: See TracChangeset for help on using the changeset viewer.