Changeset 5398


Ignore:
Timestamp:
11/12/04 11:25:10 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5395 r5398  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22 2004/11/12: Thomas Bretz
     23
     24   * mraw/MRawEvtData.cc:
     25     - fixed a bug in the initialisation of the arrays (in both
     26       cases - hi- and lo-gain - the number of hi gain samples were
     27       used
     28     - do not try to read lo gains if poslo==NULL
     29
     30   * mraw/MRawRunHeader.cc:
     31     - updated Print()
     32
     33
     34
    2235 2004/11/11: Markus Gaug
    2336
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r4754 r5398  
    187187    *fLog << dec << all;
    188188    *fLog << GetDescriptor() << ": " << endl;
    189     *fLog << "HiGain: " << nHiPix << " Pixels with " << (Int_t)nHiSamp << " Samples  ";
     189    *fLog << "HiGain: " << nHiPix << " Pixels with " << (Int_t)nHiSamp << " Samples" << endl;
    190190    *fLog << "LoGain: " << nLoPix << " Pixels with " << (Int_t)nLoSamp << " Samples";
    191191
     
    368368void MRawEvtData::InitArrays(UShort_t numconnected, UShort_t maxid)
    369369{
    370     const Int_t numlo = fRunHeader ? fRunHeader->GetNumSamplesHiGain() : 0;
    371370    const Int_t numhi = fRunHeader ? fRunHeader->GetNumSamplesHiGain() : 0;
     371    const Int_t numlo = fRunHeader ? fRunHeader->GetNumSamplesLoGain() : 0;
    372372
    373373    fHiGainPixId       = new MArrayS(numconnected);
     
    464464    // Read data for one pixel
    465465    fin.read((char*)poshi, fRunHeader->GetNumSamplesHiGain());
    466     fin.read((char*)poslo, fRunHeader->GetNumSamplesLoGain());
    467 
    468     //
    469     //  This is to fill the data of one pixel to the MRawEvtHeader Class.
    470     //  The parameters are the pixelnumber and the FADC_SLICES values of ADCs
    471     //  Add to lo gains if lflag = 1
    472     //
    473466    fHiGainPixId->AddAt(npix, fConnectedPixels);
    474467
    475     // FIXME: Not implemented in the raw files yet
    476     //if (IsLoGainOn(i, j))
    477     //{
    478     fLoGainPixId->AddAt(npix, fConnectedPixels);
    479     //}
     468    if (poslo)
     469    {
     470        fin.read((char*)poslo, fRunHeader->GetNumSamplesLoGain());
     471        // FIXME: Not implemented in the raw files yet
     472        //if (IsLoGainOn(i, j))
     473        //{
     474        fLoGainPixId->AddAt(npix, fConnectedPixels);
     475        //}
     476    }
    480477
    481478    if (ab)
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r4875 r5398  
    234234    *fLog << "Run Stop:     " << fRunStop << endl;
    235235    *fLog << "Crates:       " << fNumCrates << " x " << fNumPixInCrate << " Pixel/Crate = " << fNumCrates*fNumPixInCrate << " Pixel/Evt" << endl;
    236     *fLog << "Samples:      " << fNumSamplesLoGain << "/" << fNumSamplesHiGain << " (lo/hi) = " << (fNumSamplesLoGain+fNumSamplesHiGain) * fNumCrates * fNumPixInCrate /1024 << "kB/Evt" << endl;
     236    *fLog << "Num Pixels:   " << GetNumNormalPixels() << " (normal) + " << GetNumSpecialPixels() << " (special) = " << GetNumConnectedPixels() << " (total)" << endl;
     237    *fLog << "Samples:      " << fNumSamplesHiGain << "/" << fNumSamplesLoGain << " (hi/lo) = " << (fNumSamplesLoGain+fNumSamplesHiGain) * fNumCrates * fNumPixInCrate /1024 << "kB/Evt" << endl;
    237238    *fLog << "Evt Counter:  " << fNumEvents << endl;
    238239
Note: See TracChangeset for help on using the changeset viewer.