Ignore:
Timestamp:
02/06/01 09:44:16 (24 years ago)
Author:
harald
Message:
Now the first version of the Camera eventdisplay is running.
Run the macro "readCT1.C" to have a look.
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

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

    r595 r596  
    111111{
    112112  return ( ( (MNphotPix *) fPixels->At(i))->GetPhotons() ) ;
     113}
     114 
     115Float_t MNphotEvent::GetErrorPhot(Int_t i )
     116{
     117  return ( ( (MNphotPix *) fPixels->At(i))->GetErrorPhot() ) ;
    113118}
     119
     120
     121Float_t MNphotEvent::GetMinimumPhoton()
     122{
     123  if ( fNbPixels <= 0 )
     124    return -5. ;
     125 
     126  Float_t minWert ;
     127  minWert = ((MNphotPix *) fPixels->At(0))->GetPhotons() ;
     128
     129  Float_t testWert ;
     130
     131  for ( Int_t i =0 ; i<fNbPixels ; i++ ) {
     132    testWert = ((MNphotPix *) fPixels->At(i))->GetPhotons() ;
     133   
     134    if ( minWert >= testWert )
     135      minWert = testWert ;
     136  }
     137
     138  return  minWert ;
     139}
     140
     141Float_t MNphotEvent::GetMaximumPhoton()
     142{
     143  if ( fNbPixels <= 0 )
     144    return 50. ;
     145 
     146  Float_t maxWert ;
     147  maxWert = ((MNphotPix *) fPixels->At(0))->GetPhotons() ;
     148
     149  Float_t testWert ;
     150
     151  for ( Int_t i =0 ; i<fNbPixels ; i++ ) {
     152    testWert = ((MNphotPix *) fPixels->At(i))->GetPhotons() ;
     153   
     154    if ( maxWert <= testWert )
     155      maxWert = testWert ;
     156  }
     157
     158  return  maxWert ;
     159}
     160
  • trunk/MagicSoft/Mars/manalysis/MNphotEvent.h

    r595 r596  
    7474  Int_t GetPixelId(Int_t i ) ;
    7575  Float_t GetPhotons(Int_t i ) ;
     76  Float_t GetErrorPhot(Int_t i ) ;
    7677 
    77     ClassDef(MNphotEvent, 1)    // class for Nphotons Events
     78  Float_t GetMinimumPhoton()  ; 
     79  Float_t GetMaximumPhoton()  ;
     80 
     81  ClassDef(MNphotEvent, 1)    // class for Nphotons Events
    7882};
    7983
  • trunk/MagicSoft/Mars/manalysis/MReadCT1Ascii.cc

    r592 r596  
    8080     
    8181      if ( dummyF > 0.0 ) {
    82         fNphot->AddPixel(i, dummyF, 0. ) ;
     82        fNphot->AddPixel(i, dummyF, sqrt(dummyF) ) ;
    8383      }
    8484     
Note: See TracChangeset for help on using the changeset viewer.