Changeset 595 for trunk


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".
Location:
trunk/MagicSoft/Mars
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/readCT1.C

    r594 r595  
    1919  // MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
    2020
    21 
    22  
    2321  cout << readct1->PreProcess(plist) << endl ;
    2422
    2523  Int_t icount = 0 ;
     24
     25  MCamDisplay display(0) ;
     26
    2627  while ( readct1->Process() == kTRUE )
    2728    {
    2829      cout << "Event: " << icount++  << endl  ;
    29       //      phevt->Print() ; 
     30     
     31      if ( icount == 3 )
     32        phevt->Print() ;
     33     
     34      display->Draw( phevt )  ;
     35
     36      gClient->HandleInput();   
     37      if(getchar()=='e') break; 
    3038    }
    3139
  • 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}
  • trunk/MagicSoft/Mars/manalysis/MNphotEvent.h

    r594 r595  
    6262  MNphotEvent(const char *name=NULL, const char *title=NULL) ;
    6363
    64   void Draw(Option_t* option) ;
     64  void Draw(Option_t* option = "" ) ;
    6565
    6666  Int_t    GetNbPixels() ;
     
    7272  void Print() ;
    7373
    74   ClassDef(MNphotEvent, 1)    // class for Nphotons Events
     74  Int_t GetPixelId(Int_t i ) ;
     75  Float_t GetPhotons(Int_t i ) ;
     76 
     77    ClassDef(MNphotEvent, 1)    // class for Nphotons Events
    7578};
    7679
  • trunk/MagicSoft/Mars/mgui/Makefile

    r591 r595  
    2727#  connect the include files defined in the config.mk file
    2828#
    29 INCLUDES = -I. -I../mbase -I../mraw -I../mdatacheck -I../meventdisp
     29INCLUDES = -I. -I../mbase -I../mraw -I../mdatacheck -I../meventdisp -I../manalysis
    3030
    3131#
     
    5858           MGPrototyp.cc \
    5959           MHexagon.cc \
    60            MCamGeom.cc
     60           MCamGeom.cc \
     61           MCamDisplay.cc
    6162
    6263
Note: See TracChangeset for help on using the changeset viewer.