ATLAS Offline Software
Loading...
Searching...
No Matches
TruthParticle_v1.cxx File Reference
#include <cmath>
#include <iostream>
#include <stdexcept>
#include "TruthUtils/HepMCHelpers.h"
#include "TruthUtils/MagicNumbers.h"
#include "xAODCore/AuxStoreAccessorMacros.h"
#include "AthContainers/AuxElement.h"
#include "xAODTruth/versions/TruthParticle_v1.h"
#include "xAODTruth/TruthVertexContainer.h"
#include "TruthAccessors_v1.h"

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.

Macros

#define MC_PID_HELPER(TYPE, FNAME)
 Helper macro to implement the functions that rely in functions from MC:: namespace.

Functions

static AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(TruthParticle_v1, int, pdgId, setPdgId) int TruthParticle_v1 const SG::AuxElement::Accessor< ElementLink< TruthVertexContainer > > xAOD::acc_decayVtxLink ("decayVtxLink")
 Accessor for the decay vertex.
static AUXSTORE_OBJECT_SETTER_AND_GETTER(TruthParticle_v1, ElementLink< TruthVertexContainer >, prodVtxLink, setProdVtxLink) bool TruthParticle_v1 const SG::AuxElement::ConstAccessor< std::vector< ElementLink< xAOD::TruthParticleContainer > > > xAOD::acc_childLinks ("childLinks")

Macro Definition Documentation

◆ MC_PID_HELPER

#define MC_PID_HELPER ( TYPE,
FNAME )
Value:
TYPE TruthParticle_v1::FNAME() const { \
return MC::FNAME( pdgId() ); \
}
#define TYPE(CODE, TYP, IOTYP)

Helper macro to implement the functions that rely in functions from MC:: namespace.

Definition at line 251 of file TruthParticle_v1.cxx.

251#define MC_PID_HELPER( TYPE, FNAME ) \
252 TYPE TruthParticle_v1::FNAME() const { \
253 return MC::FNAME( pdgId() ); \
254 }