Ignore:
Timestamp:
11/07/03 18:50:44 (21 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

    r2466 r2487  
    269269
    270270        TH1F *histhi = graphhi->GetHistogram();
    271 
     271        histhi->SetMinimum(0);
     272        histhi->SetMaximum(255);
     273 
    272274        histhi->SetXTitle("Time/FADC Slices");
    273275        histhi->SetYTitle("Signal/FADC Units");
     
    302304
    303305        TH1F *histh = new TH1F(name, "FADC Samples", nh, -0.5, nh-.5);
     306        histh->SetMinimum(0);
     307        histh->SetMaximum(255);
    304308        histh->SetXTitle("Time [FADC Slices]");
    305309        histh->SetYTitle("Signal [FADC Units]");
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r2404 r2487  
    5757ClassImp(MRawEvtPixelIter);
    5858
     59using namespace std;
     60
    5961MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
    6062{
     
    9294    //
    9395    if (fNumLoGainEntry != fData->fLoGainPixId->GetSize())
    94         if (*fHiGainId == *fLoGainId)
     96        if (HasLoGain())
    9597        {
    9698            //
     
    133135    //
    134136    fHiGainId   = fData->fHiGainPixId->GetArray()-1;
    135     fLoGainId   = fData->fLoGainPixId->GetArray()-1;
     137    fLoGainId   = fData->fLoGainPixId->GetArray();
    136138    fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples;
    137139    fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples;
     140
     141    //
     142    // In case fLoGainPixId.GetSize()=0 some root versions seems to
     143    // initialize the array with NULL. This makes both cases work.
     144    //
     145    if (fLoGainId)
     146        fLoGainId -= 1;
    138147}
    139148
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r2404 r2487  
    9191        // return kTRUE  the lo gains exist for the actual pixel, else return kFALSE
    9292        //
    93         return *fHiGainId==*fLoGainId;
     93        return fLoGainId && *fHiGainId==*fLoGainId;
    9494    }
    9595
Note: See TracChangeset for help on using the changeset viewer.