- Timestamp:
- 07/26/07 12:21:51 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8646 r8647 42 42 * mranforest/MRanForestCalc.cc: 43 43 - set fTitle as eventloop name instead of fName 44 45 * mimage/MNewImagePar.[h,cc]: 46 - removed the fInner-stuff. It was never good for anything 47 only for space- and time-consumption 48 - increased class-version number by one 44 49 45 50 -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r8210 r8647 32 32 // Float_t fLeakage1; // (photons in most outer ring of pixels) over fSize 33 33 // Float_t fLeakage2; // (photons in the 2 outer rings of pixels) over fSize 34 // Float_t fInnerLeakage1; // (photons in most outer rings of inner pixels) over fInnerSize35 // Float_t fInnerLeakage2; // (photons in the 2 outer rings of inner pixels) over fInnerSize36 // Float_t fInnerSize; //37 34 // 38 35 // Float_t fConc; // [ratio] concentration ratio: sum of the two highest pixels / fSize … … 72 69 // - added fConcCore 73 70 // 71 // Version 6: 72 // ---------- 73 // - removed fInnerLeakage1 74 // - removed fInnerLeakage2 75 // - removed fInnerSize 74 76 // 75 77 ///////////////////////////////////////////////////////////////////////////// … … 109 111 fLeakage1 = -1; 110 112 fLeakage2 = -1; 111 112 fInnerLeakage1 = -1;113 fInnerLeakage2 = -1;114 fInnerSize = -1;115 113 116 114 fConc = -1; … … 139 137 fCoreArea = 0; 140 138 141 fInnerSize = 0;142 139 fConcCore = 0; 143 140 144 141 Double_t edgepix1 = 0; 145 142 Double_t edgepix2 = 0; 146 147 Double_t edgepixin1 = 0;148 Double_t edgepixin2 = 0;149 143 150 144 Float_t maxpix1 = 0; // [#phot] … … 157 151 const Double_t rl = 1./(hillas.GetLength()*hillas.GetLength()); 158 152 const Double_t rw = 1./(hillas.GetWidth() *hillas.GetWidth()); 159 160 const Bool_t ismagiclike =161 geom.GetNumPixels() == 577 &&162 geom.GetNumAreas() == 2 &&163 geom.GetPixRatio(396) > geom.GetPixRatio(397);164 153 165 154 UInt_t npix = evt.GetNumPixels(); … … 245 234 edgepix2 += nphot; 246 235 247 const Double_t ratio = geom.GetPixRatio(i);248 if (TMath::Nint(ratio)==1) // Means this is a small (= inner pixel)249 {250 fInnerSize += nphot;251 252 // Do calculation of "inner leakage" only for MAGIC-like geometry,253 // i.e., 577 pixels, pixels of 2 different areas, inner part254 // from pixel 0 to 396:255 if (ismagiclike)256 {257 if(i > 270) // last two "rings" of inner pixels258 {259 edgepixin2 += nphot;260 if(i > 330) // last "ring" of inner pixels261 edgepixin1 += nphot;262 }263 }264 }265 266 236 // 267 237 // Now convert nphot from absolute number of photons or phe to signal … … 269 239 // density: 270 240 // 271 nphot *= ratio;241 nphot *= geom.GetPixRatio(i); 272 242 273 243 // Look for signal density in two highest pixels: … … 282 252 } 283 253 284 fInnerLeakage1 = edgepixin1 / fInnerSize;285 fInnerLeakage2 = edgepixin2 / fInnerSize;286 287 254 fLeakage1 = edgepix1 / hillas.GetSize(); 288 255 fLeakage2 = edgepix2 / hillas.GetSize(); … … 318 285 *fLog << " - Leakage1 [1] = " << fLeakage1 << endl; 319 286 *fLog << " - Leakage2 [1] = " << fLeakage2 << endl; 320 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1 << endl;321 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2 << endl;322 *fLog << " - InnerSize [phe] = " << fInnerSize << endl;323 287 *fLog << " - Conc [1] = " << fConc << endl; 324 288 *fLog << " - Conc1 [1] = " << fConc1 << endl; … … 342 306 *fLog << " - Leakage1 [1] = " << fLeakage1 << endl; 343 307 *fLog << " - Leakage2 [1] = " << fLeakage2 << endl; 344 *fLog << " - InnerLeakage1 [1] = " << fInnerLeakage1 << endl;345 *fLog << " - InnerLeakage2 [1] = " << fInnerLeakage2 << endl;346 *fLog << " - InnerSize [phe] = " << fInnerSize << endl;347 308 *fLog << " - Conc [1] = " << fConc << endl; 348 309 *fLog << " - Conc1 [1] = " << fConc1 << endl; -
trunk/MagicSoft/Mars/mimage/MNewImagePar.h
r7538 r8647 17 17 Float_t fLeakage1; // (photons in most outer ring of pixels) over fSize 18 18 Float_t fLeakage2; // (photons in the 2 outer rings of pixels) over fSize 19 Float_t fInnerLeakage1; // (photons in most outer rings of inner pixels) over fInnerSize20 Float_t fInnerLeakage2; // (photons in the 2 outer rings of inner pixels) over fInnerSize21 Float_t fInnerSize; //22 19 23 20 Float_t fConc; // [ratio] concentration ratio: sum of the two highest pixels / fSize … … 39 36 Float_t GetLeakage2() const { return fLeakage2; } 40 37 41 Float_t GetInnerLeakage1() const { return fInnerLeakage1; }42 Float_t GetInnerLeakage2() const { return fInnerLeakage2; }43 Float_t GetInnerSize() const { return fInnerSize; }44 45 38 Float_t GetConc() const { return fConc; } 46 39 Float_t GetConc1() const { return fConc1; } … … 60 53 const MHillas &hillas, Int_t island=-1); 61 54 62 ClassDef(MNewImagePar, 5) // Container to hold new image parameters55 ClassDef(MNewImagePar, 6) // Container to hold new image parameters 63 56 }; 64 57
Note:
See TracChangeset
for help on using the changeset viewer.