37 TMCVerbose::TMCVerbose(Int_t level)
47 TMCVerbose::TMCVerbose()
57 TMCVerbose::~TMCVerbose()
68 void TMCVerbose::PrintBanner()
const
70 std::cout << std::endl;
71 for (Int_t i=0; i<10; i++) std::cout <<
"**********";
72 std::cout << std::endl;
78 void TMCVerbose::PrintTrackInfo()
const
82 std::cout <<
" Particle = ";
83 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(gMC->TrackPid());
85 std::cout << particle->GetName() <<
" ";
87 std::cout <<
"unknown" <<
" ";
91 std::cout <<
" Track ID = " << gMC->GetStack()->GetCurrentTrackNumber() <<
" ";
95 std::cout <<
" Parent ID = " << gMC->GetStack()->GetCurrentParentTrackNumber();
101 void TMCVerbose::PrintStepHeader()
const
103 std::cout <<
"Step# "
123 void TMCVerbose::InitMC()
126 std::cout <<
"--- Init MC " << std::endl;
132 void TMCVerbose::RunMC(Int_t nofEvents)
135 std::cout <<
"--- Run MC for " << nofEvents <<
" events" << std::endl;
141 void TMCVerbose::FinishRun()
144 std::cout <<
"--- Finish Run MC " << std::endl;
150 void TMCVerbose::ConstructGeometry()
153 std::cout <<
"--- Construct geometry " << std::endl;
159 void TMCVerbose::ConstructOpGeometry()
162 std::cout <<
"--- Construct geometry for optical processes" << std::endl;
168 void TMCVerbose::InitGeometry()
171 std::cout <<
"--- Init geometry " << std::endl;
177 void TMCVerbose::AddParticles()
180 std::cout <<
"--- Add particles " << std::endl;
186 void TMCVerbose::AddIons()
189 std::cout <<
"--- Add ions " << std::endl;
195 void TMCVerbose::GeneratePrimaries()
198 std::cout <<
"--- Generate primaries " << std::endl;
204 void TMCVerbose::BeginEvent()
207 std::cout <<
"--- Begin event " << std::endl;
213 void TMCVerbose::BeginPrimary()
216 std::cout <<
"--- Begin primary " << std::endl;
222 void TMCVerbose::PreTrack()
236 std::cout <<
"--- Pre track " << std::endl;
242 void TMCVerbose::Stepping()
247 std::cout << std::fixed;
253 std::cout <<
"#" << std::setw(4) << fStepNumber++ <<
" ";
258 gMC->TrackPosition(x, y, z);
259 std::cout << std::setw(8) << std::setprecision(3) << x <<
" "
260 << std::setw(8) << std::setprecision(3) << y <<
" "
261 << std::setw(8) << std::setprecision(3) << z <<
" ";
265 Double_t px, py, pz, etot;
266 gMC->TrackMomentum(px, py, pz, etot);
267 Double_t ekin = etot - gMC->TrackMass();
268 std::cout << std::setw(9) << std::setprecision(4) << ekin*1e03 <<
" ";
272 std::cout << std::setw(9) << std::setprecision(4) << gMC->Edep()*1e03 <<
" ";
276 std::cout << std::setw(8) << std::setprecision(3) << gMC->TrackStep() <<
" ";
280 std::cout << std::setw(8) << std::setprecision(3) << gMC->TrackLength() <<
" ";
284 if (gMC->CurrentVolName() != 0)
285 std::cout << std::setw(4) << gMC->CurrentVolName() <<
" ";
287 std::cout << std::setw(4) <<
"None" <<
" ";
292 Int_t nofProcesses = gMC->StepProcesses(processes);
293 if (nofProcesses > 0)
294 std::cout << TMCProcessName[processes[nofProcesses-1]];
296 std::cout << std::endl;
303 void TMCVerbose::PostTrack()
306 std::cout <<
"--- Post track " << std::endl;
312 void TMCVerbose::FinishPrimary()
315 std::cout <<
"--- Finish primary " << std::endl;
321 void TMCVerbose::EndOfEvent()
324 std::cout <<
"--- End of event " << std::endl;
330 void TMCVerbose::FinishEvent()
333 std::cout <<
"--- Finish event " << std::endl;