All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
icarus::trigger::FixBeamGateInfo::Config::ChangeGate Struct Reference

Settings to change a gate. More...

Classes

struct  ChangeConfig
 
struct  SelectGateConfig
 Configuration to select a gate to be changed. More...
 

Public Member Functions

template<typename P , typename I >
auto convert (std::optional< Config::ChangeGate::ChangeConfig< P, I >> const &config) -> std::optional< BeamChangeRecipe::ChangeRecipe_t< P, I >>
 

Static Public Member Functions

template<typename P , typename I >
static std::optional
< BeamChangeRecipe::ChangeRecipe_t
< P, I > > 
convert (std::optional< ChangeConfig< P, I >> const &config)
 Converts a configuration table into a ChangeRecipe_t. More...
 
static
BeamChangeRecipe::GateSelector_t 
convert (SelectGateConfig const &config)
 Converts a configuration table into a GateSelector_t. More...
 

Public Attributes

fhicl::Table< SelectGateConfigSelect
 
fhicl::OptionalTable
< ChangeConfig
< simulation_time > > 
Start
 
fhicl::OptionalTable
< ChangeConfig< microseconds > > 
Width
 

Detailed Description

Settings to change a gate.

Definition at line 164 of file FixBeamGateInfo_module.cc.

Member Function Documentation

template<typename P , typename I >
static std::optional<BeamChangeRecipe::ChangeRecipe_t<P, I> > icarus::trigger::FixBeamGateInfo::Config::ChangeGate::convert ( std::optional< ChangeConfig< P, I >> const &  config)
static

Converts a configuration table into a ChangeRecipe_t.

auto icarus::trigger::FixBeamGateInfo::Config::ChangeGate::convert ( SelectGateConfig const &  config)
static

Converts a configuration table into a GateSelector_t.

Definition at line 606 of file FixBeamGateInfo_module.cc.

608 {
609  return BeamChangeRecipe::GateSelector_t { config.getBeamTypes() };
610 } // icarus::trigger::FixBeamGateInfo::..::ChangeGate::convert(SelectGateConfig)
template<typename P , typename I >
auto icarus::trigger::FixBeamGateInfo::Config::ChangeGate::convert ( std::optional< Config::ChangeGate::ChangeConfig< P, I >> const &  config) -> std::optional<BeamChangeRecipe::ChangeRecipe_t<P, I>>

Definition at line 592 of file FixBeamGateInfo_module.cc.

594 {
595  return config
596  ? std::optional{BeamChangeRecipe::ChangeRecipe_t<P, I>{
597  config->SetTo(), config->Add()
598  }}
599  : std::nullopt
600  ;
601 } // icarus::trigger::FixBeamGateInfo::Config::ChangeGate::convert(ChangeConfig)

Member Data Documentation

fhicl::Table<SelectGateConfig> icarus::trigger::FixBeamGateInfo::Config::ChangeGate::Select
Initial value:
{
Name{ "Select" },
{ "apply these settings only to gates satisfying these criteria" }
}

Definition at line 196 of file FixBeamGateInfo_module.cc.

fhicl::OptionalTable<ChangeConfig<simulation_time> > icarus::trigger::FixBeamGateInfo::Config::ChangeGate::Start
Initial value:
{
Name{ "Start" },
Comment{ "changes to the start of the beam gate" }
}

Definition at line 202 of file FixBeamGateInfo_module.cc.

fhicl::OptionalTable<ChangeConfig<microseconds> > icarus::trigger::FixBeamGateInfo::Config::ChangeGate::Width
Initial value:
{
Name{ "Width" },
Comment{ "changes to the width of the beam gate" }
}

Definition at line 207 of file FixBeamGateInfo_module.cc.


The documentation for this struct was generated from the following file: