ATLAS Offline Software
Public Types | Public Member Functions | List of all members
GeneratorSelector Class Reference

#include <GeneratorSelector.h>

Collaboration diagram for GeneratorSelector:

Public Types

enum  CUT_STATUS { CUT_STATUS::YES, CUT_STATUS::NO }
 

Public Member Functions

 GeneratorSelector ()=default
 
 ~GeneratorSelector ()=default
 
const std::vector< TLorentzVector > GetGeneratorLevel (const xAOD::TruthParticleContainer *cont)
 
const std::vector< TLorentzVector > GetSimulationLevel (const xAOD::TruthParticleContainer *cont)
 

Detailed Description

Definition at line 14 of file GeneratorSelector.h.

Member Enumeration Documentation

◆ CUT_STATUS

Enumerator
YES 
NO 

Definition at line 21 of file GeneratorSelector.h.

21 {YES,NO};

Constructor & Destructor Documentation

◆ GeneratorSelector()

GeneratorSelector::GeneratorSelector ( )
default

◆ ~GeneratorSelector()

GeneratorSelector::~GeneratorSelector ( )
default

Member Function Documentation

◆ GetGeneratorLevel()

const std::vector< TLorentzVector > GeneratorSelector::GetGeneratorLevel ( const xAOD::TruthParticleContainer cont)
inline

Definition at line 22 of file GeneratorSelector.h.

23  {
24  std::vector< TLorentzVector > generic_stable_parton;
25 
26  for(const auto& vcont: *cont){
27  if (!(MC::isGenStable(vcont))) continue;
28  TLorentzVector tlv (vcont->px(), vcont->py(), vcont->pz(), vcont->e());
29  generic_stable_parton.push_back(tlv);
30  }
31 
32  return generic_stable_parton;
33  }

◆ GetSimulationLevel()

const std::vector< TLorentzVector > GeneratorSelector::GetSimulationLevel ( const xAOD::TruthParticleContainer cont)
inline

Definition at line 35 of file GeneratorSelector.h.

36  {
37  std::vector< TLorentzVector > generic_stable_parton;
38 
39  for(const auto& vcont: *cont){
40  if (!(MC::isSimStable(vcont))) continue;
41  TLorentzVector tlv (vcont->px(), vcont->py(), vcont->pz(), vcont->e());
42  generic_stable_parton.push_back(tlv);
43 
44  }
45 
46  return generic_stable_parton;
47  }

The documentation for this class was generated from the following file:
MC::isGenStable
bool isGenStable(const T &p)
Determine if the particle is stable at the generator (not det-sim) level,.
Definition: HepMCHelpers.h:54
TRT_PAI_gasdata::NO
const int NO
Number of levels for Oxygen.
Definition: TRT_PAI_gasdata.h:297
MC::isSimStable
bool isSimStable(const T &p)
Identify if the particle is considered stable at the post-detector-sim stage.
Definition: HepMCHelpers.h:57