Changeset 3666 for trunk/MagicSoft/Mars/mimage/MHillasExt.cc
- Timestamp:
- 04/06/04 13:41:56 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r2624 r3666 47 47 // fConc1 removed 48 48 // 49 // Version 3: 50 // ---------- 51 // fMaxDist added. Distance between center and most distant used pixel 52 // 49 53 // 50 54 // WARNING: Before you can use fAsym, fM3Long and fM3Trans you must … … 96 100 fM3Long = 0; 97 101 fM3Trans = 0; 102 103 fMaxDist = -1; 98 104 } 99 105 … … 109 115 *fLog << " - 3.Moment Long [mm] = " << fM3Long << endl; 110 116 *fLog << " - 3.Moment Trans [mm] = " << fM3Trans << endl; 117 *fLog << " - Max.Dist [mm] = " << fMaxDist << endl; 111 118 } 112 119 … … 123 130 *fLog << " - 3.Moment Long [deg] = " << fM3Long *geom.GetConvMm2Deg() << endl; 124 131 *fLog << " - 3.Moment Trans [deg] = " << fM3Trans*geom.GetConvMm2Deg() << endl; 132 *fLog << " - Max.Dist [deg] = " << fMaxDist*geom.GetConvMm2Deg() << endl; 125 133 } 126 134 … … 146 154 const UInt_t npixevt = evt.GetNumPixels(); 147 155 148 Int_t maxpixid = 0; 149 Float_t maxpix = 0; 156 Int_t maxpixid = 0; 157 Float_t maxpix = 0; 158 Float_t maxdist = 0; 150 159 151 160 for (UInt_t i=0; i<npixevt; i++) … … 160 169 const Double_t dx = gpix.GetX() - hil.GetMeanX(); // [mm] 161 170 const Double_t dy = gpix.GetY() - hil.GetMeanY(); // [mm] 171 172 const Double_t dist = dx*dx+dy*dy; 173 if (dist>maxdist) 174 maxdist=dist; // [mm^2] 162 175 163 176 Double_t nphot = pix.GetNumPhotons(); // [1] … … 197 210 fM3Trans = m3y<0 ? -pow(-m3y, 1./3) : pow(m3y, 1./3); // [mm] 198 211 212 fMaxDist = TMath::Sqrt(maxdist); // [mm] 213 199 214 SetReadyToSave(); 200 215
Note:
See TracChangeset
for help on using the changeset viewer.