Changeset 18751
- Timestamp:
- 02/05/17 10:42:26 (8 years ago)
- Location:
- trunk/Mars/mimage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mimage/MHillasCalc.cc
r7804 r18751 181 181 fNameNewImagePar(gsNameNewImagePar), 182 182 fNameNewImagePar2(gsNameNewImagePar2), 183 fErrors(7), fFlags(0xff), fIdxIsland(-1) 183 fErrors(7), fFlags(0xff), fIdxIsland(-1), fAbberation(1) 184 184 { 185 185 fName = name ? name : gsDefName.Data(); … … 324 324 if (TestFlag(kCalcHillasSrc)) 325 325 { 326 const Int_t rc = fHillasSrc->Calc(*fHillas );326 const Int_t rc = fHillasSrc->Calc(*fHillas, fAbberation); 327 327 if (rc<0 || rc>2) 328 328 { -
trunk/Mars/mimage/MHillasCalc.h
r14447 r18751 66 66 Int_t fFlags; // Flags defining the behaviour of MHillasCalc 67 67 Short_t fIdxIsland; // Number of island to use for calculation 68 Double_t fAbberation; // Correction factor to correct for abberation effects 68 69 69 70 // MParContainer … … 113 114 void SetIdxIsland(Short_t idx) { fIdxIsland = idx; } 114 115 116 // Set Abberation (see MHillasSrc for details) 117 void SetAbberation(Double_t a=1) { fAbberation = a; } 118 115 119 // TObject 116 120 void Print(Option_t *o="") const; -
trunk/Mars/mimage/MHillasSrc.cc
r8601 r18751 111 111 // you call the Reset member function before. 112 112 // 113 Int_t MHillasSrc::Calc(const MHillas &hillas )113 Int_t MHillasSrc::Calc(const MHillas &hillas, double abberation) 114 114 { 115 115 const Double_t mx = hillas.GetMeanX(); // [mm] 116 116 const Double_t my = hillas.GetMeanY(); // [mm] 117 117 118 const Double_t sx = mx - fSrcPos->GetX(); // [mm] 119 const Double_t sy = my - fSrcPos->GetY(); // [mm] 118 // The abberation value corrects for the average shift of 119 // the CoG of a light distirbution in the camera by the optics. 120 // The FACT refelctor for example reflects the CoG to a point 121 // 2% further away than the master ray. This could be corrected 122 // moving all pixels (in the image parameter calculation) 2% 123 // outwards. Instead, simply the source position 'reflected' 124 // (as if it were the master ray) is moved 2% inwards in the 125 // camera. 126 const Double_t sx = mx - fSrcPos->GetX()/abberation; // [mm] 127 const Double_t sy = my - fSrcPos->GetY()/abberation; // [mm] 120 128 121 129 const Double_t sd = hillas.GetSinDelta(); // [1] -
trunk/Mars/mimage/MHillasSrc.h
r8601 r18751 54 54 void Paint(Option_t *opt=NULL); 55 55 56 virtual Int_t Calc(const MHillas &hillas );56 virtual Int_t Calc(const MHillas &hillas, double abberation=1); 57 57 58 58 void Set(const TArrayF &arr);
Note:
See TracChangeset
for help on using the changeset viewer.