Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4VUserTrackInformation Class Reference

#include <G4VUserTrackInformation.hh>

Inheritance diagram for G4VUserTrackInformation:
Collaboration 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::G4VUserTrackInformation ( )

Definition at line 34 of file G4VUserTrackInformation.cc.

35  : pType(0)
36 {;}
G4VUserTrackInformation::G4VUserTrackInformation ( const G4String infoType)

Definition at line 38 of file G4VUserTrackInformation.cc.

39 {
40  pType = new G4String(infoType) ;
41 }
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 ( )
virtual

Definition at line 43 of file G4VUserTrackInformation.cc.

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

Member Function Documentation

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 }

Here is the caller graph for this function:

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 }

Here is the caller graph for this function:

virtual void G4VUserTrackInformation::Print ( ) const
inlinevirtual

Reimplemented in G4Molecule, G4IT, and G4ScintillationTrackInformation.

Definition at line 74 of file G4VUserTrackInformation.hh.

74 {};

Member Data Documentation

G4String* G4VUserTrackInformation::pType
protected

Definition at line 80 of file G4VUserTrackInformation.hh.


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