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/G4PSMinKinEAtGeneration.cc

    r1337 r1340  
    2525//
    2626//
    27 // $Id: G4PSMinKinEAtGeneration.cc,v 1.1 2007/07/11 01:31:02 asaim Exp $
    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: $
    2929//
    3030// G4PSMinKinEAtGeneration
     
    3737//
    3838// Created: 2005-11-17  Tsukasa ASO, Akinori Kimura.
     39// 2010-07-22   Introduce Unit specification.
    3940//
    4041
    4142G4PSMinKinEAtGeneration::G4PSMinKinEAtGeneration(G4String name, G4int depth)
    4243  :G4VPrimitiveScorer(name,depth),HCID(-1)
    43 {;}
     44{
     45    SetUnit("MeV");
     46}
     47
     48G4PSMinKinEAtGeneration::G4PSMinKinEAtGeneration(G4String name,
     49                                                 const G4String& unit,
     50                                                 G4int depth)
     51  :G4VPrimitiveScorer(name,depth),HCID(-1)
     52{
     53    SetUnit(unit);
     54}
    4455
    4556G4PSMinKinEAtGeneration::~G4PSMinKinEAtGeneration()
     
    110121  for(; itr != EvtMap->GetMap()->end(); itr++) {
    111122    G4cout << "  copy no.: " << itr->first
    112            << "  num of step: " << G4BestUnit(*(itr->second),"Energy")
     123           << "  num of step: " << *(itr->second)/GetUnitValue()
     124           << " ["<<GetUnit()<<"]"
    113125           << G4endl;
    114126  }
    115127}
    116128
     129void G4PSMinKinEAtGeneration::SetUnit(const G4String& unit)
     130{
     131    CheckAndSetUnit(unit,"Energy");
     132}
     133
     134
Note: See TracChangeset for help on using the changeset viewer.