Changeset 1315 for trunk/source/track


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

Location:
trunk/source/track
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/track/History

    r1196 r1315  
    1 $Id: History,v 1.107 2009/10/19 09:37:00 kurasige Exp $
     1$Id: History,v 1.108 2010/03/09 02:49:44 kurasige Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19Mar. 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
    1925Oct. 19, 2009 Hisaya Kurashige (track-V09-02-04)
    20 added a string prooperty to indicate type of UserTrackInformation
     26-added a string prooperty to indicate type of UserTrackInformation
    2127
    2228
    2329June 18, 2009 Hisaya Kurashige (track-V09-02-03)
    24 added SetLowEnergyLimit method (Vladimir)
     30-added SetLowEnergyLimit method (Vladimir)
    2531
    2632
  • trunk/source/track/include/G4VUserTrackInformation.hh

    r1196 r1315  
    2525//
    2626//
    27 // $Id: G4VUserTrackInformation.hh,v 1.8 2009/10/19 17:11:43 kurasige Exp $
    28 // GEANT4 tag $Name: geant4-09-03-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 $
    2929//
    3030//
     
    6969    virtual ~G4VUserTrackInformation();
    7070
    71     virtual void Print() const = 0;
     71    virtual void Print() const {};
    7272   
    7373    const G4String& GetType() const;
     
    7575 
    7676  protected:
    77     G4String fType;   
     77    G4String* pType;   
    7878};
    7979
    80 inline
    81  const G4String& G4VUserTrackInformation::GetType() const
    82 {
    83   return fType;
    84 }
    85    
    8680#endif
    8781
  • 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.