![]() |
ATLAS Offline Software
|
Encapsulates the code needed to access and set overlap-related decorations. More...
#include <OverlapDecorationHelper.h>
Public Member Functions | |
| OverlapDecorationHelper (const std::string &inputLabel, const std::string &outputLabel, bool outputPassValue=false) | |
| Constructor. | |
| bool | isInputObject (columnar::ObjectId< CI > obj) const |
| Check if object is flagged as input for OR. | |
| bool | isRejectedObject (columnar::ObjectId< CI > obj) const |
| Check if an object has been rejected by decoration. | |
| bool | isSurvivingObject (columnar::ObjectId< CI > obj) const |
| Check if object is surviving OR thus far. | |
| char | getObjectPriority (columnar::ObjectId< CI > obj) const |
| Get the user priority score, which is currently the input decoration. | |
| void | setOverlapDecoration (columnar::ObjectId< CI > obj, bool result) const |
| Set output decoration on object, pass or fail. | |
| void | setObjectPass (columnar::ObjectId< CI > obj) const |
| Shorthand way to set an object as passing overlap removal. | |
| void | setObjectFail (columnar::ObjectId< CI > obj) const |
| Shorthand way to set an object as failing overlap removal. | |
| bool | isDecorated (columnar::ObjectRange< CI > container) const |
| Check if output decoration has been applied to a container. | |
| void | initializeDecorations (columnar::ObjectRange< CI > container) const |
| Initialize decorations for a container to "pass". | |
| void | resetDecorations (columnar::ObjectRange< CI > container) const |
| Helper method for setting all objects as passing. | |
Private Attributes | |
| bool | m_useInputLabel |
| Toggle usage of input label. | |
| columnar::ColumnAccessor< CI, char > | m_inputAccessor |
| Input label accessor. | |
| columnar::ColumnDecorator< CI, char > | m_outputDecorator |
| Output decorator. | |
| bool | m_outputPassValue |
| Output decoration logic. | |
Encapsulates the code needed to access and set overlap-related decorations.
This utility class is used by the OverlapTools, but in principle could probably be used by a user as well.
Definition at line 32 of file OverlapDecorationHelper.h.
| ORUtils::OverlapDecorationHelper< CI >::OverlapDecorationHelper | ( | const std::string & | inputLabel, |
| const std::string & | outputLabel, | ||
| bool | outputPassValue = false ) |
Constructor.
| inputLabel | Input decoration name |
| outputLabel | Output decoration name |
| outputPassValue | Specifies the boolean value to assign to passing, or non-overlapping objects. Default value is false for historical reasons. |
Definition at line 100 of file OverlapDecorationHelper.h.
| char ORUtils::OverlapDecorationHelper< CI >::getObjectPriority | ( | columnar::ObjectId< CI > | obj | ) | const |
Get the user priority score, which is currently the input decoration.
Definition at line 148 of file OverlapDecorationHelper.h.
| void ORUtils::OverlapDecorationHelper< CI >::initializeDecorations | ( | columnar::ObjectRange< CI > | container | ) | const |
Initialize decorations for a container to "pass".
Note that the value written depends on the output pass-value.
Definition at line 192 of file OverlapDecorationHelper.h.
| bool ORUtils::OverlapDecorationHelper< CI >::isDecorated | ( | columnar::ObjectRange< CI > | container | ) | const |
Check if output decoration has been applied to a container.
Returns false if the container is empty. Output logic independent.
Definition at line 181 of file OverlapDecorationHelper.h.
| bool ORUtils::OverlapDecorationHelper< CI >::isInputObject | ( | columnar::ObjectId< CI > | obj | ) | const |
Check if object is flagged as input for OR.
Definition at line 116 of file OverlapDecorationHelper.h.
| bool ORUtils::OverlapDecorationHelper< CI >::isRejectedObject | ( | columnar::ObjectId< CI > | obj | ) | const |
Check if an object has been rejected by decoration.
Definition at line 128 of file OverlapDecorationHelper.h.
| bool ORUtils::OverlapDecorationHelper< CI >::isSurvivingObject | ( | columnar::ObjectId< CI > | obj | ) | const |
Check if object is surviving OR thus far.
Definition at line 138 of file OverlapDecorationHelper.h.
| void ORUtils::OverlapDecorationHelper< CI >::resetDecorations | ( | columnar::ObjectRange< CI > | container | ) | const |
Helper method for setting all objects as passing.
Definition at line 203 of file OverlapDecorationHelper.h.
| void ORUtils::OverlapDecorationHelper< CI >::setObjectFail | ( | columnar::ObjectId< CI > | obj | ) | const |
Shorthand way to set an object as failing overlap removal.
Definition at line 172 of file OverlapDecorationHelper.h.
| void ORUtils::OverlapDecorationHelper< CI >::setObjectPass | ( | columnar::ObjectId< CI > | obj | ) | const |
Shorthand way to set an object as passing overlap removal.
Definition at line 166 of file OverlapDecorationHelper.h.
| void ORUtils::OverlapDecorationHelper< CI >::setOverlapDecoration | ( | columnar::ObjectId< CI > | obj, |
| bool | result ) const |
Set output decoration on object, pass or fail.
Definition at line 159 of file OverlapDecorationHelper.h.
|
private |
Input label accessor.
Definition at line 87 of file OverlapDecorationHelper.h.
|
private |
Output decorator.
Definition at line 89 of file OverlapDecorationHelper.h.
|
private |
Output decoration logic.
Definition at line 92 of file OverlapDecorationHelper.h.
|
private |
Toggle usage of input label.
Definition at line 84 of file OverlapDecorationHelper.h.