File indexing completed on 2025-08-03 08:20:08
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef PARTONPRINTER_H
0017 #define PARTONPRINTER_H
0018
0019 #include "JetScapeModuleBase.h"
0020 #include "PartonShower.h"
0021 #include <vector>
0022 #include <string>
0023 #include <fstream>
0024
0025 namespace Jetscape {
0026
0027 class PartonPrinter : public JetScapeModuleBase {
0028
0029 public:
0030 PartonPrinter();
0031 virtual ~PartonPrinter();
0032
0033 virtual void Init();
0034 virtual void Exec() final;
0035 virtual void Clear();
0036 std::ofstream
0037 dist_output;
0038
0039 void GetFinalPartons(shared_ptr<PartonShower>
0040 pShower );
0041
0042 void GetFinalPartons2(shared_ptr<PartonShower> pShower);
0043
0044 void GetPartonsAtTime(shared_ptr<PartonShower> pShower,
0045 vector<shared_ptr<Parton>> &fPartons, double time);
0046
0047 void PrintFinalPartons(vector<vector<shared_ptr<Parton>>> &fPartons) {
0048 fPartons = pFinals;
0049 };
0050
0051 private:
0052 vector<vector<shared_ptr<Parton>>> pFinals;
0053
0054
0055 static RegisterJetScapeModule<PartonPrinter> reg;
0056 };
0057
0058 }
0059
0060 #endif