-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found a solution. I added some lines after line 711 of tutor7pp.cpp .
This produces lines with the dose per voxel per history in the output. Is there a way to get the edep output to a binary stream? Thanks ! |
Beta Was this translation helpful? Give feedback.
-
Indeed, it works like this: 1 add at the class: 2 add RH_stream(0) in the definition of the application:
3 in
add
Now you can use `RH_stream << in the same way as cout << |
Beta Was this translation helpful? Give feedback.
Indeed, it works like this:
1 add at the class:
class APP_EXPORT Tutor7_Application : public EGS_AdvancedApplication {
ofstream RH_stream;
2 add RH_stream(0) in the definition of the application:
Tutor7_Application(int argc, char **argv) : EGS_AdvancedApplication(argc,argv), score(0), eflu(0), gflu(0), pheight(0), iregMaxHist(0), nreg(0), nph(0), Etot(0), rr_flag(0), current_weight(1), deflect_brems(false), RH_stream(0)
3 in
int Tutor7_Application::initScoring() {
add
string ofile = constructIOFileName(".egsRHXYZE.xls",true);
RH_stream = ofstream(ofile.c_str(), ios::out);
Now you can use
`RH_stream <<
in the same way as
cout <<