Changeset 3666 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 04/06/04 13:41:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 5 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 -
trunk/MagicSoft/Mars/mimage/MHillasExt.h
r2624 r3666 20 20 Float_t fM3Trans; // [mm] 3rd moment (e-weighted) along minor axis 21 21 22 Float_t fMaxDist; // Distance between center and most distant used pixel 23 22 24 public: 23 25 MHillasExt(const char *name=NULL, const char *title=NULL); … … 29 31 Float_t GetM3Trans() const { return fM3Trans; } 30 32 33 Float_t GetMaxDist() const { return fMaxDist; } 34 31 35 Int_t Calc(const MGeomCam &geom, const MCerPhotEvt &pix, const MHillas &hil); 32 36 … … 36 40 void Set(const TArrayF &arr); 37 41 38 ClassDef(MHillasExt, 2) // Storage Container for extended Hillas Parameter42 ClassDef(MHillasExt, 3) // Storage Container for extended Hillas Parameter 39 43 }; 40 44 #endif -
trunk/MagicSoft/Mars/mimage/MHillasSrcCalc.cc
r2470 r3666 114 114 Int_t MHillasSrcCalc::Process() 115 115 { 116 117 116 if (!fHillasSrc->Calc(fHillas)) 118 117 { -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r3574 r3666 44 44 // - added fInnerLeakage2 45 45 // - added fInnerSize 46 // - added fUsedArea 47 // - added fCoreArea 48 // 46 49 // 47 50 ///////////////////////////////////////////////////////////////////////////// … … 92 95 fNumCorePixels = -1; 93 96 97 fUsedArea = -1; 98 fCoreArea = -1; 99 94 100 fNumSaturatedPixels = -1; 95 101 fNumHGSaturatedPixels = -1; … … 105 111 fNumUsedPixels = 0; 106 112 fNumCorePixels = 0; 113 114 fUsedArea = 0; 115 fCoreArea = 0; 107 116 108 117 fNumSaturatedPixels = 0; … … 136 145 continue; 137 146 147 // Get geometry of pixel 148 const Int_t pixid = pix.GetPixId(); 149 const MGeomPix &gpix = geom[pixid]; 150 138 151 // count used and core pixels 139 152 if (pix.IsPixelCore()) 153 { 140 154 fNumCorePixels++; 155 fCoreArea += gpix.GetA(); 156 } 141 157 142 158 // count used pixels 143 159 fNumUsedPixels++; 144 145 const Int_t pixid = pix.GetPixId(); 146 147 const MGeomPix &gpix = geom[pixid]; 160 fUsedArea += gpix.GetA(); 148 161 149 162 Double_t nphot = pix.GetNumPhotons(); … … 165 178 // count inner pixels: To dependent on MAGIC Camera --> FIXME 166 179 167 168 169 170 171 172 173 174 180 if (pixid<397){ 181 fInnerSize += nphot; 182 if(pixid>270){ 183 edgepixin2 += nphot; 184 if(pixid>330) 185 edgepixin1 += nphot; 186 } 187 } 175 188 176 189 // Compute Concetration 1 -2 177 190 178 191 if (nphot>maxpix1) 179 192 { 180 193 maxpix2 = maxpix1; 181 194 maxpix1 = nphot; // [1] 182 195 continue; // [1] 183 184 196 } 197 185 198 if (nphot>maxpix2) 186 199 maxpix2 = nphot; // [1] 187 200 } 188 201 -
trunk/MagicSoft/Mars/mimage/MNewImagePar.h
r3574 r3666 13 13 { 14 14 private: 15 Float_t fLeakage1; // (photons in most outer ring of pixels) over fSize16 Float_t fLeakage2; // (photons in the 2 outer rings of pixels) over fSize17 Float_t fInnerLeakage1; // (photons in most outer rings of inner pixels) over fInnerSize18 Float_t fInnerLeakage2; // (photons in the 2 outer rings of inner pixels) over fInnerSize19 Float_t fInnerSize; //15 Float_t fLeakage1; // (photons in most outer ring of pixels) over fSize 16 Float_t fLeakage2; // (photons in the 2 outer rings of pixels) over fSize 17 Float_t fInnerLeakage1; // (photons in most outer rings of inner pixels) over fInnerSize 18 Float_t fInnerLeakage2; // (photons in the 2 outer rings of inner pixels) over fInnerSize 19 Float_t fInnerSize; // 20 20 21 Float_t fConc; // [ratio] concentration ratio: sum of the two highest pixels / fSize22 Float_t fConc1; // [ratio] concentration ratio: sum of the highest pixel / fSize21 Float_t fConc; // [ratio] concentration ratio: sum of the two highest pixels / fSize 22 Float_t fConc1; // [ratio] concentration ratio: sum of the highest pixel / fSize 23 23 24 Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning 25 Short_t fNumCorePixels; // number of core pixels 24 Float_t fUsedArea; // Area of pixels which survived the image cleaning 25 Float_t fCoreArea; // Area of core pixels 26 Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning 27 Short_t fNumCorePixels; // number of core pixels 26 28 Short_t fNumHGSaturatedPixels; // number of pixels with saturating hi-gains 27 29 Short_t fNumSaturatedPixels; // number of pixels with saturating lo-gains … … 41 43 Short_t GetNumCorePixels() const { return fNumCorePixels; } 42 44 45 Float_t GetNumUsedArea() const { return fUsedArea; } 46 Float_t GetNumCoreArea() const { return fCoreArea; } 47 43 48 Short_t GetNumSaturatedPixels() const { return fNumSaturatedPixels; } 44 49 Short_t GetNumHGSaturatedPixels() const { return fNumHGSaturatedPixels; }
Note:
See TracChangeset
for help on using the changeset viewer.