Ignore:
Timestamp:
11/14/01 10:03:20 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r1045 r1076  
    5959
    6060#include "MLog.h"
     61#include "MLogManip.h"
     62
    6163#include "MArrayS.h"
    6264#include "MArrayB.h"
     
    286288    }
    287289
    288     *fLog << "MRawEvtData::Draw: Warning: You must specify either 'GRAPH' or 'HIST'" << endl;
     290    *fLog << dbginf << "Warning - You must specify either 'GRAPH' or 'HIST'" << endl;
    289291}
    290292
     
    296298void MRawEvtData::DeletePixels(Bool_t flag)
    297299{
    298     const int npix = fRunHeader->GetNumCrates()*fRunHeader->GetNumPixInCrate();
    299 
    300     if (fArraySize == npix && flag)
    301     {
    302         fPosInArray = 0;
    303         return;
     300    if (fRunHeader && flag)
     301    {
     302        const int npix = fRunHeader->GetNumCrates()*fRunHeader->GetNumPixInCrate();
     303
     304        if (fArraySize == npix)
     305        {
     306            fPosInArray = 0;
     307            return;
     308        }
    304309    }
    305310
     
    327332void MRawEvtData::InitArrays(Bool_t flag)
    328333{
    329     if (flag)
     334    if (flag && fRunHeader)
    330335    {
    331336        const int npix = fRunHeader->GetNumCrates()*fRunHeader->GetNumPixInCrate();
Note: See TracChangeset for help on using the changeset viewer.