Ignore:
Timestamp:
11/10/05 10:05:31 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7214 r7388  
    5252MSrcPosCorrect::MSrcPosCorrect(const char *name, const char *title)
    5353    : fSrcPosCam(NULL), fSrcPosAnti(NULL), fAxis(NULL), fGeom(NULL)
     54     , fDx(-14.24) , fDy(-9.495)
     55
    5456{
    5557    fName  = name  ? name  : "MSrcPosCorrect";
     
    105107    {
    106108        *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl;
    107         *fLog << "A missfocussing correction (-0.048deg/0.034deg) will be applied." << endl;
     109        *fLog << "A misfocussing correction (" << fDx << "mm/" << fDy << "mm) will be applied." << endl;
    108110    }
    109111
     
    160162    {
    161163        // dx=-0.048deg, dy=0.034deg, d=0.059deg
    162         static const TVector2 dxy(-14.24, -9.495);
     164        static const TVector2 dxy(fDx, fDy);
    163165
    164166        d -= dxy;
     
    175177    return kTRUE;
    176178}
     179
     180Int_t MSrcPosCorrect::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     181{
     182    Bool_t rc = kFALSE;
     183    if (IsEnvDefined(env, prefix, "Dx", print))
     184    {
     185        fDx = GetEnvValue(env, prefix, "Dx", fDx);
     186        rc = kTRUE;
     187    }
     188    if (IsEnvDefined(env, prefix, "Dy", print))
     189    {
     190        fDy = GetEnvValue(env, prefix, "Dy", fDy);
     191        rc = kTRUE;
     192    }
     193
     194    return rc;
     195}
Note: See TracChangeset for help on using the changeset viewer.