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

Public Types

enum  BeamType_t { BeamType_t::kUnknown = sim::kUnknown, BeamType_t::kBNB = sim::kBNB, BeamType_t::kNuMI = sim::kNuMI }
 

Public Member Functions

sim::BeamType_t getBeamType () const
 

Public Attributes

fhicl::Atom< microsecondsDuration
 
fhicl::Atom< microsecondsStart
 
fhicl::Atom< std::string > Type
 

Static Public Attributes

static
util::MultipleChoiceSelection
< BeamType_t > const 
BeamTypeSelector
 Selector for Type parameter. More...
 

Detailed Description

Definition at line 87 of file WriteBeamGateInfo_module.cc.

Member Enumeration Documentation

Enumerator
kUnknown 
kBNB 
kNuMI 

Definition at line 89 of file WriteBeamGateInfo_module.cc.

89  { // we need to translate enum into a strong type
91  , kBNB = sim::kBNB
92  , kNuMI = sim::kNuMI
93  };
Unknown view.
Definition: geo_types.h:136
Unknown beam type.
Definition: BeamTypes.h:10
NuMI.
Definition: BeamTypes.h:12
BNB.
Definition: BeamTypes.h:11

Member Function Documentation

sim::BeamType_t icarus::trigger::WriteBeamGateInfo::Config::GateConfig::getBeamType ( ) const
inline

Definition at line 116 of file WriteBeamGateInfo_module.cc.

117  {
118  try {
119  return static_cast<sim::BeamType_t>
121  }
123  {
124  throw art::Exception(art::errors::Configuration)
125  << "Invalid value for '" << Type.name()
126  << "' parameter: '" << e.label() << "'; valid options: "
127  << BeamTypeSelector.optionListString() << ".\n";
128  }
129  } // getBeamType()
Option_t const & parse(std::string const &label) const
Returns the option matching the specified label.
std::string optionListString(std::string const &sep=", ") const
Returns a string with the (main) name of all options.
static util::MultipleChoiceSelection< BeamType_t > const BeamTypeSelector
Selector for Type parameter.
do i e
BeamType_t
Defines category of beams to be stored in sim::BeamGateInfo.
Definition: BeamTypes.h:9
Choices_t value() const
Returns a copy of the value of the option.

Member Data Documentation

util::MultipleChoiceSelection< WriteBeamGateInfo::Config::GateConfig::BeamType_t > const icarus::trigger::WriteBeamGateInfo::Config::GateConfig::BeamTypeSelector
static
Initial value:
{
{ BeamType_t::kUnknown, "unknown" }
, { BeamType_t::kBNB, "BNB" }
, { BeamType_t::kNuMI, "NuMI" }
}

Selector for Type parameter.

Definition at line 96 of file WriteBeamGateInfo_module.cc.

fhicl::Atom<microseconds> icarus::trigger::WriteBeamGateInfo::Config::GateConfig::Duration
Initial value:
{
Name("Duration"),
}

Definition at line 98 of file WriteBeamGateInfo_module.cc.

fhicl::Atom<microseconds> icarus::trigger::WriteBeamGateInfo::Config::GateConfig::Start
Initial value:
{
Name("Start"),
Comment("open the beam gate this long after the nominal beam gate time"),
microseconds{ 0.0 }
}

Definition at line 103 of file WriteBeamGateInfo_module.cc.

fhicl::Atom<std::string> icarus::trigger::WriteBeamGateInfo::Config::GateConfig::Type
Initial value:

Definition at line 109 of file WriteBeamGateInfo_module.cc.


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