ThrownEventsHistogram
- class lstchain.io.lstcontainers.ThrownEventsHistogram(prefix=None, **fields)
Bases:
Container
2D histogram from SimTel files
- Attributes:
- obs_idField(default=-1)
MC run ID
- hist_idField(default=-1)
Histogram ID
- num_entriesField(default=-1)
Number of entries in the histogram
- bins_energyField(default=None)
Array of energy bin lower edges, as in np.histogram
- bins_core_distField(default=None)
Array of core-distance bin lower edges, as in np.histogram
- histogramField(default=None)
Array of histogram entries, size (n_bins_x, n_bins_y)
- metadict
dict of attached metadata
- prefixstr
Prefix attached to column names when saved to a table or file
Attributes Summary
Methods Summary
fill_from_simtel
(hist)fill from a SimTel Histogram entry
Attributes Documentation
- bins_core_dist
- bins_energy
- default_prefix = 'throwneventshistogram'
- fields = {'bins_core_dist': Field(default=None), 'bins_energy': Field(default=None), 'hist_id': Field(default=-1), 'histogram': Field(default=None), 'num_entries': Field(default=-1), 'obs_id': Field(default=-1)}
- hist_id
- histogram
- meta
- num_entries
- obs_id
- prefix
Methods Documentation
- fill_from_simtel(hist)
fill from a SimTel Histogram entry