Ignore:
Timestamp:
10/16/01 10:42:09 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r749 r963  
    2424\* ======================================================================== */
    2525
     26///////////////////////////////////////////////////////////////////////
     27//
     28// MGeomCam
     29//
     30// This is the base class of different camera geometries. It creates
     31// a pixel object for a given number of pixels and defines the
     32// interface of how to acccess the geometry information.
     33//
     34///////////////////////////////////////////////////////////////////////
     35
    2636#include "MGeomCam.h"
    2737
     
    2939#include "MHexagon.h"
    3040
    31 ClassImp(MGeomCam)
     41ClassImp(MGeomCam);
    3242
     43// --------------------------------------------------------------------------
     44//
     45// Initializes a Camera Geometry with npix pixels. All pixels
     46// are deleted when the corresponding array is deleted.
     47//
    3348MGeomCam::MGeomCam(UInt_t npix, const char *name, const char *title)
    3449{
     
    4863}
    4964
    50 void MGeomCam::Draw( Option_t * )
    51 {
    52     //
    53     // Draw the Camera
    54     //
    55     for (UInt_t i=0; i<fNumPixels; i++)
    56     {
    57         MHexagon *el = new MHexagon((*this)[i]);
    58         el->Draw();
    59     }
    60 }
    61 
     65// --------------------------------------------------------------------------
     66//
     67//  Prints the Geometry information of all pixels in the camera
     68//
    6269void MGeomCam::Print(Option_t *)
    6370{
     
    6572    //   Print Information about the Geometry of the camera
    6673    //
    67     *fLog << " Number of Pixels: " << fNumPixels << endl ;
     74    *fLog << " Number of Pixels (" << GetTitle() << "): " << fNumPixels << endl;
    6875
    69     for (UInt_t i=0; i<fNumPixels; i++ )
     76    for (UInt_t i=0; i<fNumPixels; i++)
    7077    {
    7178        *fLog << " Pixel: " << i << "  ";
    72         (*this)[i].Print() ;
     79        (*this)[i].Print();
    7380    }
    7481}
Note: See TracChangeset for help on using the changeset viewer.