Changeset 594 for trunk


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Makefile

    r593 r594  
    3535#  ----->>>   mars libraries
    3636#
    37 SUBDIRS = mgui meventdisp mdatacheck mbase mraw manalysis mmc
     37SUBDIRS = mgui manalysis meventdisp mdatacheck mbase mraw mmc
    3838
    3939LIBRARIES = $(SUBDIRS:=.a)
     
    6464
    6565$(LIBRARIES):
     66        @echo " ++++++++++++++++++++++++++++++ " 
    6667        @echo " Creating lib$@:"
    6768        (cd $*; make; cd ..; mv $*/$@ lib/lib$@)
  • trunk/MagicSoft/Mars/macros/readCT1.C

    r592 r594  
    1111  MNphotEvent *phevt = new MNphotEvent() ;
    1212
     13
    1314  plist->AddToList( phevt ) ;
    1415 
     16
    1517  MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/MCCT1_99_ga20.dat") ;
    1618
    1719  // MReadCT1Ascii *readct1 = new MReadCT1Ascii("/hd10/www/Anal_MAGIC/CT1_99_on1.dat") ;
     20
    1821
    1922 
  • 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.