Ignore:
Timestamp:
02/02/01 11:28:36 (24 years ago)
Author:
harald
Message:
Added the first implementation of a EventDisplay for MAGIC.
The class doing the job is called "MCamDisplay".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MNphotEvent.cc

    r594 r595  
    66
    77#include "MCamGeom.h"
    8 //#include "MCamDisplay.h"
     8#include "MCamDisplay.h"
    99#include "MHexagon.h"
    1010
     
    6262  //
    6363 
    64   //   MCamDisplay disp(fType)  ;
     64  MCamDisplay *disp = new MCamDisplay(fType)  ;
    6565 
    66   //   for (Int_t i=0; i<fNbPixels; i++)
    67   //     {
    68   //       disp.SetPixelColor( ((MNphotPix *) fPixels->At(i))->GetPixId(),
    69   //                      ((MNphotPix *) fPixels->At(i))->GetPhotons()) ;
    70   //     }
    71   //   disp.Draw() ;
     66  disp->Draw( this ) ;
    7267 
     68  //  disp->Draw() ;
     69
    7370}
    7471
     
    106103}
    107104 
     105Int_t MNphotEvent::GetPixelId(Int_t i )
     106{
     107  return ( ( (MNphotPix *) fPixels->At(i))->GetPixId() ) ;
     108}
     109
     110Float_t MNphotEvent::GetPhotons(Int_t i )
     111{
     112  return ( ( (MNphotPix *) fPixels->At(i))->GetPhotons() ) ;
     113}
Note: See TracChangeset for help on using the changeset viewer.