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

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

+ Inheritance diagram for Jetscape::TrentoInitial:
+ Collaboration diagram for Jetscape::TrentoInitial:

Classes

struct  RangeFailure
 

Public Member Functions

 TrentoInitial ()
 
 ~TrentoInitial ()
 
void Exec ()
 
void Clear ()
 
void InitTask ()
 
- Public Member Functions inherited from Jetscape::InitialState
 InitialState ()
 
 ~InitialState ()
 
virtual void Init ()
 
virtual void Write (weak_ptr< JetScapeWriter > w)
 
virtual void CollectHeader (weak_ptr< JetScapeWriter > w)
 
virtual double GetNpart ()
 
virtual double GetNcoll ()
 
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)
 
virtual void SampleABinaryCollisionPoint (double &x, double &y)
 
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 ()
 

Public Attributes

EventInfo info_
 

Private Member Functions

std::pair< double, doubleGenCenTab (std::string proj, std::string targ, VarMap var_map, int cL, int cH)
 

Private Attributes

std::shared_ptr< trento::ColliderTrentoGen_
 

Static Private Attributes

static RegisterJetScapeModule
< TrentoInitial
reg
 The output instance.
 

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

The output data format (from http://qcd.phy.duke.edu/trento/usage.html#output-options): The grid will always be a square N × N array, with N = ceil(2*max/step). So e.g. the default settings (max = 10 fm, step = 0.2 fm) imply a 100 × 100 grid. The ceiling function ensures that the number of steps is always rounded up, so e.g. given max = 10 fm and step 0.3 fm, the grid will be 67 × 67. In this case, the actual grid max will be marginally increased (max = nsteps*step/2).

Definition at line 57 of file TrentoInitial.h.

View newest version in sPHENIX GitHub at line 57 of file TrentoInitial.h

Constructor & Destructor Documentation

Jetscape::TrentoInitial::TrentoInitial ( )

Definition at line 58 of file TrentoInitial.cc.

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

References Jetscape::JetScapeTask::SetId().

+ Here is the call graph for this function:

Jetscape::TrentoInitial::~TrentoInitial ( )
default

Member Function Documentation

void Jetscape::TrentoInitial::Clear ( void  )
virtual

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

Reimplemented from Jetscape::InitialState.

Definition at line 410 of file TrentoInitial.cc.

View newest version in sPHENIX GitHub at line 410 of file TrentoInitial.cc

References Jetscape::InitialState::entropy_density_distribution_, Jetscape::InitialState::num_of_binary_collisions_, and VERBOSE.

void Jetscape::TrentoInitial::Exec ( )
virtual

Default Exec() function. It can be overridden by other tasks. After this is run, GetNumBinaryCollisions and GetEntropyDensityDistribution should return sensible values.

Reimplemented from Jetscape::InitialState.

Definition at line 375 of file TrentoInitial.cc.

View newest version in sPHENIX GitHub at line 375 of file TrentoInitial.cc

References Jetscape::EventInfo::ecc, Jetscape::InitialState::entropy_density_distribution_, Jetscape::InitialState::GetXMax(), Jetscape::InitialState::GetYMax(), i, Jetscape::EventInfo::impact_parameter, info_, JSINFO, Jetscape::EventInfo::num_binary_collisions, Jetscape::InitialState::num_of_binary_collisions_, Jetscape::EventInfo::num_participant, Jetscape::EventInfo::psi, Jetscape::EventInfo::total_entropy, TrentoGen_, Jetscape::EventInfo::xmid, and Jetscape::EventInfo::ymid.

+ Here is the call graph for this function:

std::pair< double, double > Jetscape::TrentoInitial::GenCenTab ( std::string  proj,
std::string  targ,
VarMap  var_map,
int  cL,
int  cH 
)
private

Definition at line 293 of file TrentoInitial.cc.

View newest version in sPHENIX GitHub at line 293 of file TrentoInitial.cc

References trento::Collider::all_records(), Jetscape::compare_E(), filename, fout, i, infile, JSINFO, JSWARN, line, trento::Collider::run_events(), and Acts::Experimental::detail::BlueprintHelper::sort().

Referenced by InitTask().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Jetscape::TrentoInitial::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 62 of file TrentoInitial.cc.

View newest version in sPHENIX GitHub at line 62 of file TrentoInitial.cc

References runCondor_beamspot::cmd, etamax, GenCenTab(), Jetscape::JetScapeModuleBase::GetMt19937Generator(), Jetscape::InitialState::GetXMax(), Jetscape::JetScapeModuleBase::GetXMLElement(), Jetscape::InitialState::GetXStep(), Jetscape::InitialState::GetZMax(), Jetscape::InitialState::GetZStep(), Acts::UnitConstants::J, JSINFO, k, mean(), ckf::options, merge_hashes::p, proj(), utils::run, Jetscape::InitialState::SetRanges(), Jetscape::InitialState::SetSteps(), store, to_string(), and TrentoGen_.

+ Here is the call graph for this function:

Member Data Documentation

EventInfo Jetscape::TrentoInitial::info_

Definition at line 71 of file TrentoInitial.h.

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

Referenced by Exec().

RegisterJetScapeModule< TrentoInitial > Jetscape::TrentoInitial::reg
staticprivate

The output instance.

Definition at line 81 of file TrentoInitial.h.

View newest version in sPHENIX GitHub at line 81 of file TrentoInitial.h

std::shared_ptr<trento::Collider> Jetscape::TrentoInitial::TrentoGen_
private

Definition at line 74 of file TrentoInitial.h.

View newest version in sPHENIX GitHub at line 74 of file TrentoInitial.h

Referenced by Exec(), and InitTask().


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