Ignore:
Timestamp:
07/26/07 12:21:51 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r8210 r8647  
    3232//    Float_t fLeakage1;             // (photons in most outer ring of pixels) over fSize
    3333//    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 fInnerSize
    35 //    Float_t fInnerLeakage2;        // (photons in the 2 outer rings of inner pixels) over fInnerSize
    36 //    Float_t fInnerSize;            //
    3734//
    3835//    Float_t fConc;                 // [ratio] concentration ratio: sum of the two highest pixels / fSize
     
    7269//  - added fConcCore
    7370//
     71// Version 6:
     72// ----------
     73//  - removed fInnerLeakage1
     74//  - removed fInnerLeakage2
     75//  - removed fInnerSize
    7476//
    7577/////////////////////////////////////////////////////////////////////////////
     
    109111    fLeakage1 = -1;
    110112    fLeakage2 = -1;
    111 
    112     fInnerLeakage1 = -1;
    113     fInnerLeakage2 = -1;
    114     fInnerSize     = -1;
    115113
    116114    fConc     = -1;
     
    139137    fCoreArea = 0;
    140138
    141     fInnerSize = 0;
    142139    fConcCore  = 0;
    143140
    144141    Double_t edgepix1 = 0;
    145142    Double_t edgepix2 = 0;
    146 
    147     Double_t edgepixin1 = 0;
    148     Double_t edgepixin2 = 0;
    149143
    150144    Float_t maxpix1 = 0;                                 // [#phot]
     
    157151    const Double_t rl = 1./(hillas.GetLength()*hillas.GetLength());
    158152    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);
    164153
    165154    UInt_t npix = evt.GetNumPixels();
     
    245234           edgepix2 += nphot;
    246235
    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 part
    254             // from pixel 0 to 396:
    255             if (ismagiclike)
    256             {
    257                 if(i > 270) // last two "rings" of inner pixels
    258                 {
    259                     edgepixin2 += nphot;
    260                     if(i > 330)  // last "ring" of inner pixels
    261                         edgepixin1 += nphot;
    262                 }
    263             }
    264         }
    265 
    266236        //
    267237        // Now convert nphot from absolute number of photons or phe to signal
     
    269239        // density:
    270240        //
    271         nphot *= ratio;
     241        nphot *= geom.GetPixRatio(i);
    272242
    273243        // Look for signal density in two highest pixels:
     
    282252    }
    283253
    284     fInnerLeakage1 = edgepixin1 / fInnerSize;
    285     fInnerLeakage2 = edgepixin2 / fInnerSize;
    286 
    287254    fLeakage1 = edgepix1 / hillas.GetSize();
    288255    fLeakage2 = edgepix2 / hillas.GetSize();
     
    318285    *fLog << " - Leakage1         [1] = " << fLeakage1      << endl;
    319286    *fLog << " - Leakage2         [1] = " << fLeakage2      << endl;
    320     *fLog << " - InnerLeakage1    [1] = " << fInnerLeakage1 << endl;
    321     *fLog << " - InnerLeakage2    [1] = " << fInnerLeakage2 << endl;
    322     *fLog << " - InnerSize      [phe] = " << fInnerSize     << endl;
    323287    *fLog << " - Conc             [1] = " << fConc          << endl;
    324288    *fLog << " - Conc1            [1] = " << fConc1         << endl;
     
    342306    *fLog << " - Leakage1         [1] = " << fLeakage1      << endl;
    343307    *fLog << " - Leakage2         [1] = " << fLeakage2      << endl;
    344     *fLog << " - InnerLeakage1    [1] = " << fInnerLeakage1 << endl;
    345     *fLog << " - InnerLeakage2    [1] = " << fInnerLeakage2 << endl;
    346     *fLog << " - InnerSize      [phe] = " << fInnerSize     << endl;
    347308    *fLog << " - Conc             [1] = " << fConc          << endl;
    348309    *fLog << " - Conc1            [1] = " << fConc1         << endl;
Note: See TracChangeset for help on using the changeset viewer.