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::BeamGateInfoFromTracks::Config Struct Reference

Public Types

enum  GateType_t { GateType_t::kUnknown = sim::kUnknown, GateType_t::kBNB = sim::kBNB, GateType_t::kNuMI = sim::kNuMI }
 
using Name = fhicl::Name
 
using Comment = fhicl::Comment
 

Public Member Functions

sim::BeamType_t getGateType () const
 

Public Attributes

fhicl::Atom< art::InputTag > T0selProducer
 
fhicl::Atom< art::InputTag > T0Producer
 
fhicl::Atom< nanosecondsGateStartOffset
 
fhicl::Atom< nanosecondsGateEndOffset
 
fhicl::Atom< std::string > GateType
 
fhicl::Atom< std::string > LogCategory
 

Static Public Attributes

static
util::MultipleChoiceSelection
< GateType_t > const 
GateTypeSelector
 Selector for Type parameter. More...
 

Detailed Description

Definition at line 145 of file BeamGateInfoFromTracks_module.cc.

Member Typedef Documentation

Definition at line 148 of file BeamGateInfoFromTracks_module.cc.

Definition at line 147 of file BeamGateInfoFromTracks_module.cc.

Member Enumeration Documentation

Enumerator
kUnknown 
kBNB 
kNuMI 

Definition at line 150 of file BeamGateInfoFromTracks_module.cc.

150  { // we need to translate enum into a strong type
152  , kBNB = sim::kBNB
153  , kNuMI = sim::kNuMI
154  };
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::BeamGateInfoFromTracks::Config::getGateType ( ) const
inline

Definition at line 198 of file BeamGateInfoFromTracks_module.cc.

199  {
200  try {
201  return static_cast<sim::BeamType_t>
203  }
205  {
206  throw art::Exception(art::errors::Configuration)
207  << "Invalid value for '" << GateType.name()
208  << "' parameter: '" << e.label() << "'; valid options: "
209  << GateTypeSelector.optionListString() << ".\n";
210  }
211  } // getGateType()
Option_t const & parse(std::string const &label) const
Returns the option matching the specified label.
static util::MultipleChoiceSelection< GateType_t > const GateTypeSelector
Selector for Type parameter.
std::string optionListString(std::string const &sep=", ") const
Returns a string with the (main) name of all options.
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

fhicl::Atom<nanoseconds> icarus::trigger::BeamGateInfoFromTracks::Config::GateEndOffset
Initial value:
{
Name("GateEndOffset"),
}

Definition at line 179 of file BeamGateInfoFromTracks_module.cc.

fhicl::Atom<nanoseconds> icarus::trigger::BeamGateInfoFromTracks::Config::GateStartOffset
Initial value:
{
Name("GateStartOffset"),
}

Definition at line 174 of file BeamGateInfoFromTracks_module.cc.

fhicl::Atom<std::string> icarus::trigger::BeamGateInfoFromTracks::Config::GateType
Initial value:

Definition at line 184 of file BeamGateInfoFromTracks_module.cc.

util::MultipleChoiceSelection< BeamGateInfoFromTracks::Config::GateType_t > const icarus::trigger::BeamGateInfoFromTracks::Config::GateTypeSelector
static
Initial value:
{
{ GateType_t::kUnknown, "unknown" }
, { GateType_t::kBNB, "BNB" }
, { GateType_t::kNuMI, "NuMI" }
}

Selector for Type parameter.

Definition at line 157 of file BeamGateInfoFromTracks_module.cc.

fhicl::Atom<std::string> icarus::trigger::BeamGateInfoFromTracks::Config::LogCategory
Initial value:
{
Name("LogCategory"),
Comment("name of the category used for the output"),
"BeamGateInfoFromTracks"
}

Definition at line 191 of file BeamGateInfoFromTracks_module.cc.

fhicl::Atom<art::InputTag> icarus::trigger::BeamGateInfoFromTracks::Config::T0Producer
Initial value:
{
Name("T0Producer"),
}

Definition at line 167 of file BeamGateInfoFromTracks_module.cc.

fhicl::Atom<art::InputTag> icarus::trigger::BeamGateInfoFromTracks::Config::T0selProducer
Initial value:
{
Name("T0selProducer"),
("tag of the selected particles (as a collection of art::Ptr)")
}

Definition at line 160 of file BeamGateInfoFromTracks_module.cc.


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