Changeset 1271


Ignore:
Timestamp:
04/05/02 14:17:53 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r1270 r1271  
    1515       tasks doesn't waste time if a tasks doesn't have the process
    1616       function
     17
     18   * mgui/MGeomPix.[h,cc]:
     19     - corrected calculation of pixel area
    1720
    1821
  • trunk/MagicSoft/Mars/mgui/MGeomPix.cc

    r1211 r1271  
    2424\* ======================================================================== */
    2525
    26 ///////////////////////////////////////////////////////////////////////
     26//////////////////////////////////////////////////////////////////////////////
    2727//
    2828// MGeomPix
     
    3131// a single pixel together with the information about next neighbors.
    3232//
    33 ///////////////////////////////////////////////////////////////////////
     33//////////////////////////////////////////////////////////////////////////////
    3434
    3535#include "MGeomPix.h"
     36
     37#include <math.h>
    3638
    3739#include "MLog.h"
     
    4749{
    4850    //  default constructor
     51}
     52
     53// --------------------------------------------------------------------------
     54//
     55// Return the area of the pixel. A hegagonal shape is assumed.
     56//
     57Float_t MGeomPix::GetA() const
     58{
     59    return fR*fR*tan(60/kRad2Deg);
    4960}
    5061
Note: See TracChangeset for help on using the changeset viewer.