Ignore:
Timestamp:
01/31/01 12:01:29 (24 years ago)
Author:
harald
Message:
problems with running the macro readCT1.C. The reason was the Name and
Title of MNphotEvent. --> Solved!!
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

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

    r591 r594  
    4141
    4242
    43 MNphotEvent::MNphotEvent(Int_t type )
     43MNphotEvent::MNphotEvent(const char *name, const char *title )
    4444{
    45   fType = type ;
     45  //   the default constructor
     46
     47 
     48  *fName  = name  ? name  : "MNphotEvent";
     49  *fTitle = name  ? name  : "(Number of Photon)-Event Information";
     50 
     51  fType = 0 ;
    4652  fNbPixels = 0 ;
    4753 
    48   if (fType == 0 )  // this is MAGIC
    49     {
    50       fPixels = new TClonesArray ("MNphotPix", 577) ;
    51     }
    52   else if ( fType == 1 ) // this is CT1
    53     {
    54       fPixels = new TClonesArray ("MNphotPix", 127) ;
    55     }
    56 
     54  fPixels = new TClonesArray ("MNphotPix", 577) ;
     55 
    5756  fPixels->Clear() ;
    5857}
     
    6362  //
    6463 
    65 //   MCamDisplay disp(fType)  ;
     64  //   MCamDisplay disp(fType)  ;
     65 
     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() ;
     72 
     73}
    6674
    67 //   for (Int_t i=0; i<fNbPixels; i++)
    68 //     {
    69 //       disp.SetPixelColor( ((MNphotPix *) fPixels->At(i))->GetPixId(),
    70 //                        ((MNphotPix *) fPixels->At(i))->GetPhotons()) ;
    71 //     }
    72 //   disp.Draw() ;
    73 
    74 }
    7575
    7676
  • trunk/MagicSoft/Mars/manalysis/MNphotEvent.h

    r592 r594  
    6060 public:
    6161 
    62   MNphotEvent( Int_t type=0 ) ;
     62  MNphotEvent(const char *name=NULL, const char *title=NULL) ;
    6363
    6464  void Draw(Option_t* option) ;
     
    7272  void Print() ;
    7373
    74   ClassDef(MNphotEvent, 1)    // class for CeNphotons Events
     74  ClassDef(MNphotEvent, 1)    // class for Nphotons Events
    7575};
    7676
Note: See TracChangeset for help on using the changeset viewer.