Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/digits_hits/scorer/src/G4PSTermination.cc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4PSTermination.cc,v 1.2 2007/12/10 16:29:42 gunter Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     27// $Id: G4PSTermination.cc,v 1.5 2010/07/23 04:35:38 taso Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030// G4PSTermination
     
    3737//
    3838// Created: 2007-02-02  Tsukasa ASO, Akinori Kimura.
     39// 2010-07-22   Introduce Unit specification.
    3940//
    4041///////////////////////////////////////////////////////////////////////////////
     
    4243G4PSTermination::G4PSTermination(G4String name, G4int depth)
    4344  :G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false)
    44 {;}
     45{
     46    SetUnit("");
     47}
    4548
    4649G4PSTermination::~G4PSTermination()
     
    8891}
    8992
     93void G4PSTermination::SetUnit(const G4String& unit)
     94{
     95  if (unit == "" ){
     96    unitName = unit;
     97    unitValue = 1.0;
     98  }else{
     99      G4String msg = "Invalid unit ["+unit+"] (Current  unit is [" +GetUnit()+"] )";
     100      G4Exception(GetName(),"DetScorer0000",JustWarning,msg);
     101  }
     102
     103}
     104
Note: See TracChangeset for help on using the changeset viewer.