Ignore:
Timestamp:
07/12/05 14:31:02 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r7179 r7181  
    9393MSrcPosCalc::MSrcPosCalc(const char *name, const char *title)
    9494    : fObservatory(NULL), fPointPos(NULL), fSourcePos(NULL), fSrcPosCam(NULL),
    95     fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), fIsWobbleMode(kFALSE)
     95    fSrcPosAnti(NULL), fGeom(NULL), fTime(NULL), fMode(kDefault)
    9696{
    9797    fName  = name  ? name  : "MSrcPosCalc";
     
    209209void MSrcPosCalc::SetSrcPos(TVector2 v) const
    210210{
    211     if (fIsWobbleMode)
     211    if (fMode==kWobble)
    212212    {
    213213        fSrcPosAnti->SetXY(v);
     
    230230Bool_t MSrcPosCalc::ReInit(MParList *plist)
    231231{
     232    if (fMode==kOffData)
     233    {
     234        SetSrcPos(TVector2());
     235        return kTRUE;
     236    }
     237
    232238    MRawRunHeader *run = (MRawRunHeader*)plist->FindObject("MRawRunHeader");
    233239    if (!run)
     
    328334Int_t MSrcPosCalc::Process()
    329335{
    330     if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory)
     336    if (fRunType==MRawRunHeader::kRTMonteCarlo || !fSourcePos || !fTime || !fObservatory || fMode==kOffData)
    331337        return kTRUE;
    332338
Note: See TracChangeset for help on using the changeset viewer.