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 (
"JetscapeFinalStatePartons.txt");
55 while (!reader->Finished())
60 auto mShowers=reader->GetPartonShowers();
62 dist_output<<
"Event "<< reader->GetCurrentEvent()+1<<endl;
63 for (
int i=0;i<mShowers.size();i++)
67 for (
int ipart = 0;
ipart< mShowers[i]->GetFinalPartons().size(); ++
ipart){
68 Parton
p = *mShowers[i]->GetFinalPartons().at(
ipart);
69 dist_output <<
ipart <<
"\t"
76 << p.eta()<<
"\t"<< p.phi() << endl;