23 #include "PartonShower.h"
24 #include "JetScapeLogger.h"
25 #include "JetScapeReader.h"
26 #include "JetScapeBanner.h"
32 using namespace fjcore;
34 using namespace Jetscape;
42 int main(
int argc,
char** argv)
46 JetScapeLogger::Instance()->SetDebug(
false);
47 JetScapeLogger::Instance()->SetRemark(
false);
50 JetScapeLogger::Instance()->SetVerboseLevel(0);
52 auto reader=make_shared<JetScapeReaderAscii>(
"test_out.dat");
53 std::ofstream dist_output (
"JetscapeFinalStateHadrons.txt");
54 vector<shared_ptr<Hadron>> hadrons;
55 while (!reader->Finished())
62 hadrons = reader->GetHadrons();
63 cout<<
"Number of hadrons is: " << hadrons.size() << endl;
64 for(
unsigned int i=0; i<hadrons.size(); i++)
66 dist_output<<i<<
" "<<hadrons[i].get()->pid()<<
" "<<hadrons[i].get()->pstat()<<
" "<< hadrons[i].get()->e() <<
" "<< hadrons[i].get()->px()<<
" "<< hadrons[i].get()->py() <<
" "<< hadrons[i].get()->pz()<< endl;