Ignore:
Timestamp:
04/14/04 16:35:59 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc

    r3541 r3734  
    9696void MCerPhotEvt::Reset()
    9797{
    98     fNumPixels = 0;
    99     fMaxIndex  = 0;
     98    fNumPixels =  0;
     99    fMaxIndex  = -1;
    100100    fLut.Set(0);
    101101    // fPixels->Delete();
     
    104104void MCerPhotEvt::FixSize()
    105105{
    106     fLut.Set(fMaxIndex);
     106    fLut.Set(fMaxIndex+1);
    107107
    108108    if (fPixels->GetEntriesFast() == (Int_t)fNumPixels)
     
    401401
    402402        fLut[idx] = fNumPixels;
    403         if ((UInt_t)idx>fMaxIndex)
    404             fMaxIndex=(UInt_t)idx;
     403        if (idx>fMaxIndex)
     404            fMaxIndex=idx;
    405405
    406406        return new ((*fPixels)[fNumPixels++]) MCerPhotPix(idx, nph, er);
  • trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h

    r3541 r3734  
    2424private:
    2525    UInt_t        fNumPixels;
    26     UInt_t        fMaxIndex;
     26     Int_t        fMaxIndex;
    2727    TArrayI       fLut;        // Lookup tabel to lookup pixel by index
    2828    TClonesArray *fPixels;     //-> FIXME: Change TClonesArray away from a pointer?
  • trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc

    r3466 r3734  
    7373    gLog << (fRing>0?"   Used ":" Unused ");
    7474    gLog << (fIsCore?" Core ":"      ");
    75     gLog << "High gain " << (fIsHGSaturated?"   ":"not") << " saturated";
    76     gLog << (fIsSaturated?"   ":"Not") << " saturated";
    77     gLog << " Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
     75    gLog << (fIsSaturated?"   ":"not") << " saturated ";
     76    gLog << "High gain " << (fIsHGSaturated?"   ":"not") << " saturated ";
     77    gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
    7878}
Note: See TracChangeset for help on using the changeset viewer.