nectarchain.makers.component.photostatistic_component.PhotoStatisticNectarCAMComponent#
- class PhotoStatisticNectarCAMComponent(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
GainNectarCAMComponentComponent for photo-statistic gain estimation using flat-field and pedestal data.
- Parameters:
- subarraySubarrayDescription
The subarray description.
- configctapipe.core.Config or None, optional
Configuration instance.
- parentComponent or None, optional
Parent component.
Initialise the component, splitting kwargs between the charges components and the photo-statistic algorithm.
- Parameters:
- subarraySubarrayDescription
The subarray description.
- configctapipe.core.Config or None, optional
Configuration instance.
- parentComponent or None, optional
Parent component.
Methods
add_traitsDynamically add trait attributes to the HasTraits instance.
class_config_rst_docGenerate rST documentation for this class' config options.
class_config_sectionGet the config section for this class.
class_get_helpGet the help string for this class in ReST format.
class_get_trait_helpGet the helptext string for a single trait.
class_own_trait_eventsGet a dict of all event handlers defined on this class, not a parent.
class_own_traitsGet a dict of all the traitlets defined on this class, not a parent.
class_print_helpGet the help string for a single trait and print it.
class_trait_namesGet a list of all the names of this class' traits.
class_traitsGet a
dictof all the traits of this class.Finalise processing, merge charges containers, and run the photo-statistic algorithm.
from_nameObtain an instance of a subclass via its name
get_current_configreturn the current configuration as a dict (e.g. the values of all traits, even if they were not set during configuration).
has_traitReturns True if the object has a trait with the specified name.
hold_trait_notificationsContext manager for bundling trait change notifications and cross validation.
non_abstract_subclassesGet a dict of all non-abstract subclasses of this class.
notify_changeNotify observers of a change event
observeSetup a handler to be called when a trait changes.
on_trait_changeDEPRECATED: Setup a handler to be called when a trait changes.
section_namesreturn section names as a list
set_traitForcibly sets trait attribute, including read-only attributes.
setup_instancetrait_defaultsReturn a trait's default value or a dictionary of them
trait_eventsGet a
dictof all the event handlers of this class.trait_has_valueReturns True if the specified trait has a value.
trait_metadataGet metadata values for trait by key.
trait_namesGet a list of all the names of this class' traits.
trait_valuesA
dictof trait names and their values.traitsGet a
dictof all the traits of this class.unobserveRemove a trait change handler.
unobserve_allRemove trait change handlers of any type for the specified name.
update_configUpdate config and load the new values
Attributes
The photo-statitic algorithm to be used
the path of the SPE result container computed with very high voltage data
List of Component names that are used inside current component, this is used to resolve recursively the configurable traits defined in sub-components.
The pixels id where we want to perform the SPE fit
cameraReturns the camera description.
camera_nameReturns the camera name.
The coefficient relating flat-field and pedestal charges, defined as the ratio of the extraction window width to the number of samples.
configA trait whose value must be an instance of a specified class.
cross_validation_lockA contextmanager for running a block with our cross validation lock set to True.
npixelsReturns a deep copy of the number of pixels.
parentA trait whose value must be an instance of a specified class.
pixels_idReturns a deep copy of the pixel IDs array.
run_numberReturns a deep copy of the run number.
subarraytel_idReturns the telescope ID.
- PhotoStatAlgorithm#
The photo-statitic algorithm to be used
- SPE_result#
the path of the SPE result container computed with very high voltage data
- SubComponents#
List of Component names that are used inside current component, this is used to resolve recursively the configurable traits defined in sub-components. Possible values: []
- __call__(event: NectarCAMDataContainer, *args, **kwargs)[source]#
Process an event, routing it to the flat-field or pedestal charges component based on the event type.
- Parameters:
- eventNectarCAMDataContainer
The event to process.
- asked_pixels_id#
The pixels id where we want to perform the SPE fit
- property coefCharge_FF_Ped#
The coefficient relating flat-field and pedestal charges, defined as the ratio of the extraction window width to the number of samples.
- Returns:
- float
The coefficient.