Documentation ¶
Index ¶
- func RunTypeStrings() []string
- type RunType
- func (i RunType) IsARunType() bool
- func (i RunType) MarshalJSON() ([]byte, error)
- func (i RunType) MarshalText() ([]byte, error)
- func (i RunType) MarshalYAML() (interface{}, error)
- func (i RunType) String() string
- func (i *RunType) UnmarshalJSON(data []byte) error
- func (i *RunType) UnmarshalText(text []byte) error
- func (i *RunType) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTypeStrings ¶
func RunTypeStrings() []string
RunTypeStrings returns a slice of all String values of the enum
Types ¶
type RunType ¶
type RunType int
NOTE: make sure the enum values include and match those in RunType in dcs.pb.go and apricot.proto NOTE: this run type list is replicated in AliceO2 repo in https://github.com/AliceO2Group/AliceO2/blob/dev/DataFormats/Parameters/include/DataFormatsParameters/ECSDataAdapters.h Inform Ruben when the list is updated.
const ( NONE RunType = iota PHYSICS TECHNICAL PEDESTAL PULSER LASER CALIBRATION_ITHR_TUNING CALIBRATION_VCASN_TUNING CALIBRATION_THR_SCAN CALIBRATION_DIGITAL_SCAN CALIBRATION_ANALOG_SCAN CALIBRATION_FHR CALIBRATION_ALPIDE_SCAN CALIBRATION // no correspondence with DCS COSMICS // no correspondence with DCS SYNTHETIC // no correspondence with DCS NOISE CALIBRATION_PULSE_LENGTH CALIBRATION_VRESETD )
func RunTypeString ¶
RunTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (RunType) IsARunType ¶
IsARunType returns "true" if the value is listed in the enum definition. "false" otherwise
func (RunType) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for RunType
func (RunType) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for RunType
func (RunType) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for RunType
func (*RunType) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for RunType
func (*RunType) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for RunType
func (*RunType) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for RunType