5#ifndef GeneratorPhysVal_GeneratorSelector_H
6#define GeneratorPhysVal_GeneratorSelector_H
10#include <TLorentzVector.h>
24 std::vector< TLorentzVector > generic_stable_parton;
26 for(
const auto vcont: *cont){
28 TLorentzVector tlv (vcont->px(), vcont->py(), vcont->pz(), vcont->e());
29 generic_stable_parton.push_back(tlv);
32 return generic_stable_parton;
37 std::vector< TLorentzVector > generic_stable_parton;
39 for(
const auto vcont: *cont){
41 TLorentzVector tlv (vcont->px(), vcont->py(), vcont->pz(), vcont->e());
42 generic_stable_parton.push_back(tlv);
46 return generic_stable_parton;
ATLAS-specific HepMC functions.
GeneratorSelector()=default
const std::vector< TLorentzVector > GetSimulationLevel(const xAOD::TruthParticleContainer *cont)
~GeneratorSelector()=default
const std::vector< TLorentzVector > GetGeneratorLevel(const xAOD::TruthParticleContainer *cont)
bool isGenStable(const T &p)
Determine if the particle is stable at the generator (not det-sim) level,.
bool isSimStable(const T &p)
Identify if the particle is considered stable at the post-detector-sim stage.
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.