#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 186 of file TruthParentDecoratorAlg.cxx.
186 :
187 m_pids(pids.begin(), pids.end()),
189
191{
192}
SG::AuxElement::Decorator< unsigned char > m_dec
std::vector< int > m_pids
static AuxTypeRegistry & instance()
Return the singleton registry instance.
◆ decorate()
Definition at line 193 of file TruthParentDecoratorAlg.cxx.
194{
195 unsigned char n_match = 0;
196 for (const auto& parent: parents) {
197 for (
const auto& pid:
m_pids) {
198 if (
parent.cascade_pids.contains(pid)) n_match++;
199 }
200 }
201 m_dec(target) = n_match;
202}
◆ decorateDefault()
| void CascadeCountDecorator::decorateDefault |
( |
const SG::AuxElement & | target | ) |
const |
◆ lock()
Definition at line 207 of file TruthParentDecoratorAlg.cxx.
208{
209
210
211
212
215}
#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: