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

#include <JETSCAPE/blob/main/src/initialstate/IPGlasmaWrapper.h>

+ Inheritance diagram for IPGlasmaWrapper:
+ Collaboration diagram for IPGlasmaWrapper:

Public Member Functions

 IPGlasmaWrapper ()
 
 ~IPGlasmaWrapper ()
 
void Exec ()
 
void Clear ()
 
void InitTask ()
 
virtual void Write (weak_ptr< JetScapeWriter > w)
 
double GetNcoll ()
 
void ReadNbcList (std::string filename)
 Load saved number of binary collisions.
 
void SampleABinaryCollisionPoint (double &x, double &y)
 
- Public Member Functions inherited from Jetscape::InitialState
 InitialState ()
 
 ~InitialState ()
 
virtual void Init ()
 
virtual void CollectHeader (weak_ptr< JetScapeWriter > w)
 
virtual double GetNpart ()
 
virtual double GetTotalEntropy ()
 
void SetRanges (double xmax, double ymax, double zmax)
 
void SetSteps (double dx, double dy, double dz)
 
std::vector< doubleGetEntropyDensityDistribution ()
 
std::vector< doubleGetNumOfBinaryCollisions ()
 
int GetEventId () const
 
void SetEventId (int event_id_in)
 set the event id
 
std::tuple< double, double,
double
CoordFromIdx (int idx)
 
double GetXMax ()
 
double GetXStep ()
 
double GetYMax ()
 
double GetYStep ()
 
double GetZMax ()
 
double GetZStep ()
 
int GetXSize ()
 
int GetYSize ()
 
int GetZSize ()
 
- 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 WriteTask (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

std::unique_ptr< IPGlasma > IPGlasma_ptr_
 
int dim_x_
 
int dim_y_
 
std::vector< doublebinary_collision_x_
 
std::vector< doublebinary_collision_y_
 
std::shared_ptr
< std::uniform_int_distribution
< int > > 
rand_int_ptr_
 
int ncoll_ = -1
 

Static Private Attributes

static RegisterJetScapeModule
< IPGlasmaWrapper
reg
 

Additional Inherited Members

- Static Public Member Functions inherited from Jetscape::JetScapeModuleBase
static int GetCurrentEvent ()
 
static void IncrementCurrentEvent ()
 
- Protected Attributes inherited from Jetscape::InitialState
std::vector< doubleentropy_density_distribution_
 
std::vector< doublenum_of_binary_collisions_
 
int event_id_
 
double grid_max_x_
 
double grid_max_y_
 
double grid_max_z_
 
double grid_step_x_
 
double grid_step_y_
 
double grid_step_z_
 

Detailed Description

Definition at line 28 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 28 of file IPGlasmaWrapper.h

Constructor & Destructor Documentation

IPGlasmaWrapper::IPGlasmaWrapper ( )

Definition at line 24 of file IPGlasmaWrapper.cc.

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

References Jetscape::InitialState::event_id_, and Jetscape::JetScapeTask::SetId().

+ Here is the call graph for this function:

IPGlasmaWrapper::~IPGlasmaWrapper ( )

Definition at line 30 of file IPGlasmaWrapper.cc.

View newest version in sPHENIX GitHub at line 30 of file IPGlasmaWrapper.cc

Member Function Documentation

void IPGlasmaWrapper::Clear ( void  )
virtual

Default Clear() function. It can be overridden by other tasks.

Reimplemented from Jetscape::InitialState.

Definition at line 58 of file IPGlasmaWrapper.cc.

View newest version in sPHENIX GitHub at line 58 of file IPGlasmaWrapper.cc

References JSINFO.

Referenced by Exec().

+ Here is the caller graph for this function:

void IPGlasmaWrapper::Exec ( )
virtual

Reads the input parameters from the XML file under the tag <IS>. Calls InitTask(); This explicit call of InitTask() can be used for actual initialization of modules such as Trento if attached as a polymorphic class. It also initializes the tasks within the current module.

See Also
Read about polymorphism in C++.Default Exec() function. It can be overridden by other tasks.

Reimplemented from Jetscape::InitialState.

Definition at line 44 of file IPGlasmaWrapper.cc.

View newest version in sPHENIX GitHub at line 44 of file IPGlasmaWrapper.cc

References Clear(), check_license::err(), Jetscape::InitialState::event_id_, IPGlasma_ptr_, JSINFO, JSWARN, and ReadNbcList().

+ Here is the call graph for this function:

double IPGlasmaWrapper::GetNcoll ( )
inlinevirtual

Generated number of binary collisions.

Reimplemented from Jetscape::InitialState.

Definition at line 58 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 58 of file IPGlasmaWrapper.h

void IPGlasmaWrapper::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 33 of file IPGlasmaWrapper.cc.

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

References IPGlasma_ptr_, Jetscape::InitialState::SetRanges(), and Jetscape::InitialState::SetSteps().

+ Here is the call graph for this function:

void IPGlasmaWrapper::ReadNbcList ( std::string  filename)

Load saved number of binary collisions.

Definition at line 63 of file IPGlasmaWrapper.cc.

View newest version in sPHENIX GitHub at line 63 of file IPGlasmaWrapper.cc

References binary_collision_x_, binary_collision_y_, filename, infile, JSINFO, JSWARN, ncoll_, rand_int_ptr_, ambiguity_solver_full_chain::x, and y.

Referenced by Exec().

+ Here is the caller graph for this function:

void IPGlasmaWrapper::SampleABinaryCollisionPoint ( double x,
double y 
)
virtual

Reimplemented from Jetscape::InitialState.

Definition at line 87 of file IPGlasmaWrapper.cc.

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

References binary_collision_x_, binary_collision_y_, and Jetscape::JetScapeModuleBase::GetMt19937Generator().

+ Here is the call graph for this function:

void IPGlasmaWrapper::Write ( weak_ptr< JetScapeWriter w)
virtual

Default Write() function. It can be overridden by other tasks.

Parameters
wA pointer to the JetScapeWriter class.

Reimplemented from Jetscape::InitialState.

Definition at line 94 of file IPGlasmaWrapper.cc.

View newest version in sPHENIX GitHub at line 94 of file IPGlasmaWrapper.cc

Member Data Documentation

std::vector<double> IPGlasmaWrapper::binary_collision_x_
private

Definition at line 69 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 69 of file IPGlasmaWrapper.h

Referenced by ReadNbcList(), and SampleABinaryCollisionPoint().

std::vector<double> IPGlasmaWrapper::binary_collision_y_
private

Definition at line 70 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 70 of file IPGlasmaWrapper.h

Referenced by ReadNbcList(), and SampleABinaryCollisionPoint().

int IPGlasmaWrapper::dim_x_
private

Definition at line 67 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 67 of file IPGlasmaWrapper.h

int IPGlasmaWrapper::dim_y_
private

Definition at line 67 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 67 of file IPGlasmaWrapper.h

std::unique_ptr<IPGlasma> IPGlasmaWrapper::IPGlasma_ptr_
private

Definition at line 66 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 66 of file IPGlasmaWrapper.h

Referenced by Exec(), and InitTask().

int IPGlasmaWrapper::ncoll_ = -1
private

Definition at line 73 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 73 of file IPGlasmaWrapper.h

Referenced by ReadNbcList().

std::shared_ptr<std::uniform_int_distribution<int> > IPGlasmaWrapper::rand_int_ptr_
private

Definition at line 71 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 71 of file IPGlasmaWrapper.h

Referenced by ReadNbcList().

RegisterJetScapeModule< IPGlasmaWrapper > IPGlasmaWrapper::reg
staticprivate

Definition at line 76 of file IPGlasmaWrapper.h.

View newest version in sPHENIX GitHub at line 76 of file IPGlasmaWrapper.h


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