Changeset 2487 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
11/07/03 18:50:44 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2486 r2487  
    3838   * status.cc:
    3939     - added (not yet in Makefile)
     40
     41   * manalysis/MMcPedestalCopy.[h,cc]:
     42     - made sure, that MPedestalCam is in the list
     43     
     44   * mraw/MRawEvtData.cc:
     45     - set the maximum/minimum of the fadc histograms
     46     
     47   * mraw/MRawEvtPixelIter.[h,cc]:
     48     - added a fixes for the case that fData->fLoGainPixId->GetArray()=NULL
    4049
    4150
  • trunk/MagicSoft/Mars/Makefile

    r2485 r2487  
    7474        @echo " "
    7575
     76include Makefile.rules
    7677include Makefile.depend
    7778
     
    127128        root -b -q dohtml.C
    128129
    129 include Makefile.rules
    130 
    131130clean:  rmcint rmobjs rmcore rmlib
    132131
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r2470 r2487  
    9191// --------------------------------------------------------------------------
    9292//
     93// Make sure, that there is an MPedestalCam Object in the Parameter List.
     94//
     95Int_t MMcPedestalCopy::PreProcess(MParList *pList)
     96{
     97    // FIXME: This should be done for MC files only...
     98    return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE;
     99}
     100
     101// --------------------------------------------------------------------------
     102//
    93103// Check for the runtype.
    94104// Search for MPedestalCam and MMcFadcHeader.
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.h

    r2454 r2487  
    1010private:
    1111    Bool_t CheckRunType(MParList *pList) const;
     12    Int_t  PreProcess(MParList *pList);
    1213    Bool_t ReInit(MParList *pList);
    1314
  • 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.