Ignore:
Timestamp:
03/01/09 21:54:27 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
6 edited

Legend:

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

    r8911 r9369  
    291291            continue;
    292292
    293         const MGeomPix &gpix = geom[i];
     293        const MGeom &gpix = geom[i];
    294294
    295295        const Float_t nphot = pix.GetNumPhotons();
     
    339339            continue;
    340340
    341         const MGeomPix &gpix = geom[i];
     341        const MGeom &gpix = geom[i];
    342342
    343343        const Float_t dx = gpix.GetX() - fMeanX;     // [mm]
  • trunk/MagicSoft/Mars/mimage/MHillasExt.cc

    r8619 r9369  
    161161            continue;
    162162
    163         const MGeomPix &gpix = geom[i];
     163        const MGeom &gpix = geom[i];
    164164
    165165        const Double_t x = gpix.GetX();
     
    238238    // Asymmetry
    239239    //
    240     const MGeomPix &maxp = geom[maxpixid];
     240    const MGeom &maxp = geom[maxpixid];
    241241    fAsym = (hil.GetMeanX()-maxp.GetX())*c + (hil.GetMeanY()-maxp.GetY())*s;            // [mm]
    242242
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc

    r9352 r9369  
    395395//
    396396//
    397 Bool_t MImgCleanStd::HasCoreNeighbors(const MGeomPix &gpix) const
     397Bool_t MImgCleanStd::HasCoreNeighbors(const MGeom &gpix) const
    398398{
    399399//    if (fKeepIsolatedPixels)
     
    428428}
    429429
    430 Bool_t MImgCleanStd::HasUsedNeighbors(const MGeomPix &gpix) const
     430Bool_t MImgCleanStd::HasUsedNeighbors(const MGeom &gpix) const
    431431{
    432432    //loop on the neighbors to check if they are used
     
    448448
    449449
    450 void MImgCleanStd::SetUsedNeighbors(const MGeomPix &gpix, Int_t r) const
     450void MImgCleanStd::SetUsedNeighbors(const MGeom &gpix, Int_t r) const
    451451{
    452452    if (r>fCleanRings)
     
    527527            continue;
    528528
    529         const MGeomPix &gpix = (*fCam)[idx];
     529        const MGeom &gpix = (*fCam)[idx];
    530530
    531531        // Check if the pixel is an isolated core pixel
     
    556556
    557557/*
    558 Float_t MImgCleanStd::GetArrivalTimeNeighbor(const MGeomPix &gpix) const
     558Float_t MImgCleanStd::GetArrivalTimeNeighbor(const MGeom &gpix) const
    559559{
    560560    Float_t min = FLT_MAX;
     
    595595            continue;
    596596
    597         const MGeomPix &gpix = (*fCam)[idx];
     597        const MGeom &gpix = (*fCam)[idx];
    598598
    599599        // If isolated possible-corepixel doesn't have used
     
    638638            continue;
    639639
    640         const MGeomPix &gpix = (*fCam)[idx];
     640        const MGeom &gpix = (*fCam)[idx];
    641641
    642642        // If isolated possible-corepixel doesn't have used
     
    676676
    677677        // loop over its neighbpors
    678         const MGeomPix &gpix = (*fCam)[idx];
     678        const MGeom &gpix = (*fCam)[idx];
    679679
    680680        Int_t cnt = 0;
  • trunk/MagicSoft/Mars/mimage/MImgCleanStd.h

    r8765 r9369  
    77
    88class MGeomCam;
    9 class MGeomPix;
     9class MGeom;
    1010class MSignalCam;
    1111class MPedPhotCam;
     
    5858
    5959    // MImgCleanStd
    60     Bool_t HasCoreNeighbors(const MGeomPix &gpix) const;
    61     Bool_t HasUsedNeighbors(const MGeomPix &gpix) const;
    62     void   SetUsedNeighbors(const MGeomPix &gpix, Int_t r=1) const;
     60    Bool_t HasCoreNeighbors(const MGeom &gpix) const;
     61    Bool_t HasUsedNeighbors(const MGeom &gpix) const;
     62    void   SetUsedNeighbors(const MGeom &gpix, Int_t r=1) const;
    6363    Int_t  DoCleaning(Float_t &size) const;
    6464    void   ResetCleaning() const;
  • trunk/MagicSoft/Mars/mimage/MNewImagePar.cc

    r8958 r9369  
    160160
    161161        // Get geometry of pixel
    162         const MGeomPix &gpix = geom[i];
     162        const MGeom &gpix = geom[i];
    163163
    164164        // Find the three pixels which are next to the COG
     
    220220        const Double_t dzx   =  hillas.GetCosDelta()*dx + hillas.GetSinDelta()*dy; // [mm]
    221221        const Double_t dzy   = -hillas.GetSinDelta()*dx + hillas.GetCosDelta()*dy; // [mm]
    222         const Double_t dz    =  gpix.GetD()*gpix.GetD()/4;
     222        const Double_t dz    =  gpix.GetT()*gpix.GetT()/4;
    223223        const Double_t tana  =  dzy*dzy/(dzx*dzx);
    224224        const Double_t distr =  (1+tana)/(rl + tana*rw);
  • trunk/MagicSoft/Mars/mimage/MNewImagePar2.cc

    r8106 r9369  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MNewImagePar2.cc,v 1.2 2006-10-17 17:16:00 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MNewImagePar2.cc,v 1.3 2009-03-01 21:48:14 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    9191        Int_t used=0;
    9292
    93         const MGeomPix &gpix = geom[i];
     93        const MGeom &gpix = geom[i];
    9494        const Int_t nn = gpix.GetNumNeighbors();
    9595        for (int j=0; j<nn; j++)
     
    108108            evt[i].ResetBit(BIT(14));
    109109
    110         fBorderLinePixel += (nn-used)*gpix.GetL();
     110        // FIXME: GetT is not the correct value
     111        fBorderLinePixel += (nn-used)*gpix.GetT();
    111112    }
    112113
     
    115116        const Int_t l = idx[m];
    116117
    117         const MGeomPix &gpix = geom[l];
     118        const MGeom &gpix = geom[l];
    118119
    119120        const Int_t nn = gpix.GetNumNeighbors();
Note: See TracChangeset for help on using the changeset viewer.