Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ITTrackingInteractivity Class Reference

#include <G4ITTrackingInteractivity.hh>

Public Member Functions

 G4ITTrackingInteractivity (G4VITSteppingVerbose *verbose=0)
 
virtual ~G4ITTrackingInteractivity ()
 
virtual void Initialize ()
 
virtual void StartTracking (G4Track *)
 
virtual void AppendStep (G4Track *, G4Step *)
 
virtual void EndTracking (G4Track *)
 
virtual void Finalize ()
 
virtual void TrackBanner (G4Track *, const G4String &message="")
 
void SetVerbose (int flag)
 
G4int GetVerboseLevel () const
 
void SetSteppingVerboseLevel (G4int level)
 
G4int GetSteppingVerboseLevel () const
 
G4VITSteppingVerboseGetSteppingVerbose ()
 
void SetSteppingVerbose (G4VITSteppingVerbose *verbose)
 

Protected Attributes

int fVerboseLevel
 

Detailed Description

Definition at line 57 of file G4ITTrackingInteractivity.hh.

Constructor & Destructor Documentation

◆ G4ITTrackingInteractivity()

G4ITTrackingInteractivity::G4ITTrackingInteractivity ( G4VITSteppingVerbose verbose = 0)

Definition at line 63 of file G4ITTrackingInteractivity.cc.

64{
65 fVerboseLevel = 0;
66 if(verbose)
67 {
68 fpVerbose = verbose;
69 }
70 else
71 {
72 fpVerbose = new G4ITSteppingVerbose();
73 }
74}

◆ ~G4ITTrackingInteractivity()

virtual G4ITTrackingInteractivity::~G4ITTrackingInteractivity ( )
inlinevirtual

Definition at line 65 of file G4ITTrackingInteractivity.hh.

66 {
67 ;
68 }

Member Function Documentation

◆ AppendStep()

virtual void G4ITTrackingInteractivity::AppendStep ( G4Track ,
G4Step  
)
inlinevirtual

Definition at line 80 of file G4ITTrackingInteractivity.hh.

82 {
83 ;
84 }

Referenced by G4ITTrackingManager::AppendStep().

◆ EndTracking()

virtual void G4ITTrackingInteractivity::EndTracking ( G4Track )
inlinevirtual

◆ Finalize()

virtual void G4ITTrackingInteractivity::Finalize ( )
inlinevirtual

Definition at line 91 of file G4ITTrackingInteractivity.hh.

92 {
93 ;
94 }

Referenced by G4Scheduler::Process().

◆ GetSteppingVerbose()

G4VITSteppingVerbose * G4ITTrackingInteractivity::GetSteppingVerbose ( )
inline

◆ GetSteppingVerboseLevel()

G4int G4ITTrackingInteractivity::GetSteppingVerboseLevel ( ) const

Definition at line 91 of file G4ITTrackingInteractivity.cc.

92{
93 return fpVerbose->GetVerbose();
94}

◆ GetVerboseLevel()

G4int G4ITTrackingInteractivity::GetVerboseLevel ( ) const
inline

Definition at line 104 of file G4ITTrackingInteractivity.hh.

105 {
106 return fVerboseLevel;
107 }

◆ Initialize()

virtual void G4ITTrackingInteractivity::Initialize ( )
inlinevirtual

Definition at line 70 of file G4ITTrackingInteractivity.hh.

71 {
72 ;
73 }

Referenced by G4Scheduler::Process().

◆ SetSteppingVerbose()

void G4ITTrackingInteractivity::SetSteppingVerbose ( G4VITSteppingVerbose verbose)
inline

Definition at line 117 of file G4ITTrackingInteractivity.hh.

118 {
119 fpVerbose = verbose;
120 }

◆ SetSteppingVerboseLevel()

void G4ITTrackingInteractivity::SetSteppingVerboseLevel ( G4int  level)

Definition at line 76 of file G4ITTrackingInteractivity.cc.

77{
78 fpVerbose->SetVerbose(level);
79}

◆ SetVerbose()

void G4ITTrackingInteractivity::SetVerbose ( int  flag)
inline

Definition at line 99 of file G4ITTrackingInteractivity.hh.

100 {
101 fVerboseLevel = flag;
102 }

◆ StartTracking()

virtual void G4ITTrackingInteractivity::StartTracking ( G4Track )
inlinevirtual

Definition at line 75 of file G4ITTrackingInteractivity.hh.

76 {
77
78 }

Referenced by G4ITTrackingManager::StartTracking().

◆ TrackBanner()

void G4ITTrackingInteractivity::TrackBanner ( G4Track track,
const G4String message = "" 
)
virtual

Definition at line 42 of file G4ITTrackingInteractivity.cc.

43{
44 G4cout << G4endl;
45 G4cout << "*******************************************************"
46 << "**************************************************"
47 << G4endl;
48 if(message != "")
49 G4cout << message ;
50 G4cout << " * G4Track Information: "
51 << " Particle : " << track->GetDefinition()->GetParticleName()
52 << ","
53 << " Track ID : " << track->GetTrackID()
54 << ","
55 << " Parent ID : " << track->GetParentID()
56 << G4endl;
57 G4cout << "*******************************************************"
58 << "**************************************************"
59 << G4endl;
60 G4cout << G4endl;
61}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout
const G4String & GetParticleName() const
G4int GetTrackID() const
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const

Member Data Documentation

◆ fVerboseLevel

int G4ITTrackingInteractivity::fVerboseLevel
protected

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