Changeset 596 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 02/06/01 09:44:16 (24 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MNphotEvent.cc
r595 r596 111 111 { 112 112 return ( ( (MNphotPix *) fPixels->At(i))->GetPhotons() ) ; 113 } 114 115 Float_t MNphotEvent::GetErrorPhot(Int_t i ) 116 { 117 return ( ( (MNphotPix *) fPixels->At(i))->GetErrorPhot() ) ; 113 118 } 119 120 121 Float_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 141 Float_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 74 74 Int_t GetPixelId(Int_t i ) ; 75 75 Float_t GetPhotons(Int_t i ) ; 76 Float_t GetErrorPhot(Int_t i ) ; 76 77 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 78 82 }; 79 83 -
trunk/MagicSoft/Mars/manalysis/MReadCT1Ascii.cc
r592 r596 80 80 81 81 if ( dummyF > 0.0 ) { 82 fNphot->AddPixel(i, dummyF, 0.) ;82 fNphot->AddPixel(i, dummyF, sqrt(dummyF) ) ; 83 83 } 84 84
Note:
See TracChangeset
for help on using the changeset viewer.