Changeset 19707 for trunk/Mars


Ignore:
Timestamp:
10/01/19 15:28:40 (5 years ago)
Author:
tbretz
Message:
Handle the MC MGeomCamFAMOUS data reasonably
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawFitsRead.cc

    r19006 r19707  
    165165    fRawRunHeader->SetObservation(type=="4294967295"?"":fin.GetStr("RUNTYPE"), "FACT");
    166166    fRawRunHeader->SetRunInfo(0, fin.GetUInt("NIGHT"), fin.GetUInt("RUNID"));
    167     fRawRunHeader->InitFact(fin.GetUInt("NPIX")/9, 9, fin.GetUInt("NROI"), fPixelMap.size()==0?0:fPixelMap.data());
     167    if (fin.GetStr("CAMERA")!="MGeomCamFAMOUS")
     168        fRawRunHeader->InitFact(fin.GetUInt("NPIX")/9, 9, fin.GetUInt("NROI"), fPixelMap.size()==0?0:fPixelMap.data());
     169    else
     170        fRawRunHeader->InitFact(1, fin.GetUInt("NPIX"), fin.GetUInt("NROI"), fPixelMap.size()==0?0:fPixelMap.data());
     171    fRawRunHeader->InitFact(1, fin.GetUInt("NPIX"), fin.GetUInt("NROI"), fPixelMap.size()==0?0:fPixelMap.data());
    168172    fRawRunHeader->SetFormat(0xf172, fIsMc ? 0 : fin.GetUInt("BLDVER"));
    169173    fRawRunHeader->SetRunType(fIsMc ? 0x0100/*mc*/ : 0/*data*/);
Note: See TracChangeset for help on using the changeset viewer.