ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TruthJetInput Class Reference

#include <coresoftware/blob/master/simulation/g4simulation/g4jets/TruthJetInput.h>

+ Inheritance diagram for TruthJetInput:
+ Collaboration diagram for TruthJetInput:

Public Member Functions

 TruthJetInput (Jet::SRC input)
 
 ~TruthJetInput () override
 
void add_embedding_flag (const int embed_stream_id)
 
void identify (std::ostream &os=std::cout) override
 
Jet::SRC get_src () override
 
std::vector< Jet * > get_input (PHCompositeNode *topNode) override
 
void set_eta_range (float eta_min, float eta_max)
 
- Public Member Functions inherited from JetInput
virtual ~JetInput ()
 
virtual int Verbosity () const
 
virtual void Verbosity (int i)
 

Private Member Functions

bool use_embed_stream ()
 

Private Attributes

Jet::SRC _input
 
float _eta_min
 
float _eta_max
 
std::vector< int_embed_id
 

Additional Inherited Members

- Protected Member Functions inherited from JetInput
 JetInput ()
 

Detailed Description

Definition at line 13 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 13 of file TruthJetInput.h

Constructor & Destructor Documentation

TruthJetInput::TruthJetInput ( Jet::SRC  input)

Definition at line 24 of file TruthJetInput.cc.

View newest version in sPHENIX GitHub at line 24 of file TruthJetInput.cc

TruthJetInput::~TruthJetInput ( )
inlineoverride

Definition at line 17 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 17 of file TruthJetInput.h

Member Function Documentation

void TruthJetInput::add_embedding_flag ( const int  embed_stream_id)
inline

by default, TruthJetInput process all truth primary particle. However, it can be configured to read only one or more embedded stream via add_embedding_flag() It can be useful for reconstruct truth jet for embedded pythia jets only, etc. Call add_embedding_flag() multiple times to add multiple embed stream

Definition at line 23 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 23 of file TruthJetInput.h

References _embed_id.

std::vector< Jet * > TruthJetInput::get_input ( PHCompositeNode topNode)
overridevirtual

Reimplemented from JetInput.

Definition at line 45 of file TruthJetInput.cc.

View newest version in sPHENIX GitHub at line 45 of file TruthJetInput.cc

References _embed_id, _eta_max, _eta_min, kdfinder::abs(), Acts::VectorHelpers::eta(), PHG4Particle::get_e(), PHG4Particle::get_pid(), PHG4Particle::get_px(), PHG4Particle::get_py(), PHG4Particle::get_pz(), PHG4Particle::get_track_id(), PHG4TruthInfoContainer::GetPrimaryParticleRange(), Jet::insert_comp(), PHG4TruthInfoContainer::isEmbeded(), part, Jet::PARTICLE, PHWHERE, Jet::set_e(), Jet::set_px(), Jet::set_py(), Jet::set_pz(), use_embed_stream(), and JetInput::Verbosity().

+ Here is the call graph for this function:

Jet::SRC TruthJetInput::get_src ( )
inlineoverridevirtual

Reimplemented from JetInput.

Definition at line 30 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 30 of file TruthJetInput.h

References _input.

void TruthJetInput::identify ( std::ostream &  os = std::cout)
overridevirtual

Reimplemented from JetInput.

Definition at line 31 of file TruthJetInput.cc.

View newest version in sPHENIX GitHub at line 31 of file TruthJetInput.cc

References _embed_id, it, and use_embed_stream().

+ Here is the call graph for this function:

void TruthJetInput::set_eta_range ( float  eta_min,
float  eta_max 
)
inline

Definition at line 34 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 34 of file TruthJetInput.h

References _eta_max, and _eta_min.

bool TruthJetInput::use_embed_stream ( )
inlineprivate

Definition at line 49 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 49 of file TruthJetInput.h

References _embed_id.

Referenced by get_input(), and identify().

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<int> TruthJetInput::_embed_id
private

if empty: process all primary particles if non-empty: only process primary particles in the selected embed stream.

Definition at line 47 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 47 of file TruthJetInput.h

Referenced by add_embedding_flag(), get_input(), identify(), and use_embed_stream().

float TruthJetInput::_eta_max
private

Definition at line 43 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 43 of file TruthJetInput.h

Referenced by get_input(), and set_eta_range().

float TruthJetInput::_eta_min
private

Definition at line 42 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 42 of file TruthJetInput.h

Referenced by get_input(), and set_eta_range().

Jet::SRC TruthJetInput::_input
private

Definition at line 41 of file TruthJetInput.h.

View newest version in sPHENIX GitHub at line 41 of file TruthJetInput.h

Referenced by get_src().


The documentation for this class was generated from the following files: