Ignore:
Timestamp:
09/09/05 19:24:18 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.cc

    r7345 r7346  
    6767// --------------------------------------------------------------------------
    6868//
    69 // Default Constructor
    70 /*
    71 MGeomCam::MGeomCam()
    72     : fNumPixels(0), fCamDist(0), fConvMm2Deg(0),  fMaxRadius(1), fMinRadius(1)
    73 {
    74     fName  = "MGeomCam";
    75     fTitle = "Storage container for a camera geometry";
    76 }
    77 */
    78 // --------------------------------------------------------------------------
    79 //
    80 // Initializes a Camera Geometry with npix pixels. All pixels
    81 // are deleted when the corresponding array is deleted.
     69// Default Constructor. Initializes a Camera Geometry with npix pixels. All
     70// pixels are deleted when the corresponding array is deleted.
    8271//
    8372MGeomCam::MGeomCam(UInt_t npix, Float_t dist, const char *name, const char *title)
     
    141130// --------------------------------------------------------------------------
    142131//
    143 // Returns the distance between the pixels i and j. -1 if an index
    144 // doesn't exist. The default for j is 0. Assuming that 0 is the index
    145 // for a central pixel you can get the distance to the camera center.
    146 //
    147 Float_t MGeomCam::GetDist(UShort_t i, UShort_t j) const
    148 {
    149     if (i>=fNumPixels || j>=fNumPixels)
    150         return -1;
    151 
    152     return (*this)[i].GetDist((*this)[j]);
    153 }
    154 
    155 // --------------------------------------------------------------------------
    156 //
    157132//  Set the kIsOuterRing flag for all pixels which have a outermost pixel
    158133//  as Next Neighbor and don't have the kIsOutermostRing flag itself.
     
    244219            fMaxRadius[0] = maxr;
    245220    }
     221}
     222
     223// --------------------------------------------------------------------------
     224//
     225// Returns the distance between the pixels i and j. -1 if an index
     226// doesn't exist. The default for j is 0. Assuming that 0 is the index
     227// for a central pixel you can get the distance to the camera center.
     228//
     229Float_t MGeomCam::GetDist(UShort_t i, UShort_t j) const
     230{
     231    if (i>=fNumPixels || j>=fNumPixels)
     232        return -1;
     233
     234    return (*this)[i].GetDist((*this)[j]);
    246235}
    247236
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.h

    r7342 r7346  
    3535
    3636protected:
    37 
    3837    void CalcMaxRadius();
    3938    void CalcNumSectors();
     
    4140    void InitOuterRing();
    4241
    43 
    4442public:
    45     //MGeomCam();
    4643    MGeomCam(UInt_t npix=0, Float_t dist=1, const char *name=NULL, const char *title=NULL);
    4744
     
    7067
    7168    Float_t GetDist(UShort_t i, UShort_t j=0) const;
    72    
     69
    7370    UInt_t  GetNumSectors()                const  { return fNumSectors; }
    7471    UInt_t  GetNumAreas()                  const  { return fNumAreas; }
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.cc

    r7342 r7346  
    103103    fNumNeighbors = i;
    104104
    105     if (fNumNeighbors<5)
    106         SetBit(kIsInOutermostRing);
     105    fNumNeighbors<5 ? SetBit(kIsInOutermostRing) : ResetBit(kIsInOutermostRing);
    107106}
    108107
     
    116115    if (IsInOutermostRing())
    117116        return;
     117
     118    ResetBit(kIsInOuterRing);
    118119
    119120    for (int i=0; i<fNumNeighbors; i++)
Note: See TracChangeset for help on using the changeset viewer.