Changeset 7634 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 04/11/06 16:34:48 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7632 r7634 1194 1194 1195 1195 // Calculate and display spectrum (N/TeVsm^2 at 1TeV) 1196 TArrayD res(DisplaySpectrum(area , excess, hest, ontime));1196 TArrayD res(DisplaySpectrum(area1, excess, hest, ontime)); 1197 1197 1198 1198 // Spectrum fitted (convert res[1] from TeV to GeV) … … 1204 1204 // scale with effective collection area to get the event rate (N/s) 1205 1205 // scale with the effective observation time to absolute observed events 1206 n *= area .GetCollectionAreaAbs()*ontime; // N1206 n *= area1.GetCollectionAreaAbs()*ontime; // N 1207 1207 1208 1208 // Now calculate the scale factor from the number of events 1209 1209 // produced and the number of events which should have been 1210 1210 // observed with our telescope in the time ontime 1211 const Double_t scale = n/area .GetEntries();1211 const Double_t scale = n/area1.GetEntries(); 1212 1212 1213 1213 // Print normalization constant
Note:
See TracChangeset
for help on using the changeset viewer.