12#ifndef MCPARTICLETOOLS_TRUTHPARTICLECNVTOOL_H
13#define MCPARTICLETOOLS_TRUTHPARTICLECNVTOOL_H
34#include "HepPDT/ParticleDataTable.hh"
37#include "GaudiKernel/ToolHandle.h"
38#include "GaudiKernel/ServiceHandle.h"
68 const std::string& name,
69 const IInterface* parent );
76 virtual StatusCode
execute()
const override;
77 virtual StatusCode
execute (
const EventContext& ctx)
const override;
92 const unsigned int genEvtIndex,
125 const HepPDT::ParticleDataTable *
m_pdt;
This defines the McEventCollection, which is really just an ObjectVector of McEvent objectsFile: Gene...
PileuType_t
define some Pile-up classification Important : this classification is copied in McParticleAlgs/python...
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
int m_selectSignalTypeProp
Type of truth particle we want to create (property to be set by jobO)
virtual ~TruthParticleCnvTool()
Destructor:
TruthParticleCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
SG::WriteHandleKey< TruthParticleContainer > m_mcPartsOutputWriteHandleKey
Output TruthParticle WriteHandleKey (built from the McEventCollection)
ToolHandle< ITruthIsolationTool > IsolTool_t
virtual StatusCode execute() const override
ParticleDataType::DataType m_dataType
Type of data we are dealing with (Full/Fast/Truth/...)
IsolTool_t m_isolationTool
Pointer to the ITruthIsolationTool to be able to retrieve the previously computed transverse energy i...
void setDataType(const int type)
Inline methods:
virtual StatusCode initialize() override
Athena Algorithm's Hooks.
void setVxCandidateName(const std::string &name)
const HepPDT::ParticleDataTable * m_pdt
Particle Property service.
PileUpClassification::PileuType_t m_selectSignalType
Type of truth particle we want to create.
StatusCode convert(const McEventCollection *mcEvts, const unsigned int genEvtIndex, TruthParticleContainer *mcParts, const ITruthParticleVisitor *visitor) const override
Converts a McEventCollection into an TruthParticleContainer (ie: converts it into an AOD compliant co...
std::string m_vxCandidatesName
BooleanProperty m_doEtIsolation
Switch to compute or not the Et-isolations for TruthParticle (and their underlying HepMC::GenParticle...
SG::ReadHandleKey< McEventCollection > m_mcEventsReadHandleKey
ReadHandleKey for the McEventCollection the TruthParticles will be made from.
(HepMC) Monte Carlo particle.