Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PreequilibriumDynamics.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PreequilibriumDynamics.cc
1 /*******************************************************************************
2  * Copyright (c) The JETSCAPE Collaboration, 2018
3  *
4  * Modular, task-based framework for simulating all aspects of heavy-ion collisions
5  *
6  * For the list of contributors see AUTHORS.
7  *
8  * Report issues at https://github.com/JETSCAPE/JETSCAPE/issues
9  *
10  * or via email to bugs.jetscape@gmail.com
11  *
12  * Distributed under the GNU General Public License 3.0 (GPLv3 or later).
13  * See COPYING for details.
14  ******************************************************************************/
15 
16 #include "PreequilibriumDynamics.h"
17 #include "JetScapeLogger.h"
18 #include "JetScapeXML.h"
19 #include "JetScapeSignalManager.h"
20 #include <string>
21 
22 #include <iostream>
23 
24 using namespace std;
25 
26 #define MAGENTA "\033[35m"
27 
28 namespace Jetscape {
29 
30 PreequilibriumDynamics::PreequilibriumDynamics() {
31  VERBOSE(8);
32  SetId("PreequilibriumDynamics");
33 }
34 
35 PreequilibriumDynamics::~PreequilibriumDynamics() {
36  VERBOSE(8);
37  disconnect_all();
38 }
39 
42 
43  JSINFO << "Initialize PreequilibriumDynamics : " << GetId() << " ...";
44 
45  VERBOSE(8);
46 
47  // this is grabbing the initial entropy density ?
48  ini = JetScapeSignalManager::Instance()->GetInitialStatePointer().lock();
49  if (!ini) {
50  JSWARN << "No initialization module, try: "
51  << "auto trento = make_shared<TrentoInitial>(); "
52  << "jetscape->Add(trento);";
53  }
54 
55  InitializePreequilibrium(parameter_list_);
56 
57  InitTask();
58 
59  JetScapeTask::InitTasks();
60 }
61 
62 void PreequilibriumDynamics::Exec() {
63  VERBOSE(2) << "Run Preequilibrium : " << GetId() << " ...";
64  VERBOSE(8) << "Current Event #" << GetCurrentEvent();
65 
66  if (ini) {
67  VERBOSE(3) << "length of entropy density vector="
68  << ini->GetEntropyDensityDistribution().size();
69  }
70 
71  EvolvePreequilibrium();
72 
73  JetScapeTask::ExecuteTasks();
74 }
75 
77  e_.clear();
78  P_.clear();
79  utau_.clear();
80  ux_.clear();
81  uy_.clear();
82  ueta_.clear();
83  pi00_.clear();
84  pi01_.clear();
85  pi02_.clear();
86  pi03_.clear();
87  pi11_.clear();
88  pi12_.clear();
89  pi13_.clear();
90  pi22_.clear();
91  pi23_.clear();
92  pi33_.clear();
93  bulk_Pi_.clear();
94 }
95 
96 } // end namespace Jetscape