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

#include <G4VUserTrackInformation.hh>

+ Inheritance diagram for G4VUserTrackInformation:

Public Member Functions

 G4VUserTrackInformation ()
 
 G4VUserTrackInformation (const G4String &infoType)
 
 G4VUserTrackInformation (const G4VUserTrackInformation &)
 
G4VUserTrackInformationoperator= (const G4VUserTrackInformation &)
 
virtual ~G4VUserTrackInformation ()
 
virtual void Print () const
 
const G4StringGetType () const
 

Protected Attributes

G4StringpType
 

Detailed Description

Definition at line 60 of file G4VUserTrackInformation.hh.

Constructor & Destructor Documentation

◆ G4VUserTrackInformation() [1/3]

G4VUserTrackInformation::G4VUserTrackInformation ( )

Definition at line 34 of file G4VUserTrackInformation.cc.

35 : pType(0)
36{;}

◆ G4VUserTrackInformation() [2/3]

G4VUserTrackInformation::G4VUserTrackInformation ( const G4String infoType)

Definition at line 38 of file G4VUserTrackInformation.cc.

39{
40 pType = new G4String(infoType) ;
41}

◆ G4VUserTrackInformation() [3/3]

G4VUserTrackInformation::G4VUserTrackInformation ( const G4VUserTrackInformation right)

Definition at line 48 of file G4VUserTrackInformation.cc.

49 :pType(0)
50{
51 if (right.pType!=0) pType = new G4String(*(right.pType));
52}

◆ ~G4VUserTrackInformation()

G4VUserTrackInformation::~G4VUserTrackInformation ( )
virtual

Definition at line 43 of file G4VUserTrackInformation.cc.

44{
45 if (pType!=0) delete pType;
46}

Member Function Documentation

◆ GetType()

const G4String & G4VUserTrackInformation::GetType ( ) const

Definition at line 66 of file G4VUserTrackInformation.cc.

67{
68 static const G4String NOTYPE="NONE";
69 if(pType!=0) return *pType;
70 else return NOTYPE;
71}

◆ operator=()

G4VUserTrackInformation & G4VUserTrackInformation::operator= ( const G4VUserTrackInformation right)

Definition at line 55 of file G4VUserTrackInformation.cc.

56{
57 if (this != &right) {
58 if (pType !=0) delete pType;
59 if (right.pType) pType = new G4String(*(right.pType));
60 else pType=0;
61 }
62 return *this;
63}

◆ Print()

virtual void G4VUserTrackInformation::Print ( ) const
inlinevirtual

Reimplemented in G4IT.

Definition at line 74 of file G4VUserTrackInformation.hh.

74{};

Member Data Documentation

◆ pType

G4String* G4VUserTrackInformation::pType
protected

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