Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/track/src/G4VUserTrackInformation.cc

    r1196 r1315  
    2525//
    2626//
    27 // $Id: G4VUserTrackInformation.cc,v 1.3 2009/10/19 09:37:00 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-03-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 $
    2929//
    3030//
     
    3434
    3535G4VUserTrackInformation::G4VUserTrackInformation()
    36   : fType("NONE")
     36  : pType(0)
    3737{;}
    3838
    3939G4VUserTrackInformation::G4VUserTrackInformation(const G4String& infoType)
    40   : fType(infoType)
    41 {;}
     40{
     41  pType = new G4String(infoType) ;
     42}
    4243
    4344G4VUserTrackInformation::~G4VUserTrackInformation()
    44 {;}
     45{
     46  if (pType!=0) delete pType;
     47}
     48
     49const 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.