#include <TruthParentDecoratorAlg.h>
Definition at line 16 of file TruthParentDecoratorAlg.h.
◆ CascadeCountDecorator()
| CascadeCountDecorator::CascadeCountDecorator |
( |
const std::string & | name, |
|
|
const std::vector< int > & | pids ) |
Definition at line 185 of file TruthParentDecoratorAlg.cxx.
185 :
186 m_pids(pids.begin(), pids.end()),
188
190{
191}
SG::AuxElement::Decorator< unsigned char > m_dec
std::vector< int > m_pids
static AuxTypeRegistry & instance()
Return the singleton registry instance.
◆ decorate()
Definition at line 192 of file TruthParentDecoratorAlg.cxx.
193{
194 unsigned char n_match = 0;
195 for (const auto& parent: parents) {
196 for (
const auto& pid:
m_pids) {
197 if (
parent.cascade_pids.contains(pid)) n_match++;
198 }
199 }
200 m_dec(target) = n_match;
201}
◆ decorateDefault()
| void CascadeCountDecorator::decorateDefault |
( |
const SG::AuxElement & | target | ) |
const |
◆ lock()
Definition at line 206 of file TruthParentDecoratorAlg.cxx.
207{
208
209
210
211
214}
#define ATLAS_THREAD_SAFE
DataVector< IParticle > IParticleContainer
Simple convenience declaration of IParticleContainer.
◆ m_auxid
◆ m_dec
◆ m_pids
| std::vector<int> CascadeCountDecorator::m_pids |
|
private |
The documentation for this class was generated from the following files: