Ignore:
Timestamp:
06/26/03 16:21:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2234 r2236  
    9797// --------------------------------------------------------------------------
    9898//
     99// Calculate the highest sector index+1 of all pixels, please make sure
     100// the the sector numbers are continous.
     101//
     102void MGeomCam::CalcNumSectors()
     103{
     104    fNumSectors = 0;
     105
     106    for (UInt_t i=0; i<fNumPixels; i++)
     107    {
     108        const MGeomPix &pix = (*this)[i];
     109        const UInt_t s = pix.GetSector();
     110
     111        if (s>fNumSectors)
     112            fNumSectors = s;
     113    }
     114
     115    fNumSectors++;
     116}
     117
     118// --------------------------------------------------------------------------
     119//
    99120// Calculate the maximum radius of the camera. This is ment for GUI layout.
    100121//
Note: See TracChangeset for help on using the changeset viewer.