ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticleParentAssociationTool.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id$
14
15
16#ifndef TRUTHD3PDMAKER_TRUTHPARTICLEPARENTASSOCIATIONTOOL_H
17#define TRUTHD3PDMAKER_TRUTHPARTICLEPARENTASSOCIATIONTOOL_H
18
19
22#include <vector>
23
24
25namespace D3PD {
26
27
36 : public MultiAssociationTool<xAOD::TruthParticle>
37{
38public:
40
41
48 TruthParticleParentAssociationTool (const std::string& type,
49 const std::string& name,
50 const IInterface* parent);
51
52
54 virtual StatusCode initialize();
55
56
61 virtual StatusCode reset (const xAOD::TruthParticle& p);
62
63
69 virtual const xAOD::TruthParticle* next();
70
71
72private:
74 std::vector<const xAOD::TruthParticle*> m_parents;
75
77 unsigned int m_i;
78};
79
80
81} // namespace D3PD
82
83
84#endif // not TRUTHD3PDMAKER_TRUTHPARTICLEPARENTASSOCIATIONTOOL_H
85
Type-safe wrapper for multiple-target associator tools.
Type-safe wrapper for multiple-target associator tools.
virtual StatusCode reset(const xAOD::TruthParticle &p)
Start the iteration for a new association.
virtual const xAOD::TruthParticle * next()
Return a pointer to the next element in the association.
std::vector< const xAOD::TruthParticle * > m_parents
Vector of parent pointers.
MultiAssociationTool< xAOD::TruthParticle > Base
virtual StatusCode initialize()
Standard Gaudi initialize method.
TruthParticleParentAssociationTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard Gaudi tool constructor.
Block filler tool for noisy FEB information.
TruthParticle_v1 TruthParticle
Typedef to implementation.