Changeset 1315 for trunk/source/track/src
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/src/G4VUserTrackInformation.cc
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4VUserTrackInformation.cc,v 1. 3 2009/10/19 09:37:00kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4VUserTrackInformation.cc,v 1.4 2010/03/09 02:49:44 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 34 34 35 35 G4VUserTrackInformation::G4VUserTrackInformation() 36 : fType("NONE")36 : pType(0) 37 37 {;} 38 38 39 39 G4VUserTrackInformation::G4VUserTrackInformation(const G4String& infoType) 40 : fType(infoType) 41 {;} 40 { 41 pType = new G4String(infoType) ; 42 } 42 43 43 44 G4VUserTrackInformation::~G4VUserTrackInformation() 44 {;} 45 { 46 if (pType!=0) delete pType; 47 } 48 49 const G4String& G4VUserTrackInformation::GetType() const 50 { 51 static const G4String NOTYPE="NONE"; 52 if(pType!=0) return *pType; 53 else return NOTYPE; 54 } 55
Note: See TracChangeset
for help on using the changeset viewer.