Changeset 976 for trunk


Ignore:
Timestamp:
10/23/01 15:55:12 (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/MCamDisplay.cc

    r974 r976  
    1212#include "MGeomCam.h"
    1313
     14#include "MCerPhotPix.h"
    1415#include "MCerPhotEvt.h"
    1516
     
    8586    delete fLegend;
    8687    delete fLegText;
     88}
     89
     90inline void MCamDisplay::SetPixColor(const MCerPhotPix &pix)
     91{
     92    (*this)[pix.GetPixId()].SetFillColor(GetColor(pix.GetNumPhotons()));
    8793}
    8894
  • trunk/MagicSoft/Mars/mgui/MCamDisplay.h

    r974 r976  
    44#ifndef MAGIC_H
    55#include "MAGIC.h"
    6 #endif
    7 #ifndef MHEXAGON_H
    8 #include "MHexagon.h"
    9 #endif
    10 #ifndef MCERPHOTPIX_H
    11 #include "MCerPhotPix.h"
    12 #endif
    13 #ifndef MCERPHOTEVT_H
    14 #include "MCerPhotEvt.h"
    156#endif
    167#ifndef ROOT_TClonesArray
     
    2314class TClonesArray;
    2415
     16class MGeomCam;
     17class MHexagon;
    2518class MCerPhotEvt;
    26 class MGeomCam;
     19class MCerPhotPix;
    2720
    2821class MCamDisplay : public TObject
     
    4740    TText *GetText(Int_t i) { return (TText*)fLegText->At(i); }
    4841
    49     void SetPixColor(const MCerPhotPix &pix)
    50     {
    51         (*this)[pix.GetPixId()].SetFillColor( GetColor(pix.GetNumPhotons()));
    52     }
     42    void SetPixColor(const MCerPhotPix &pix);
    5343
    5444    MHexagon &operator[](int i) { return *((MHexagon*)fPixels->At(i)); }
Note: See TracChangeset for help on using the changeset viewer.