28 Hadronization::Hadronization() {
29 SetId(
"Hadronization");
30 TransformPartonsConnected =
false;
31 HydroHyperSurfaceConnected_ =
false;
32 GetHydroCellSignalConnected_ =
false;
35 Hadronization::~Hadronization() {}
47 if (GetNumberOfTasks() < 1) {
48 JSWARN <<
" : No valid Hadronization modules found ...";
52 JSINFO <<
"Found " << GetNumberOfTasks()
53 <<
" Hadronization Tasks/Modules Initialize them ... ";
54 JetScapeTask::InitTasks();
57 void Hadronization::DoHadronize() {
58 VERBOSE(2) <<
"Get Recombination Partons...";
60 if (inPartons.size() > 0) {
61 VERBOSE(2) <<
"There are Partons ready for Recombination...";
62 TransformPartons(inPartons, outHadrons, outPartons);
64 VERBOSE(2) <<
"There is no Parton ready for Recombination...";
68 void Hadronization::Exec() {
69 VERBOSE(2) <<
"Run Hadronization Exec...";
70 VERBOSE(2) <<
"Found " << GetNumberOfTasks()
71 <<
" Hadronization Tasks/Modules Execute them ... ";
79 void Hadronization::WriteTask(weak_ptr<JetScapeWriter> w) {
80 VERBOSE(4) <<
"In Hadronization::WriteTask";
85 f->WriteComment(
"Hadronization module: " + GetId());
87 if (GetHadrons().
size() > 0) {
88 f->WriteComment(
"Final State Hadrons");
90 for (
auto &
h : GetHadrons()) {
91 f->WriteWhiteSpace(
"[" +
to_string(i) +
"] H");
96 f->WriteComment(
"There are no Hadrons");
100 void Hadronization::DeleteHadrons() {
104 void Hadronization::DeleteRealHadrons() {
109 [](
const std::shared_ptr<Hadron>& hadron) {
110 return hadron->pstat() > 0;