|  | 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.  More... | |
| bool | isInputObject (const xAOD::IParticle &obj) const | 
| Check if object is flagged as input for OR.  More... | |
| bool | isRejectedObject (const xAOD::IParticle &obj) const | 
| Check if an object has been rejected by decoration.  More... | |
| bool | isSurvivingObject (const xAOD::IParticle &obj) const | 
| Check if object is surviving OR thus far.  More... | |
| char | getObjectPriority (const xAOD::IParticle &obj) const | 
| Get the user priority score, which is currently the input decoration.  More... | |
| void | setOverlapDecoration (const xAOD::IParticle &obj, bool result) const | 
| Set output decoration on object, pass or fail.  More... | |
| void | setObjectPass (const xAOD::IParticle &obj) const | 
| Shorthand way to set an object as passing overlap removal.  More... | |
| void | setObjectFail (const xAOD::IParticle &obj) const | 
| Shorthand way to set an object as failing overlap removal.  More... | |
| bool | isDecorated (const xAOD::IParticleContainer &container) const | 
| Check if output decoration has been applied to a container.  More... | |
| void | initializeDecorations (const xAOD::IParticleContainer &container) const | 
| Initialize decorations for a container to "pass".  More... | |
| void | resetDecorations (const xAOD::IParticleContainer &container) const | 
| Helper method for setting all objects as passing.  More... | |
| Private Attributes | |
| bool | m_useInputLabel | 
| Toggle usage of input label.  More... | |
| ort::inputAccessor_t | m_inputAccessor | 
| Input label accessor.  More... | |
| ort::outputDecorator_t | m_outputDecorator | 
| Output decorator.  More... | |
| bool | m_outputPassValue | 
| Output decoration logic.  More... | |
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 26 of file OverlapDecorationHelper.h.
| ORUtils::OverlapDecorationHelper::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 14 of file OverlapDecorationHelper.cxx.
| char ORUtils::OverlapDecorationHelper::getObjectPriority | ( | const xAOD::IParticle & | obj | ) | const | 
Get the user priority score, which is currently the input decoration.
Definition at line 59 of file OverlapDecorationHelper.cxx.
| void ORUtils::OverlapDecorationHelper::initializeDecorations | ( | const xAOD::IParticleContainer & | container | ) | const | 
Initialize decorations for a container to "pass".
Note that the value written depends on the output pass-value.
Definition at line 98 of file OverlapDecorationHelper.cxx.
| bool ORUtils::OverlapDecorationHelper::isDecorated | ( | const xAOD::IParticleContainer & | 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 88 of file OverlapDecorationHelper.cxx.
| bool ORUtils::OverlapDecorationHelper::isInputObject | ( | const xAOD::IParticle & | obj | ) | const | 
Check if object is flagged as input for OR.
Definition at line 30 of file OverlapDecorationHelper.cxx.
| bool ORUtils::OverlapDecorationHelper::isRejectedObject | ( | const xAOD::IParticle & | obj | ) | const | 
Check if an object has been rejected by decoration.
Definition at line 41 of file OverlapDecorationHelper.cxx.
| bool ORUtils::OverlapDecorationHelper::isSurvivingObject | ( | const xAOD::IParticle & | obj | ) | const | 
Check if object is surviving OR thus far.
Definition at line 50 of file OverlapDecorationHelper.cxx.
| void ORUtils::OverlapDecorationHelper::resetDecorations | ( | const xAOD::IParticleContainer & | container | ) | const | 
Helper method for setting all objects as passing.
Definition at line 108 of file OverlapDecorationHelper.cxx.
| void ORUtils::OverlapDecorationHelper::setObjectFail | ( | const xAOD::IParticle & | obj | ) | const | 
Shorthand way to set an object as failing overlap removal.
Definition at line 80 of file OverlapDecorationHelper.cxx.
| void ORUtils::OverlapDecorationHelper::setObjectPass | ( | const xAOD::IParticle & | obj | ) | const | 
Shorthand way to set an object as passing overlap removal.
Definition at line 75 of file OverlapDecorationHelper.cxx.
| void ORUtils::OverlapDecorationHelper::setOverlapDecoration | ( | const xAOD::IParticle & | obj, | 
| bool | result | ||
| ) | const | 
Set output decoration on object, pass or fail.
Definition at line 69 of file OverlapDecorationHelper.cxx.
| 
 | private | 
Input label accessor.
Definition at line 81 of file OverlapDecorationHelper.h.
| 
 | private | 
Output decorator.
Definition at line 83 of file OverlapDecorationHelper.h.
| 
 | private | 
Output decoration logic.
Definition at line 86 of file OverlapDecorationHelper.h.
| 
 | private | 
Toggle usage of input label.
Definition at line 78 of file OverlapDecorationHelper.h.
 1.8.18
 1.8.18