Changeset 11451 for trunk/Mars/manalysis


Ignore:
Timestamp:
07/18/11 17:44:58 (13 years ago)
Author:
tbretz
Message:
Au^Cmatically use MGeomCamFACT if the run header says that it is a fact camera.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/manalysis/MGeomApply.cc

    r9473 r11451  
    7777#include "MGeomCam.h"
    7878#include "MCamEvent.h"
     79#include "MRawRunHeader.h"
    7980
    8081ClassImp(MGeomApply);
     
    115116    if (cam)
    116117        return kTRUE;
     118
     119    MRawRunHeader *h = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     120    if (h->GetCameraVersion()==0xfac7 && fGeomName=="MGeomCamMagic")
     121        fGeomName = "MGeomCamFACT";
    117122
    118123    cam = (MGeomCam*)pList->FindCreateObj(AddSerialNumber(fGeomName), "MGeomCam");
Note: See TracChangeset for help on using the changeset viewer.