Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrentoInitialFromXML.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrentoInitialFromXML.cc
1 // -----------------------------------------
2 // JetScape (modular/task) based framework
3 // Intial Design: LongGang Pang (2017)
4 // (UC Berkeley and LBNL)
5 // -----------------------------------------
6 // License and Doxygen-like Documentation to be added ...
7 #include "../JetScape.h"
8 #include "../TrentoInitial.h"
9 #include "../FluidDynamics.h"
10 #include "gtest/gtest.h"
11 
12 using namespace Jetscape;
13 
14 
15 TEST(InitialFromXMLTest, TEST_XML){
16  auto jetscape = make_shared<JetScape>("./jetscape_init.xml",3);
17  jetscape->SetId("primary");
18  auto ini = make_shared<TrentoInitial>();
19 
20  jetscape->Add(ini);
21 
22  // jetscape->Init() must come before make_shred<JetScapeInitial>()
23  // such that jetscape_init.xml file is read in to memory in prior
24  jetscape->Init();
25 
26  // Run JetScape with all task/modules as specified ...
27  jetscape->Exec();
28 
29  // Most thinkgs done in write and clear ...
30  jetscape->Finish();
31 
32 }
33