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

#include <JETSCAPE/blob/main/src/jet/PartonPrinter.h>

+ Inheritance diagram for Jetscape::PartonPrinter:
+ Collaboration diagram for Jetscape::PartonPrinter:

Public Member Functions

 PartonPrinter ()
 
virtual ~PartonPrinter ()
 
virtual void Init ()
 
virtual void Exec () final
 
virtual void Clear ()
 
void GetFinalPartons (shared_ptr< PartonShower > pShower)
 
void GetFinalPartons2 (shared_ptr< PartonShower > pShower)
 
void GetPartonsAtTime (shared_ptr< PartonShower > pShower, vector< shared_ptr< Parton >> &fPartons, double time)
 
void PrintFinalPartons (vector< vector< shared_ptr< Parton >>> &fPartons)
 
- 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 WriteTask (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 ()
 

Public Attributes

std::ofstream dist_output
 the output stream where events are saved to file
 

Private Attributes

vector< vector< shared_ptr
< Parton > > > 
pFinals
 

Static Private Attributes

static RegisterJetScapeModule
< PartonPrinter
reg
 

Additional Inherited Members

- Static Public Member Functions inherited from Jetscape::JetScapeModuleBase
static int GetCurrentEvent ()
 
static void IncrementCurrentEvent ()
 

Detailed Description

Definition at line 27 of file PartonPrinter.h.

View newest version in sPHENIX GitHub at line 27 of file PartonPrinter.h

Constructor & Destructor Documentation

Jetscape::PartonPrinter::PartonPrinter ( )

Definition at line 33 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 33 of file PartonPrinter.cc

Jetscape::PartonPrinter::~PartonPrinter ( )
virtual

Definition at line 35 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 35 of file PartonPrinter.cc

Member Function Documentation

void Jetscape::PartonPrinter::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::JetScapeModuleBase.

Definition at line 87 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 87 of file PartonPrinter.cc

void Jetscape::PartonPrinter::Exec ( )
finalvirtual

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

Reimplemented from Jetscape::JetScapeModuleBase.

Definition at line 45 of file PartonPrinter.cc.

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

References VERBOSE.

void Jetscape::PartonPrinter::GetFinalPartons ( shared_ptr< PartonShower pShower)

Definition at line 50 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 50 of file PartonPrinter.cc

void Jetscape::PartonPrinter::GetFinalPartons2 ( shared_ptr< PartonShower pShower)

Definition at line 73 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 73 of file PartonPrinter.cc

void Jetscape::PartonPrinter::GetPartonsAtTime ( shared_ptr< PartonShower pShower,
vector< shared_ptr< Parton >> &  fPartons,
double  time 
)

Definition at line 93 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 93 of file PartonPrinter.cc

void Jetscape::PartonPrinter::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::JetScapeModuleBase.

Definition at line 37 of file PartonPrinter.cc.

View newest version in sPHENIX GitHub at line 37 of file PartonPrinter.cc

References release::app, filename, JSINFO, and SetId().

+ Here is the call graph for this function:

void Jetscape::PartonPrinter::PrintFinalPartons ( vector< vector< shared_ptr< Parton >>> &  fPartons)
inline

Definition at line 47 of file PartonPrinter.h.

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

References pFinals.

Member Data Documentation

std::ofstream Jetscape::PartonPrinter::dist_output

the output stream where events are saved to file

Definition at line 37 of file PartonPrinter.h.

View newest version in sPHENIX GitHub at line 37 of file PartonPrinter.h

vector<vector<shared_ptr<Parton> > > Jetscape::PartonPrinter::pFinals
private

Definition at line 49 of file PartonPrinter.h.

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

Referenced by PrintFinalPartons().

RegisterJetScapeModule< PartonPrinter > Jetscape::PartonPrinter::reg
staticprivate

Definition at line 55 of file PartonPrinter.h.

View newest version in sPHENIX GitHub at line 55 of file PartonPrinter.h


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