Changeset 1340 for trunk/source/digits_hits/scorer/src/G4PSTermination.cc
- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/digits_hits/scorer/src/G4PSTermination.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4PSTermination.cc,v 1. 2 2007/12/10 16:29:42 gunterExp $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: $ 29 29 // 30 30 // G4PSTermination … … 37 37 // 38 38 // Created: 2007-02-02 Tsukasa ASO, Akinori Kimura. 39 // 2010-07-22 Introduce Unit specification. 39 40 // 40 41 /////////////////////////////////////////////////////////////////////////////// … … 42 43 G4PSTermination::G4PSTermination(G4String name, G4int depth) 43 44 :G4VPrimitiveScorer(name,depth),HCID(-1),weighted(false) 44 {;} 45 { 46 SetUnit(""); 47 } 45 48 46 49 G4PSTermination::~G4PSTermination() … … 88 91 } 89 92 93 void 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.