Difference between revisions of "Day5, 10/04/2011"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
outfile.open("sigmaR.txt") | outfile.open("sigmaR.txt") | ||
} | } | ||
+ | |||
+ | |||
+ | * gedit include/ExN02SteppingVerbose.hh | ||
+ | class ExN02SteppingVerbose : public G4SteppingVerbose | ||
+ | { | ||
+ | public: | ||
+ | |||
+ | ExN02SteppingVerbose(); | ||
+ | ~ExN02SteppingVerbose(); | ||
+ | |||
+ | void StepInfo(); | ||
+ | void TrackingStarted(); | ||
+ | |||
+ | //added | ||
+ | private | ||
+ | std::ofstream outfile; | ||
+ | |||
+ | }; |
Revision as of 21:00, 4 October 2011
- gedit src/ExN02SteppingVerbose.cc
- void ExN02SteppingVerbose::TrackingStarted() print first step
- ExN02SteppingVerbose::~ExN02SteppingVerbose()
{
outfile.open("sigmaR.txt")
}
- gedit include/ExN02SteppingVerbose.hh
class ExN02SteppingVerbose : public G4SteppingVerbose {
public: ExN02SteppingVerbose(); ~ExN02SteppingVerbose();
void StepInfo(); void TrackingStarted();
//added private std::ofstream outfile;
};