Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ColorlessHadronization Class Reference

#include <JETSCAPE/blob/main/src/hadronization/ColorlessHadronization.h>

+ Inheritance diagram for ColorlessHadronization:
+ Collaboration diagram for ColorlessHadronization:

Public Member Functions

 ColorlessHadronization ()
 
virtual ~ColorlessHadronization ()
 
void Init ()
 
void DoHadronization (vector< vector< shared_ptr< Parton >>> &shower, vector< shared_ptr< Hadron >> &hOut, vector< shared_ptr< Parton >> &pOut)
 
void WriteTask (weak_ptr< JetScapeWriter > w)
 
- Public Member Functions inherited from Jetscape::HadronizationModule< ColorlessHadronization >
virtual shared_ptr< HadronizationClone () const override
 
- Public Member Functions inherited from Jetscape::Hadronization
 Hadronization ()
 
virtual ~Hadronization ()
 
virtual void Exec ()
 
virtual void Clear ()
 
void GetHadrons (vector< shared_ptr< Hadron >> &signal)
 
vector< shared_ptr< Hadron > > GetHadrons ()
 
vector< shared_ptr< Parton > > GetOutPartons ()
 
void AddInPartons (vector< vector< shared_ptr< Parton >>> ip)
 
void SetTransformPartonsConnected (bool m_TransformPartonsConnected)
 
const bool GetTransformPartonsConnected ()
 
void SetGetHydroHyperSurfaceConnected (bool m_GetHydroHyperSurfaceConnected)
 
const bool GetGetHydroHyperSurfaceConnected ()
 
void SetGetHydroCellSignalConnected (bool m_GetHydroCellSignalConnected)
 
const bool GetGetHydroCellSignalConnected ()
 
void AddInHadrons (vector< shared_ptr< Hadron >> ih)
 
void DeleteHadrons ()
 
void DeleteRealHadrons ()
 
- Public Member Functions inherited from Jetscape::JetScapeModuleBase
 JetScapeModuleBase ()
 
 JetScapeModuleBase (string m_name)
 
virtual ~JetScapeModuleBase ()
 
void SetXMLMainFileName (string m_name)
 
string GetXMLMainFileName ()
 
void SetXMLUserFileName (string m_name)
 
string GetXMLUserFileName ()
 
shared_ptr< std::mt19937 > GetMt19937Generator ()
 
tinyxml2::XMLElementGetXMLElement (std::initializer_list< const char * > path, bool isRequired=true)
 
std::string GetXMLElementText (std::initializer_list< const char * > path, bool isRequired=true)
 
int GetXMLElementInt (std::initializer_list< const char * > path, bool isRequired=true)
 
double GetXMLElementDouble (std::initializer_list< const char * > path, bool isRequired=true)
 
- Public Member Functions inherited from Jetscape::JetScapeTask
 JetScapeTask ()
 
virtual ~JetScapeTask ()
 
virtual void Finish ()
 
virtual void ExecuteTasks ()
 
virtual void ExecuteTask ()
 
virtual void InitTask ()
 
virtual void InitTasks ()
 
virtual void ClearTasks ()
 
virtual void ClearTask ()
 
virtual void FinishTask ()
 
virtual void FinishTasks ()
 
virtual void WriteTasks (weak_ptr< JetScapeWriter > w)
 
virtual void CollectHeader (weak_ptr< JetScapeWriter > w)
 
virtual void CollectHeaders (weak_ptr< JetScapeWriter > w)
 
virtual void Add (shared_ptr< JetScapeTask > m_tasks)
 
virtual const int GetMyTaskNumber () const
 
const vector< shared_ptr
< JetScapeTask > > 
GetTaskList () const
 
shared_ptr< JetScapeTaskGetTaskAt (int i)
 
void EraseTaskLast ()
 
void EraseTaskAt (int i)
 
void ResizeTaskList (int i)
 
void ClearTaskList ()
 
int GetNumberOfTasks ()
 
const bool GetActive () const
 
void SetActive (bool m_active_exec)
 
void SetId (string m_id)
 
const string GetId () const
 
const shared_ptr
< JetScapeModuleMutex
GetMutex () const
 
void SetMutex (shared_ptr< JetScapeModuleMutex > m_mutex)
 
- Public Member Functions inherited from sigslot::has_slots< sigslot::multi_threaded_local >
 has_slots ()
 
 has_slots (const has_slots &hs)
 
void signal_connect (_signal_base< sigslot::multi_threaded_local > *sender)
 
void signal_disconnect (_signal_base< sigslot::multi_threaded_local > *sender)
 
virtual ~has_slots ()
 
void disconnect_all ()
 

Protected Attributes

std::uniform_real_distribution
< double
ZeroOneDistribution
 

Static Protected Attributes

static Pythia8::Pythia pythia
 

Private Attributes

double p_fake
 
bool take_recoil
 

Static Private Attributes

static RegisterJetScapeModule
< ColorlessHadronization
reg
 

Additional Inherited Members

- Static Public Member Functions inherited from Jetscape::JetScapeModuleBase
static int GetCurrentEvent ()
 
static void IncrementCurrentEvent ()
 
- Public Attributes inherited from Jetscape::Hadronization
sigslot::signal3< vector
< vector< shared_ptr< Parton >
> > &, vector< shared_ptr
< Hadron > > &, vector
< shared_ptr< Parton >
> &, multi_threaded_local
TransformPartons
 
sigslot::signal2
< Jetscape::real, std::vector
< SurfaceCellInfo >
&, multi_threaded_local
GetHydroHyperSurface
 
sigslot::signal5< double,
double, double, double,
std::unique_ptr< FluidCellInfo >
&, multi_threaded_local
GetHydroCellSignal
 

Detailed Description

Definition at line 25 of file ColorlessHadronization.h.

View newest version in sPHENIX GitHub at line 25 of file ColorlessHadronization.h

Constructor & Destructor Documentation

ColorlessHadronization::ColorlessHadronization ( )

Definition at line 40 of file ColorlessHadronization.cc.

View newest version in sPHENIX GitHub at line 40 of file ColorlessHadronization.cc

References SetId(), and VERBOSE.

+ Here is the call graph for this function:

ColorlessHadronization::~ColorlessHadronization ( )
virtual

Definition at line 45 of file ColorlessHadronization.cc.

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

References VERBOSE.

Member Function Documentation

void ColorlessHadronization::DoHadronization ( vector< vector< shared_ptr< Parton >>> &  shower,
vector< shared_ptr< Hadron >> &  hOut,
vector< shared_ptr< Parton >> &  pOut 
)
virtual
void ColorlessHadronization::Init ( )
virtual

A virtual function for a default initialization of a JetScapeModuleBase. It also checks whether a XML file is loaded or not.

Reimplemented from Jetscape::Hadronization.

Definition at line 47 of file ColorlessHadronization.cc.

View newest version in sPHENIX GitHub at line 47 of file ColorlessHadronization.cc

References JSDEBUG, JSINFO, JSWARN, test_fpe::lines, physmon_simulation::s, to_string(), and VERBOSE.

+ Here is the call graph for this function:

void ColorlessHadronization::WriteTask ( weak_ptr< JetScapeWriter w)
virtual

A virtual function to define a default WriteTask() function for a JetScapeTask. It can be overridden by different modules/tasks. Current setup: Every task gets handed a pointer to the writer and can add any information it likes to it (using predefined functions like WriteComment()) This is maximally flexible but makes it difficult to properly store information for a variety of outputs. E.g., sigmaGen: A HardProcess can easily write the xsec to any stream-type output using WriteComment. But to set it in a HepMC file, either HardProcess needs to make a case-by-case selection, meaning a new file format would need to percolate through multiple base classes, or the writer needs to know this information and implement WriteEvent appropriately. The latter is obviously better, but it's non-trivial to collect this information.

Reimplemented from Jetscape::Hadronization.

Definition at line 120 of file ColorlessHadronization.cc.

View newest version in sPHENIX GitHub at line 120 of file ColorlessHadronization.cc

References f, and VERBOSE.

Member Data Documentation

double ColorlessHadronization::p_fake
private

Definition at line 38 of file ColorlessHadronization.h.

View newest version in sPHENIX GitHub at line 38 of file ColorlessHadronization.h

Pythia8::Pythia ColorlessHadronization::pythia
staticprotected

Definition at line 45 of file ColorlessHadronization.h.

View newest version in sPHENIX GitHub at line 45 of file ColorlessHadronization.h

RegisterJetScapeModule< ColorlessHadronization > ColorlessHadronization::reg
staticprivate

Definition at line 42 of file ColorlessHadronization.h.

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

bool ColorlessHadronization::take_recoil
private

Definition at line 39 of file ColorlessHadronization.h.

View newest version in sPHENIX GitHub at line 39 of file ColorlessHadronization.h

std::uniform_real_distribution<double> ColorlessHadronization::ZeroOneDistribution
protected

Definition at line 46 of file ColorlessHadronization.h.

View newest version in sPHENIX GitHub at line 46 of file ColorlessHadronization.h


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