Geant4-11
Public Member Functions | Protected Attributes | Private Attributes
G4ITTrackingInteractivity Class Reference

#include <G4ITTrackingInteractivity.hh>

Public Member Functions

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

Protected Attributes

int fVerboseLevel
 

Private Attributes

G4VITSteppingVerbosefpVerbose
 

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 {
73 }
74}

References fpVerbose, and fVerboseLevel.

◆ ~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}

References fpVerbose, and G4VITSteppingVerbose::GetVerbose().

◆ GetVerboseLevel()

G4int G4ITTrackingInteractivity::GetVerboseLevel ( ) const
inline

Definition at line 104 of file G4ITTrackingInteractivity.hh.

105 {
106 return fVerboseLevel;
107 }

References fVerboseLevel.

◆ 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 }

References fpVerbose.

◆ SetSteppingVerboseLevel()

void G4ITTrackingInteractivity::SetSteppingVerboseLevel ( G4int  level)

Definition at line 76 of file G4ITTrackingInteractivity.cc.

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

References fpVerbose, and G4VITSteppingVerbose::SetVerbose().

◆ SetVerbose()

void G4ITTrackingInteractivity::SetVerbose ( int  flag)
inline

Definition at line 99 of file G4ITTrackingInteractivity.hh.

100 {
101 fVerboseLevel = flag;
102 }

References fVerboseLevel.

◆ 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

References G4cout, G4endl, G4Track::GetDefinition(), G4Track::GetParentID(), G4ParticleDefinition::GetParticleName(), and G4Track::GetTrackID().

Field Documentation

◆ fpVerbose

G4VITSteppingVerbose* G4ITTrackingInteractivity::fpVerbose
private

◆ fVerboseLevel

int G4ITTrackingInteractivity::fVerboseLevel
protected

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