G4VUserTrackInformation Class Reference

#include <G4VUserTrackInformation.hh>

Inheritance diagram for G4VUserTrackInformation:

G4IT G4Molecule

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.

00035   : pType(0)
00036 {;}

G4VUserTrackInformation::G4VUserTrackInformation ( const G4String infoType  ) 

Definition at line 38 of file G4VUserTrackInformation.cc.

References pType.

00039 { 
00040   pType = new G4String(infoType) ;
00041 }

G4VUserTrackInformation::G4VUserTrackInformation ( const G4VUserTrackInformation  ) 

Definition at line 48 of file G4VUserTrackInformation.cc.

References pType.

00049   :pType(0)
00050 {
00051   if (right.pType!=0)  pType = new G4String(*(right.pType));
00052 }

G4VUserTrackInformation::~G4VUserTrackInformation (  )  [virtual]

Definition at line 43 of file G4VUserTrackInformation.cc.

References pType.

00044 {
00045   if (pType!=0) delete pType;
00046 }


Member Function Documentation

const G4String & G4VUserTrackInformation::GetType (  )  const

Definition at line 66 of file G4VUserTrackInformation.cc.

References pType.

00067 {
00068   static const G4String NOTYPE="NONE";
00069   if(pType!=0) return *pType;
00070   else return NOTYPE;
00071 }

G4VUserTrackInformation & G4VUserTrackInformation::operator= ( const G4VUserTrackInformation  ) 

Definition at line 55 of file G4VUserTrackInformation.cc.

References pType.

00056 {
00057   if (this != &right) {
00058     if (pType !=0) delete pType;
00059     if (right.pType) pType = new G4String(*(right.pType));
00060     else pType=0;
00061   }
00062   return *this;
00063 }

virtual void G4VUserTrackInformation::Print (  )  const [inline, virtual]

Reimplemented in G4IT.

Definition at line 74 of file G4VUserTrackInformation.hh.

00074 {};


Field Documentation

G4String* G4VUserTrackInformation::pType [protected]

Definition at line 80 of file G4VUserTrackInformation.hh.

Referenced by G4VUserTrackInformation(), GetType(), operator=(), and ~G4VUserTrackInformation().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:58 2013 for Geant4 by  doxygen 1.4.7