55 {
return "<" + decorateFlagName(
"InvalidFlag", flag) +
">"; }
63 if (EndFlags <= BeginFlags)
return;
64 unsigned int const NFlags = EndFlags - BeginFlags;
67 for (
unsigned int dFlag = 0; dFlag < NFlags; ++dFlag) {
109 std::get<
HitIgnored.index() >(flagNames) =
"HitIgnored" ;
110 std::get<
NoPoint.index() >(flagNames) =
"NoPoint" ;
111 std::get<
Suspicious.index() >(flagNames) =
"Suspicious" ;
112 std::get<
Merged.index() >(flagNames) =
"Merged" ;
113 std::get<
DeltaRay.index() >(flagNames) =
"DeltaRay" ;
114 std::get<
DetectorIssue.index()>(flagNames) =
"DetectorIssue";
115 std::get<
Shared.index() >(flagNames) =
"Shared" ;
119 std::get<
Rejected.index() >(flagNames) =
"Rejected" ;
120 std::get<
Reinterpreted.index() >(flagNames) =
"Reinterpreted" ;
144 std::ostream& recob::operator<<
146 { flags.dump(out);
return out; }
static constexpr FlagIndex_t EndUserReservedFlags
After-the-last flag reserved to users.
static constexpr Flag_t Merged
The hit might have contribution from particles other than this.
static constexpr Flag_t Suspicious
The point reconstruction is somehow questionable.
static constexpr Flag_t NoPoint
The trajectory point is not defined.
static constexpr FlagIndex_t EndTrajectoryFlags
After-the-last trajectory flag index.
static constexpr FlagIndex_t BeginTrackFlags
First track flag index.
static NameMap_t initNames()
Returns a map of flag names.
Flags_t::Flag_t Flag_t
Type of single flag.
static void setFlagNames(NameMap_t &flagNames)
Sets the names of the flags after default initialization.
static constexpr Flag_t Reinterpreted
The hit content has been elaborated before being used in the fit.
static constexpr FlagIndex_t BeginExperimentReservedFlags
First flag reserved to experiment.
static void initDefaultFlagRangeNames(NameMap_t &flagNames, FlagIndex_t BeginFlags, FlagIndex_t EndFlags, std::string baseName)
Initializes a range of flag names with default (decorated) names.
Flags_t::FlagIndex_t FlagIndex_t
Type of index of a single flag.
static std::string decorateFlagName(std::string baseName, Flag_t flag)
Combines a base name and an index into a flag name.
static std::string invalidFlagName(Flag_t flag)
Returns the name of an invalid flag with the specified index.
static void initDefaultFlagsNames(NameMap_t &flagNames)
Initialises all flag names with a default name.
static constexpr FlagIndex_t EndTrackFlags
After-the-last track flag index.
static constexpr FlagIndex_t EndExperimentReservedFlags
After-the-last flag reserved to experiment.
static constexpr Flag_t HitIgnored
Hit was not included for the computation of the trajectory.
Set of flags pertaining a point of the track.
static constexpr Flag_t Rejected
The hit is extraneous to this track.
static constexpr Flag_t ExcludedFromFit
std::string to_string(Flag_t< Storage > const flag)
Convert a flag into a stream (shows its index).
static constexpr FlagIndex_t BeginTrajectoryFlags
First trajectory flag index.
std::array< std::string, MaxFlags > NameMap_t
Type storing flag names.
static constexpr Flag_t TrajReserved1
Reserved for a future trajectory flag.
static constexpr FlagIndex_t BeginUserReservedFlags
First flag reserved to users.
static constexpr Flag_t DetectorIssue
The hit is associated to a problematic channel.
static constexpr Flag_t DeltaRay
The hit might have contribution from a δ ray.
static const NameMap_t names
Names of the flags.
static constexpr Flag_t Shared
The hit is known to be associated also to another trajectory.
Set of flags pertaining a point of the track.