 |
Belle II Software
release-05-02-19
|
12 #include <tracking/trackFindingCDC/numerics/Weight.h>
19 namespace TrackFindingCDC {
57 ECellFlag::c_PriorityPath +
61 ECellFlag::c_Background +
62 ECellFlag::c_Reverse +
64 ECellFlag::c_BadADCOrTOT);
69 ECellFlag::c_PriorityPath +
132 setFlags<ECellFlag::c_Assigned>(setTo);
138 setFlags<ECellFlag::c_Assigned>(
false);
150 setFlags<ECellFlag::c_Start>(setTo);
156 setFlags<ECellFlag::c_Start>(
false);
168 setFlags<ECellFlag::c_PriorityPath>(setTo);
174 setFlags<ECellFlag::c_PriorityPath>(
false);
186 setFlags<ECellFlag::c_Cycle>(setTo);
192 setFlags<ECellFlag::c_Cycle>(
false);
204 setFlags<c_TemporaryFlags>(
false);
210 setFlags<ECellFlag::c_Masked>(setTo);
216 setFlags<ECellFlag::c_Masked>(
false);
228 setFlags<ECellFlag::c_Taken>(setTo);
234 setFlags<ECellFlag::c_Taken>(
false);
249 setFlags<ECellFlag::c_Background>(setTo);
255 setFlags<ECellFlag::c_Background>(
false);
269 setFlags<ECellFlag::c_BadADCOrTOT>(setTo);
275 setFlags<ECellFlag::c_BadADCOrTOT>(
false);
287 setFlags<ECellFlag::c_Priority>(setTo);
293 setFlags<ECellFlag::c_Priority>(
false);
305 setFlags<ECellFlag::c_Reverse>(setTo);
311 setFlags<ECellFlag::c_Reverse>(
false);
323 setFlags<ECellFlag::c_Alias>(setTo);
329 setFlags<ECellFlag::c_Alias>(
false);
339 template<ECellFlags cellFlag>
367 {
return m_flags bitand flags; }
bool hasReverseFlag() const
Gets the current state of the do not use flag marker flag.
void unsetCycleFlag()
Resets the cycle marker flag to false.
void setCellState(Weight state)
Setter for the cell state.
void setReverseFlag(bool setTo=true)
Sets the reverse flag to the given value. Default value true.
void setPriorityFlag(bool setTo=true)
Sets the priority flag to the given value. Default value true.
void unsetBadADCOrTOTFlag()
Resets the bad ADC or TOT flag to false.
bool hasAssignedFlag() const
Gets the current state of the already assigned marker flag.
void setCycleFlag(bool setTo=true)
Sets the cycle marker flag to the given value. Default value true.
bool hasBadADCOrTOTFlag() const
Gets the current state of the bad ADC or TOT flag.
bool hasMaskedFlag() const
Gets the current state of the masked marker flag.
AutomatonCell()
Default constructor for ROOT compatibility. Cell weight defaults to 0.
AutomatonCell(const Weight &cellWeight)
Constructor with a certain cell weight.
void setBadADCOrTOTFlag(bool setTo=true)
Sets the bad ADC or TOT flag to the given value.
void unsetPriorityPathFlag()
Resets the priority path marker flag to false.
void unsetBackgroundFlag()
Resets the background flag to false.
void setTakenFlag(bool setTo=true)
Sets the taken flag to the given value. Default value true.
void unsetMaskedFlag()
Resets the masked flag to false.
bool hasAnyFlags(ECellFlags flags) const
Checks if a cell has any of a sum of given flags.
bool hasPriorityPathFlag() const
Gets the current state of the priority path marker flag.
static const ECellFlags c_AllFlags
Constant summing all possible cell flags.
Weight getCellWeight() const
Getter for the cell weight.
void setBackgroundFlag(bool setTo=true)
Sets the background flag to the given value. Default value true.
void setStartFlag(bool setTo=true)
Sets the start marker flag to the given value. Default value true.
void unsetTemporaryFlags()
Resets the assigned, start and cycle marker flag.
static const ECellFlags c_TemporaryFlags
Flage that are reset at the start of each run of the cellular automaton.
ECellFlags m_flags
Storage for the cell status flags.
bool hasAliasFlag() const
Gets the current state of the do not use flag marker flag.
void setAssignedFlag(bool setTo=true)
Sets the already assigned marker flag to the given value. Default value true.
void setMaskedFlag(bool setTo=true)
Sets the masked flag to the given value. Default value true.
void setFlags(bool setTo)
Setting accessing the flag by tag.
Weight m_weight
Storage for the cell weight.
bool hasBackgroundFlag() const
Gets the current state of the do not use flag marker flag.
Abstract base class for different kinds of events.
void unsetReverseFlag()
Resets the reverse flag to false.
void setPriorityPathFlag(bool setTo=true)
Sets the priority path marker flag to the given value. Default value true.
ECellFlag
Type for the status flags of cells in the cellular automata.
void unsetPriorityFlag()
Resets the priority flag to false.
const ECellFlags & getFlags() const
Getter for the ored combination of the cell flags to mark some status of the cell.
bool hasPriorityFlag() const
Gets the current state of the do not use flag marker flag.
void clearFlags(ECellFlags flags=c_AllFlags)
Clear all flags.
bool hasTakenFlag() const
Gets the current state of the taken marker flag.
void unsetAliasFlag()
Resets the alias flag to false.
bool hasCycleFlag() const
Gets the current state of the cycle marker flag.
void setAliasFlag(bool setTo=true)
Sets the alias flag to the given value. Default value true.
ECellFlag ECellFlags
Type for an ored combination of the status flags of cells in the cellular automata.
Weight m_state
Storage for the cell state set by the cellular automata.
void setCellWeight(Weight weight)
Setter for the cell weight.
bool hasStartFlag() const
Gets the current state of the start marker flag.
void unsetAssignedFlag()
Resets the already assigned marker flag to false.
void unsetStartFlag()
Resets the start marker flag to false.
void unsetTakenFlag()
Resets the taken flag to false.
Weight getCellState() const
Getter for the cell state.