27 return StatusCode::SUCCESS;
33 std::vector<const xAOD::TruthParticleContainer*> targets{};
43 return StatusCode::FAILURE;
45 targets.emplace_back(readHandle.
cptr());
52 return StatusCode::FAILURE;
65 return StatusCode::SUCCESS;
74 for (
int i=0;i<int(c->size());++i){
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
ElementLink implementation for ROOT usage.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
Handle class for adding a decoration to an object.
Class providing the definition of the 4-vector interface.
bool is_same_particle(const T1 &p1, const T2 &p2)
Method to establish if two particles in the GenEvent actually represent the same particle.
const xAOD::TruthParticle * getTruthParticle(const xAOD::IParticle &p)
Return the truthParticle associated to the given IParticle (if any)
TruthParticle_v1 TruthParticle
Typedef to implementation.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.