ATLAS Offline Software
Loading...
Searching...
No Matches
ITruthParticleCnvTool.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// ITruthParticleCnvTool.h
8// Header file for class ITruthParticleCnvTool
9// Author: S.Binet<binet@cern.ch>
11#ifndef MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
12#define MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
13
21
22// STL includes
23
24// FrameWork includes
25#include "GaudiKernel/IAlgTool.h"
26#include "GaudiKernel/IProperty.h"
27
28// McParticleKernel includes
30
31// Forward declaration
33class TruthParticle;
35class EventContext;
36
37
38class ITruthParticleCnvTool : virtual public extend_interfaces<IAlgTool, IProperty>
39{
40
42 // Public methods:
44 public:
45 // Declare interface ID
47
50 virtual ~ITruthParticleCnvTool();
51
52 // Athena algorithm's Hooks
53 virtual StatusCode execute() const = 0;
54 virtual StatusCode execute(const EventContext& ctx) const = 0;
55
63 virtual
64 StatusCode convert( const McEventCollection* mcEvts,
65 const unsigned int genEvtIndex,
67 const ITruthParticleVisitor* visitor = 0 ) const = 0;
68
72 StatusCode convert( const McEventCollection* mcCollection,
74
80 StatusCode
81 convertMcEventCollection( const McEventCollection* mcCollection,
85
86};
87
88
92
93inline StatusCode
96{
97 const unsigned int genEvtIndex = 0;
98 const ITruthParticleVisitor* dummyVisitor = 0;
99 return this->convert( mcCollection, genEvtIndex, container, dummyVisitor );
100}
101
102inline StatusCode
105{
106 const unsigned int genEvtIndex = 0;
107 const ITruthParticleVisitor* dummyVisitor = 0;
108 return this->convert( mcCollection, genEvtIndex, container, dummyVisitor );
109}
110
111#endif //> MCPARTICLEKERNEL_ITRUTHPARTICLECNVTOOL_H
interface for AlgTools which want to convert McEventCollection objects into a TruthParticleContainer ...
virtual StatusCode execute(const EventContext &ctx) const =0
virtual ~ITruthParticleCnvTool()
Destructor:
DeclareInterfaceID(ITruthParticleCnvTool, 1, 0)
StatusCode convertMcEventCollection(const McEventCollection *mcCollection, TruthParticleContainer *container) const
Convert a McEventCollection into an TruthParticleContainer.
virtual StatusCode convert(const McEventCollection *mcEvts, const unsigned int genEvtIndex, TruthParticleContainer *mcParts, const ITruthParticleVisitor *visitor=0) const =0
Convert a McEventCollection into an TruthParticleContainer.
virtual StatusCode execute() const =0
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...