Difference between revisions of "Day5, 10/04/2011"

From New IAC Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
* gedit src/ExN02SteppingVerbose.cc
 
* gedit src/ExN02SteppingVerbose.cc
 
**
 
 
ExN02SteppingVerbose::ExN02SteppingVerbose()
 
ExN02SteppingVerbose::ExN02SteppingVerbose()
 
{
 
{
Line 11: Line 9:
 
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
 
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
  
**
 
 
ExN02SteppingVerbose::~ExN02SteppingVerbose()
 
ExN02SteppingVerbose::~ExN02SteppingVerbose()
 
{
 
{
Line 22: Line 19:
  
 
* gedit include/ExN02SteppingVerbose.hh
 
* gedit include/ExN02SteppingVerbose.hh
 
**
 
 
class ExN02SteppingVerbose : public G4SteppingVerbose  
 
class ExN02SteppingVerbose : public G4SteppingVerbose  
 
{
 
{
Line 38: Line 33:
  
 
};
 
};
 
  
  
 
* gedit src/ExN02SteppingVerbose.cc
 
* gedit src/ExN02SteppingVerbose.cc
 
**
 
 
void ExN02SteppingVerbose::StepInfo()
 
void ExN02SteppingVerbose::StepInfo()
 
{
 
{

Revision as of 21:13, 4 October 2011

go back

  • gedit src/ExN02SteppingVerbose.cc

ExN02SteppingVerbose::ExN02SteppingVerbose() {

 outfile.open("sigmaR.txt");   //added 10/4/11

}

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

ExN02SteppingVerbose::~ExN02SteppingVerbose() {

 outfile.close();    //added 10/4/11

}

//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......

    • void ExN02SteppingVerbose::TrackingStarted() print first step
  • gedit include/ExN02SteppingVerbose.hh

class ExN02SteppingVerbose : public G4SteppingVerbose {

public:
  
 ExN02SteppingVerbose();
~ExN02SteppingVerbose();
 void StepInfo();
 void TrackingStarted();
private:   //added 10/4/11
 std::ofstream outfile;

};


  • gedit src/ExN02SteppingVerbose.cc

void ExN02SteppingVerbose::StepInfo() {

 CopyState();
 
 G4int prec = G4cout.precision(3);
 outfile << "Roman is a Grad Student" << G4endl;    //added 10/4/11