Changeset 1315 for trunk/source/track
- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- Location:
- trunk/source/track
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/track/History
r1196 r1315 1 $Id: History,v 1.10 7 2009/10/19 09:37:00kurasige Exp $1 $Id: History,v 1.108 2010/03/09 02:49:44 kurasige Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 Mar. 9, 2010 Hisaya Kurashige (track-V09-03-00) 20 - Change G4String to a pointer of G4String 21 for prooperty to indicate type of UserTrackInformation 22 - Change G4VUserTrackInformation::Print() to a simple virtual method 23 form pure-virtual 24 19 25 Oct. 19, 2009 Hisaya Kurashige (track-V09-02-04) 20 added a string prooperty to indicate type of UserTrackInformation26 -added a string prooperty to indicate type of UserTrackInformation 21 27 22 28 23 29 June 18, 2009 Hisaya Kurashige (track-V09-02-03) 24 added SetLowEnergyLimit method (Vladimir)30 -added SetLowEnergyLimit method (Vladimir) 25 31 26 32 -
trunk/source/track/include/G4VUserTrackInformation.hh
r1196 r1315 25 25 // 26 26 // 27 // $Id: G4VUserTrackInformation.hh,v 1. 8 2009/10/19 17:11:43kurasige Exp $28 // GEANT4 tag $Name: geant4-09-0 3-cand-01 $27 // $Id: G4VUserTrackInformation.hh,v 1.9 2010/03/09 02:49:44 kurasige Exp $ 28 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 29 29 // 30 30 // … … 69 69 virtual ~G4VUserTrackInformation(); 70 70 71 virtual void Print() const = 0;71 virtual void Print() const {}; 72 72 73 73 const G4String& GetType() const; … … 75 75 76 76 protected: 77 G4String fType;77 G4String* pType; 78 78 }; 79 79 80 inline81 const G4String& G4VUserTrackInformation::GetType() const82 {83 return fType;84 }85 86 80 #endif 87 81 -
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.