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

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

+ Inheritance diagram for iSpectraSamplerWrapper:
+ Collaboration diagram for iSpectraSamplerWrapper:

Public Member Functions

 iSpectraSamplerWrapper ()
 
 ~iSpectraSamplerWrapper ()
 
void InitTask ()
 
void Exec ()
 
void Clear ()
 
void WriteTask (weak_ptr< JetScapeWriter > w)
 
void PassHadronListToJetscape ()
 
- Public Member Functions inherited from Jetscape::SoftParticlization
 SoftParticlization ()
 
 ~SoftParticlization ()
 
virtual void Init ()
 
bool check_boost_invariance ()
 
- 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 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 ()
 

Private Attributes

tinyxml2::XMLElementiSS_xml_
 
std::unique_ptr< iSS > iSpectraSampler_ptr_
 

Static Private Attributes

static RegisterJetScapeModule
< iSpectraSamplerWrapper
reg
 

Additional Inherited Members

- Static Public Member Functions inherited from Jetscape::JetScapeModuleBase
static int GetCurrentEvent ()
 
static void IncrementCurrentEvent ()
 
- Public Attributes inherited from Jetscape::SoftParticlization
std::vector< std::vector
< shared_ptr< Hadron > > > 
Hadron_list_
 
bool boost_invariance
 

Detailed Description

Definition at line 29 of file iSpectraSamplerWrapper.h.

View newest version in sPHENIX GitHub at line 29 of file iSpectraSamplerWrapper.h

Constructor & Destructor Documentation

iSpectraSamplerWrapper::iSpectraSamplerWrapper ( )

Definition at line 32 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 32 of file iSpectraSamplerWrapper.cc

References SetId().

+ Here is the call graph for this function:

iSpectraSamplerWrapper::~iSpectraSamplerWrapper ( )

Definition at line 34 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 34 of file iSpectraSamplerWrapper.cc

Member Function Documentation

void iSpectraSamplerWrapper::Clear ( void  )
virtual

A virtual function to define a default Clear() function for a JetScapeModuleBase. It can be overridden by different modules/tasks.

Reimplemented from Jetscape::SoftParticlization.

Definition at line 143 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 143 of file iSpectraSamplerWrapper.cc

References i, and VERBOSE.

void iSpectraSamplerWrapper::Exec ( )
virtual

A virtual function to define a default Exec() function for a JetScapeModuleBase. It can be overridden by different modules/tasks.

Reimplemented from Jetscape::SoftParticlization.

Definition at line 106 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 106 of file iSpectraSamplerWrapper.cc

References centProxy::inputfile, JSINFO, JSWARN, utils::status, and VERBOSE.

void iSpectraSamplerWrapper::InitTask ( )
virtual

A virtual function to define a default InitTask() function for a JetScapeTask. It can be overridden by different modules/tasks.

Reimplemented from Jetscape::JetScapeTask.

Definition at line 36 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 36 of file iSpectraSamplerWrapper.cc

References perf_headwind::input_file, and JSINFO.

void iSpectraSamplerWrapper::PassHadronListToJetscape ( )

Definition at line 152 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 152 of file iSpectraSamplerWrapper.cc

References nparticles, and VERBOSE.

void iSpectraSamplerWrapper::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::JetScapeTask.

Definition at line 190 of file iSpectraSamplerWrapper.cc.

View newest version in sPHENIX GitHub at line 190 of file iSpectraSamplerWrapper.cc

References f, i, j, to_string(), and VERBOSE.

+ Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<iSS> iSpectraSamplerWrapper::iSpectraSampler_ptr_
private

Definition at line 33 of file iSpectraSamplerWrapper.h.

View newest version in sPHENIX GitHub at line 33 of file iSpectraSamplerWrapper.h

tinyxml2::XMLElement* iSpectraSamplerWrapper::iSS_xml_
private

Definition at line 31 of file iSpectraSamplerWrapper.h.

View newest version in sPHENIX GitHub at line 31 of file iSpectraSamplerWrapper.h

RegisterJetScapeModule< iSpectraSamplerWrapper > iSpectraSamplerWrapper::reg
staticprivate

Definition at line 36 of file iSpectraSamplerWrapper.h.

View newest version in sPHENIX GitHub at line 36 of file iSpectraSamplerWrapper.h


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