9 #ifndef ICARUSALG_UTILITIES_WEAKCURRENTTYPE_H
10 #define ICARUSALG_UTILITIES_WEAKCURRENTTYPE_H
14 #include "cetlib_except/exception.h"
29 namespace icarus {
class WeakCurrentType; }
89 std::string
name()
const;
96 operator std::string()
const {
return name(); }
119 operator int()
const {
return static_cast<int>(
fType); }
141 static std::string
to_upper(std::string
const&
s);
167 #endif // ICARUSALG_UTILITIES_WEAKCURRENTTYPE_H
WeakCurrentType(std::string const &spec)
constexpr WeakCurrentType NeutralCurrentType
Constant value for a weak neutral current type.
constexpr WeakCurrentType()=default
Default constructor: matches any current type.
Represents a type of weak current.
constexpr bool operator==(WeakCurrentType const &other) const
Returns whether this current type is the same as the other.
CurrentType fType
Type of current stored.
static CurrentType parse(std::string const &spec)
Converts a string into a WeakCurrentType.
constexpr WeakCurrentType ChargedCurrentType
Constant value for a weak charged current type.
CurrentType
Type of weak current.
then echo File list $list not found else cat $list while read file do echo $file sed s
static std::string to_upper(std::string const &s)
Returns a upper-case copy of s.
std::string shortName() const
constexpr bool operator!=(WeakCurrentType const &other) const
Returns whether this current type is different than the other.
constexpr WeakCurrentType AnyWeakCurrentType
Constant value for any weak current type.
constexpr WeakCurrentType(CurrentType type)
Constructor: assigns the specified current type.