Changeset 7388 for trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc
- Timestamp:
- 11/10/05 10:05:31 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc
r7214 r7388 52 52 MSrcPosCorrect::MSrcPosCorrect(const char *name, const char *title) 53 53 : fSrcPosCam(NULL), fSrcPosAnti(NULL), fAxis(NULL), fGeom(NULL) 54 , fDx(-14.24) , fDy(-9.495) 55 54 56 { 55 57 fName = name ? name : "MSrcPosCorrect"; … … 105 107 { 106 108 *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl; 107 *fLog << "A mis sfocussing correction (-0.048deg/0.034deg) will be applied." << endl;109 *fLog << "A misfocussing correction (" << fDx << "mm/" << fDy << "mm) will be applied." << endl; 108 110 } 109 111 … … 160 162 { 161 163 // 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); 163 165 164 166 d -= dxy; … … 175 177 return kTRUE; 176 178 } 179 180 Int_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.