- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/digits_hits/scorer/src/G4PSMinKinEAtGeneration.cc
r1337 r1340 25 25 // 26 26 // 27 // $Id: G4PSMinKinEAtGeneration.cc,v 1. 1 2007/07/11 01:31:02 asaimExp $28 // GEANT4 tag $Name: geant4-09-04-beta-01$27 // $Id: G4PSMinKinEAtGeneration.cc,v 1.2 2010/07/22 07:23:45 taso Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // G4PSMinKinEAtGeneration … … 37 37 // 38 38 // Created: 2005-11-17 Tsukasa ASO, Akinori Kimura. 39 // 2010-07-22 Introduce Unit specification. 39 40 // 40 41 41 42 G4PSMinKinEAtGeneration::G4PSMinKinEAtGeneration(G4String name, G4int depth) 42 43 :G4VPrimitiveScorer(name,depth),HCID(-1) 43 {;} 44 { 45 SetUnit("MeV"); 46 } 47 48 G4PSMinKinEAtGeneration::G4PSMinKinEAtGeneration(G4String name, 49 const G4String& unit, 50 G4int depth) 51 :G4VPrimitiveScorer(name,depth),HCID(-1) 52 { 53 SetUnit(unit); 54 } 44 55 45 56 G4PSMinKinEAtGeneration::~G4PSMinKinEAtGeneration() … … 110 121 for(; itr != EvtMap->GetMap()->end(); itr++) { 111 122 G4cout << " copy no.: " << itr->first 112 << " num of step: " << G4BestUnit(*(itr->second),"Energy") 123 << " num of step: " << *(itr->second)/GetUnitValue() 124 << " ["<<GetUnit()<<"]" 113 125 << G4endl; 114 126 } 115 127 } 116 128 129 void G4PSMinKinEAtGeneration::SetUnit(const G4String& unit) 130 { 131 CheckAndSetUnit(unit,"Energy"); 132 } 133 134
Note: See TracChangeset
for help on using the changeset viewer.