26 #define MAGENTA "\033[35m"
30 HardProcess::HardProcess() {
35 HardProcess::~HardProcess() {
45 JSINFO <<
"Initialize HardProcess : " << GetId() <<
" ...";
49 ini = JetScapeSignalManager::Instance()->GetInitialStatePointer().lock();
53 bool in_vac = GetXMLElementInt({
"Eloss",
"Matter",
"in_vac"});
55 JSWARN <<
"No initial state module! Please check whether you intend to "
56 "add an initial state module.";
59 string status = GetXMLElementText({
"PartonPrinter",
"Status"});
62 printer = GetXMLElementText({
"PartonPrinter",
"FileName"});
67 JetScapeTask::InitTasks();
70 void HardProcess::Exec() {
71 JSINFO <<
"Run Hard Process : " << GetId() <<
" ...";
72 VERBOSE(8) <<
"Current Event #" << GetCurrentEvent();
74 JetScapeTask::ExecuteTasks();
78 JSDEBUG <<
"Clear Hard Process : " << GetId() <<
" ...";
85 void HardProcess::WriteTask(weak_ptr<JetScapeWriter> w) {
90 VERBOSE(8) <<
f->GetOutputFileName();
104 f->WriteComment(
"HardProcess Parton List: " + GetId());
105 for (
auto hp : hp_list)
110 void HardProcess::CollectHeader(weak_ptr<JetScapeWriter> w) {
113 auto &header =
f->GetHeader();
114 header.SetSigmaGen(GetSigmaGen());
115 header.SetSigmaErr(GetSigmaErr());
116 header.SetPtHat(GetPtHat());
117 header.SetEventWeight(GetEventWeight());