QwGeant4
QweakSimSteppingVerbose Class Reference

N/A. More...

#include <QweakSimSteppingVerbose.hh>

Inherits G4SteppingVerbose.

Public Member Functions

 QweakSimSteppingVerbose ()
 
 ~QweakSimSteppingVerbose ()
 
void StepInfo ()
 
void TrackingStarted ()
 

Detailed Description

N/A.

Placeholder for a long explaination

Definition at line 61 of file QweakSimSteppingVerbose.hh.

Constructor & Destructor Documentation

QweakSimSteppingVerbose::QweakSimSteppingVerbose ( )

Definition at line 42 of file QweakSimSteppingVerbose.cc.

43 {;}
QweakSimSteppingVerbose::~QweakSimSteppingVerbose ( )

Definition at line 47 of file QweakSimSteppingVerbose.cc.

48 {}

Member Function Documentation

void QweakSimSteppingVerbose::StepInfo ( )

Definition at line 52 of file QweakSimSteppingVerbose.cc.

53 {
54 // G4cout << "In QweakSimSteppingVerbose::StepInfo()" << G4endl;
55 
56  CopyState();// ??? , from G4VSteppingVerbose
57 
58  G4int prec = G4cout.precision(3);
59 // verboseLevel = 3;
60 
61  if( verboseLevel >= 1 ){
62  if( verboseLevel >= 4 ) VerboseTrack();
63  if( verboseLevel >= 3 ){
64 // G4cout << G4endl;
65 // G4cout << std::setw( 5) << "#Step#" << " "
66 // << std::setw( 6) << "X" << " "
67 // << std::setw( 6) << "Y" << " "
68 // << std::setw( 6) << "Z" << " "
69 // << std::setw( 9) << "KineE" << " "
70 // << std::setw( 9) << "dEStep" << " "
71 // << std::setw(10) << "StepLeng"
72 // << std::setw(10) << "TrakLeng"
73 // << std::setw(10) << "Volume" << " "
74 // << std::setw(10) << "Process" << G4endl;
75  }
76 
77 // G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
78 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
79 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
80 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
81 // << std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
82 // << std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
83 // << std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
84 // << std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length")
85 // << " ";
86 
87  // if( fStepStatus != fWorldBoundary){
88  if( fTrack->GetNextVolume() != 0 ) {
89 // G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
90  } else {
91 // G4cout << std::setw(10) << "OutOfWorld";
92  }
93 
94  if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
95 // G4cout << " "
96 // << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
97 // ->GetProcessName();
98  } else {
99 // G4cout << " UserLimit";
100  }
101 
102 // G4cout << G4endl;
103 
104  if( verboseLevel == 2 ){
105  G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
106  fN2ndariesAlongStepDoIt +
107  fN2ndariesPostStepDoIt;
108 
109  if(tN2ndariesTot>0){
110 // G4cout << " :----- List of 2ndaries - "
111 // << "#SpawnInStep=" << std::setw(3) << tN2ndariesTot
112 // << "(Rest=" << std::setw(2) << fN2ndariesAtRestDoIt
113 // << ",Along=" << std::setw(2) << fN2ndariesAlongStepDoIt
114 // << ",Post=" << std::setw(2) << fN2ndariesPostStepDoIt
115 // << "), "
116 // << "#SpawnTotal=" << std::setw(3) << (*fSecondary).size()
117 // << " ---------------"
118 // << G4endl;
119 
120  for(size_t lp1=(*fSecondary).size()-tN2ndariesTot;
121  lp1<(*fSecondary).size(); lp1++){
122 // G4cout << " : "
123 // << std::setw(6)
124 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
125 // << std::setw(6)
126 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
127 // << std::setw(6)
128 // << G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
129 // << std::setw(6)
130 // << G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
131 // << std::setw(10)
132 // << (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
133 // G4cout << G4endl;
134  }
135 
136 // G4cout << " :-----------------------------"
137 // << "----------------------------------"
138 // << "-- EndOf2ndaries Info ---------------"
139 // << G4endl;
140  }
141  }
142 
143  }
144  G4cout.precision(prec);
145 }
void QweakSimSteppingVerbose::TrackingStarted ( )

Definition at line 149 of file QweakSimSteppingVerbose.cc.

150 {
151 
152  CopyState();
153 
154  G4int prec = G4cout.precision(3);
155 
156  if( verboseLevel > 0 ){
157 
158 // G4cout << std::setw( 5) << "Step#" << " "
159 // << std::setw( 6) << "X" << " "
160 // << std::setw( 6) << "Y" << " "
161 // << std::setw( 6) << "Z" << " "
162 // << std::setw( 9) << "KineE" << " "
163 // << std::setw( 9) << "dEStep" << " "
164 // << std::setw(10) << "StepLeng"
165 // << std::setw(10) << "TrakLeng"
166 // << std::setw(10) << "Volume" << " "
167 // << std::setw(10) << "Process" << G4endl;
168 
169 // G4cout << std::setw(5) << fTrack->GetCurrentStepNumber() << " "
170 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
171 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
172 // << std::setw(6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
173 // << std::setw(6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
174 // << std::setw(6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
175 // << std::setw(6) << G4BestUnit(fStep->GetStepLength(),"Length")
176 // << std::setw(6) << G4BestUnit(fTrack->GetTrackLength(),"Length")
177 // << " ";
178 
179  if(fTrack->GetNextVolume()){
180  // G4cout << std::setw(10) << fTrack->GetVolume()->GetName();
181  } else {
182  // G4cout << std::setw(10) << "OutOfWorld";
183  }
184 
185  // G4cout << " initStep" << G4endl;
186 
187  } // end if ( verboseLevel > 0 )
188 
189  G4cout.precision(prec);
190 }

The documentation for this class was generated from the following files: