Changeset 2092 for trunk/MagicSoft/Mars/mimage/MHillasExt.cc
- Timestamp:
- 05/07/03 16:33:22 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasExt.cc
r2026 r2092 32 32 // 33 33 // extended image parameters 34 // 35 // 36 // Version 1: 37 // ---------- 34 38 // fConc ratio of sum of two highest pixels over fSize 35 39 // fConc1 ratio of highest pixel over fSize … … 38 42 // fM3Trans third moment along minor axis 39 43 // 44 // Version 2: 45 // ---------- 46 // fConc removed 47 // fConc1 removed 48 // 49 // 40 50 // WARNING: Before you can use fAsym, fM3Long and fM3Trans you must 41 51 // multiply by the sign of MHillasSrc::fCosDeltaAlpha … … 43 53 //////////////////////////////////////////////////////////////////////////// 44 54 /* 45 // fLeakage1 ratio : (photons in most outer ring of pixels) over fSize46 // fLeakage2 ratio : (photons in the 2 outer rings of pixels) over fSize47 //48 55 // fAsymna d/(d na) of ( sum(x*q^na)/sum(q^na), sum(y*q^na)/sum(q^na) ) 49 56 // projected onto the major axis … … 155 162 continue; // [1] 156 163 } 157 158 /*159 //160 // power na for calculating fAsymna;161 // the value 1.5 was suggested by Thomas Schweizer162 //163 Double_t na = 1.5;164 165 //166 // get sums for calculating fAsymna167 // the outer pixels are 4 times as big (in area)168 // as the inner pixels !169 //170 const Double_t dummy = pow(nphot, na)/r;171 172 sna += dummy;173 xna += dzx*dummy;174 175 sna1 += sna/nphot;176 xna1 += xna/nphot;177 178 //179 // forward-backward asymmetry180 //181 fb += dzx<0 ? -nphot: nphot;182 */183 164 } 184 165 … … 186 167 187 168 fAsym = (hil.GetMeanX()-maxp.GetX())*hil.GetCosDelta() + 188 (hil.GetMeanY()-maxp.GetY())*hil.GetSinDelta(); // [mm] 189 190 /* 191 fAsym0 = fb / GetSize(); 192 fAsymna = na * (sna*xna1 - sna1*xna) / (sna*sna); 193 */ 169 (hil.GetMeanY()-maxp.GetY())*hil.GetSinDelta(); // [mm] 194 170 195 171 //
Note:
See TracChangeset
for help on using the changeset viewer.