Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FCALSteppingVerbose Class Reference

#include <FCALSteppingVerbose.hh>

Inheritance diagram for FCALSteppingVerbose:
Collaboration diagram for FCALSteppingVerbose:

Public Member Functions

 FCALSteppingVerbose ()
 
 ~FCALSteppingVerbose ()
 
void StepInfo ()
 
void TrackingStarted ()
 
- Public Member Functions inherited from G4SteppingVerbose
 G4SteppingVerbose ()
 
 ~G4SteppingVerbose ()
 
void NewStep ()
 
void AtRestDoItInvoked ()
 
void AlongStepDoItAllDone ()
 
void PostStepDoItAllDone ()
 
void AlongStepDoItOneByOne ()
 
void PostStepDoItOneByOne ()
 
void StepInfo ()
 
void TrackingStarted ()
 
void DPSLStarted ()
 
void DPSLUserLimit ()
 
void DPSLPostStep ()
 
void DPSLAlongStep ()
 
void VerboseTrack ()
 
void VerboseParticleChange ()
 
void ShowStep () const
 
- Public Member Functions inherited from G4VSteppingVerbose
virtual ~G4VSteppingVerbose ()
 
void CopyState ()
 
void SetManager (G4SteppingManager *const)
 

Additional Inherited Members

- Static Public Member Functions inherited from G4VSteppingVerbose
static void SetInstance (G4VSteppingVerbose *Instance)
 
static G4VSteppingVerboseGetInstance ()
 
static G4int GetSilent ()
 
static void SetSilent (G4int fSilent)
 
static G4int GetSilentStepInfo ()
 
static void SetSilentStepInfo (G4int fSilent)
 
- Protected Types inherited from G4VSteppingVerbose
typedef std::vector< G4intG4SelectedAtRestDoItVector
 
typedef std::vector< G4intG4SelectedAlongStepDoItVector
 
typedef std::vector< G4intG4SelectedPostStepDoItVector
 
- Protected Member Functions inherited from G4VSteppingVerbose
 G4VSteppingVerbose ()
 
- Protected Attributes inherited from G4VSteppingVerbose
G4SteppingManagerfManager
 
G4UserSteppingActionfUserSteppingAction
 
G4double PhysicalStep
 
G4double GeometricalStep
 
G4double CorrectedStep
 
G4bool PreStepPointIsGeom
 
G4bool FirstStep
 
G4StepStatus fStepStatus
 
G4double TempInitVelocity
 
G4double TempVelocity
 
G4double Mass
 
G4double sumEnergyChange
 
G4VParticleChangefParticleChange
 
G4TrackfTrack
 
G4TrackVectorfSecondary
 
G4StepfStep
 
G4StepPointfPreStepPoint
 
G4StepPointfPostStepPoint
 
G4VPhysicalVolumefCurrentVolume
 
G4VSensitiveDetectorfSensitive
 
G4VProcessfCurrentProcess
 
G4ProcessVectorfAtRestDoItVector
 
G4ProcessVectorfAlongStepDoItVector
 
G4ProcessVectorfPostStepDoItVector
 
G4ProcessVectorfAtRestGetPhysIntVector
 
G4ProcessVectorfAlongStepGetPhysIntVector
 
G4ProcessVectorfPostStepGetPhysIntVector
 
size_t MAXofAtRestLoops
 
size_t MAXofAlongStepLoops
 
size_t MAXofPostStepLoops
 
G4double currentMinimumStep
 
G4double numberOfInteractionLengthLeft
 
size_t fAtRestDoItProcTriggered
 
size_t fAlongStepDoItProcTriggered
 
size_t fPostStepDoItProcTriggered
 
G4int fN2ndariesAtRestDoIt
 
G4int fN2ndariesAlongStepDoIt
 
G4int fN2ndariesPostStepDoIt
 
G4NavigatorfNavigator
 
G4int verboseLevel
 
G4SelectedAtRestDoItVectorfSelectedAtRestDoItVector
 
G4SelectedAlongStepDoItVectorfSelectedAlongStepDoItVector
 
G4SelectedPostStepDoItVectorfSelectedPostStepDoItVector
 
G4double fPreviousStepSize
 
G4TouchableHandle fTouchableHandle
 
G4SteppingControl StepControlFlag
 
G4double physIntLength
 
G4ForceCondition fCondition
 
G4GPILSelection fGPILSelection
 
- Static Protected Attributes inherited from G4VSteppingVerbose
static G4ThreadLocal
G4VSteppingVerbose
fInstance = 0
 
static G4ThreadLocal G4int Silent = 0
 
static G4ThreadLocal G4int SilentStepInfo = 0
 

Detailed Description

Definition at line 46 of file FCALSteppingVerbose.hh.

Constructor & Destructor Documentation

FCALSteppingVerbose::FCALSteppingVerbose ( )

Definition at line 45 of file FCALSteppingVerbose.cc.

47 {
48 }
FCALSteppingVerbose::~FCALSteppingVerbose ( )

Definition at line 51 of file FCALSteppingVerbose.cc.

53 {
54 }

Member Function Documentation

void FCALSteppingVerbose::StepInfo ( )
virtual

Implements G4VSteppingVerbose.

Definition at line 57 of file FCALSteppingVerbose.cc.

59 {
60  CopyState();
61 
62  std::streamsize prec = G4cout.precision(3);
63 
64  if( verboseLevel >= 1 ){
65  if( verboseLevel >= 4 ) VerboseTrack();
66  if( verboseLevel >= 3 ){
67  G4cout << G4endl;
68  G4cout << std::setw( 5) << "#Step#" << " "
69  << std::setw( 6) << "X" << " "
70  << std::setw( 6) << "Y" << " "
71  << std::setw( 6) << "Z" << " "
72  << std::setw( 9) << "KineE" << " "
73  << std::setw( 9) << "dEStep" << " "
74  << std::setw(10) << "StepLeng"
75  << std::setw(10) << "TrakLeng"
76  << std::setw(10) << "NextVolu"
77  << std::setw(10) << "Process" << G4endl;
78  }
79 
80  G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
81  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
82  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
83  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
84  << std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
85  << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
86  << std::setw( 6) << G4BestUnit(fStep->GetStepLength(),"Length")
87  << std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
88 
89  // if( fStepStatus != fWorldBoundary){
90  if( fTrack->GetNextVolume() != 0 ) {
91  G4cout << std::setw(10) << fTrack->GetNextVolume()->GetName();
92  } else {
93  G4cout << std::setw(10) << "OutOfWorld";
94  }
95 
97  G4cout << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
98  ->GetProcessName();
99  } else {
100  G4cout << "User Limit";
101  }
102 
103  G4cout << G4endl;
104 
105  if( verboseLevel == 2 ){
106  G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
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 }
G4double GetStepLength() const
double x() const
const G4ThreeVector & GetPosition() const
tuple x
Definition: test.py:50
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
int G4int
Definition: G4Types.hh:78
double z() const
G4VPhysicalVolume * GetNextVolume() const
static const double prec
Definition: RanecuEngine.cc:58
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
G4TrackVector * fSecondary
const G4String & GetName() const
const G4String & GetProcessName() const
Definition: G4VProcess.hh:408
G4double GetTotalEnergyDeposit() const
G4double GetTrackLength() const
const G4VProcess * GetProcessDefinedStep() const
G4StepPoint * GetPostStepPoint() const
double y() const
tuple z
Definition: test.py:28
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void FCALSteppingVerbose::TrackingStarted ( )
virtual

Implements G4VSteppingVerbose.

Definition at line 148 of file FCALSteppingVerbose.cc.

150 {
151 
152  CopyState();
153  std::streamsize prec = G4cout.precision(3);
154  if( verboseLevel > 0 ){
155 
156  G4cout << std::setw( 5) << "Step#" << " "
157  << std::setw( 6) << "X" << " "
158  << std::setw( 6) << "Y" << " "
159  << std::setw( 6) << "Z" << " "
160  << std::setw( 9) << "KineE" << " "
161  << std::setw( 9) << "dEStep" << " "
162  << std::setw(10) << "StepLeng"
163  << std::setw(10) << "TrakLeng"
164  << std::setw(10) << "NextVolu"
165  << std::setw(10) << "Process" << G4endl;
166 
167  G4cout << std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
168  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
169  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
170  << std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
171  << std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
172  << std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
173  << std::setw( 6) << G4BestUnit(fStep->GetStepLength(),"Length")
174  << std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
175 
176  if(fTrack->GetNextVolume()){
177  G4cout << std::setw(10) << fTrack->GetNextVolume()->GetName() << " ";
178  } else {
179  G4cout << std::setw(10) << "OutOfWorld" << " ";
180  }
181  G4cout << std::setw(10) << "initStep" << G4endl;
182  }
183  G4cout.precision(prec);
184 }
G4double GetStepLength() const
double x() const
const G4ThreeVector & GetPosition() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
double z() const
G4VPhysicalVolume * GetNextVolume() const
static const double prec
Definition: RanecuEngine.cc:58
G4double GetKineticEnergy() const
G4GLOB_DLL std::ostream G4cout
G4int GetCurrentStepNumber() const
const G4String & GetName() const
G4double GetTotalEnergyDeposit() const
G4double GetTrackLength() const
double y() const
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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