Ignore:
Timestamp:
11/07/01 11:50:28 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgui
Files:
2 edited

Legend:

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

    r1027 r1048  
    3636#include "MGeomCam.h"
    3737
    38 #include <TObjArray.h>
    39 
    4038#include "MLog.h"
    4139#include "MGeomPix.h"
     
    7371{
    7472    delete fPixels;
    75 }
    76 
    77 // --------------------------------------------------------------------------
    78 //
    79 // Return the i-th pixel object
    80 //
    81 MGeomPix &MGeomCam::operator[](Int_t i)
    82 {
    83     return *(MGeomPix*)fPixels->At(i);
    84 }
    85 
    86 // --------------------------------------------------------------------------
    87 //
    88 // Return the i-th pixel object
    89 //
    90 MGeomPix &MGeomCam::operator[](Int_t i) const
    91 {
    92     return *(MGeomPix*)fPixels->At(i);
    9373}
    9474
  • trunk/MagicSoft/Mars/mgui/MGeomCam.h

    r1015 r1048  
    55#include "MParContainer.h"
    66#endif
     7#ifndef ROOT_TObjArray
     8#include "TObjArray.h"
     9#endif
    710
    811class MGeomPix;
    9 class TObjArray;
    1012
    1113class MGeomCam : public MParContainer
     
    2931    Float_t GetMaxRadius() const { return fMaxRadius; }
    3032
    31     MGeomPix &operator[](Int_t i);
    32     MGeomPix &operator[](Int_t i) const;
     33    MGeomPix &operator[](Int_t i)       { return *(MGeomPix*)fPixels->UncheckedAt(i); }
     34    MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); }
    3335
    3436    virtual void Print(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.