Changeset 18557 for trunk/Mars/mmc


Ignore:
Timestamp:
09/03/16 14:05:08 (8 years ago)
Author:
tbretz
Message:
Added a function to setup reading from a fits file SetupFits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mmc/MMcEvtBasic.cc

    r9596 r18557  
    5555/////////////////////////////////////////////////////////////////////////////
    5656#include "MMcEvtBasic.h"
     57
     58#include "fits.h"
    5759
    5860#include "MString.h"
     
    232234        *fLog << "Impact: " << fImpact << "cm" << endl;
    233235}
     236
     237Bool_t MMcEvtBasic::SetupFits(fits &fin)
     238{
     239    //if (!fin.SetRefAddress("MMcEvtBasic.fPartId",         fPartId        ))  return kFALSE;
     240    if (!fin.SetRefAddress("MMcEvtBasic.fEnergy",         fEnergy        ))  return kFALSE;
     241    if (!fin.SetRefAddress("MMcEvtBasic.fImpact",         fImpact        ))  return kFALSE;
     242    if (!fin.SetRefAddress("MMcEvtBasic.fTelescopePhi",   fTelescopePhi  ))  return kFALSE;
     243    if (!fin.SetRefAddress("MMcEvtBasic.fTelescopeTheta", fTelescopeTheta))  return kFALSE;
     244    if (!fin.SetRefAddress("MMcEvtBasic.fTheta",          fTheta         ))  return kFALSE;
     245    if (!fin.SetRefAddress("MMcEvtBasic.fPhi",            fPhi           ))  return kFALSE;
     246
     247    return kTRUE;
     248}
Note: See TracChangeset for help on using the changeset viewer.