#include <TruthParentDecoratorAlg.h>
Definition at line 20 of file TruthParentDecoratorAlg.h.
◆ CascadeCountDecorator()
| CascadeCountDecorator::CascadeCountDecorator |
( |
const std::string & | name, |
|
|
const std::vector< int > & | pids ) |
Definition at line 195 of file TruthParentDecoratorAlg.cxx.
195 :
196 m_pids(pids.begin(), pids.end()),
198
200{
201}
SG::AuxElement::Decorator< unsigned char > m_dec
std::vector< int > m_pids
static AuxTypeRegistry & instance()
Return the singleton registry instance.
◆ decorate()
Definition at line 202 of file TruthParentDecoratorAlg.cxx.
203{
204 unsigned char n_match = 0;
205 for (const auto& parent: parents) {
206 for (
const auto& pid:
m_pids) {
207 if (
parent.cascade_pids.contains(pid)) n_match++;
208 }
209 }
210 m_dec(target) = n_match;
211}
◆ decorateDefault()
◆ lock()
Definition at line 216 of file TruthParentDecoratorAlg.cxx.
217{
218
219
220
221
224}
#define ATLAS_THREAD_SAFE
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
◆ m_auxid
◆ m_dec
| SG::AuxElement::Decorator<unsigned char> CascadeCountDecorator::m_dec |
|
private |
◆ m_pids
| std::vector<int> CascadeCountDecorator::m_pids |
|
private |
The documentation for this class was generated from the following files: