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) {
81 initDefaultFlagRangeNames(
82 flagNames, BeginTrajectoryFlags, EndTrajectoryFlags,
85 initDefaultFlagRangeNames(
86 flagNames, BeginTrackFlags, EndTrackFlags,
89 initDefaultFlagRangeNames(
90 flagNames, BeginExperimentReservedFlags, EndExperimentReservedFlags,
93 initDefaultFlagRangeNames(
94 flagNames, BeginUserReservedFlags, EndUserReservedFlags,
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" ;
118 std::get<ExcludedFromFit.index()>(flagNames) =
"ExcludedFromFit";
119 std::get<Rejected.index() >(flagNames) =
"Rejected" ;
120 std::get<Reinterpreted.index() >(flagNames) =
"Reinterpreted" ;
132 initDefaultFlagsNames(flagNames);
135 setFlagNames(flagNames);
144 std::ostream& recob::operator<<
146 { flags.dump(out);
return out; }
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.
then echo unknown compiler flag
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 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 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(WindowPattern const &pattern)
std::array< std::string, MaxFlags > NameMap_t
Type storing flag names.
static constexpr Flag_t TrajReserved1
Reserved for a future trajectory flag.
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.