src/BDSEnergyCounterHit.cc

00001 /* BDSIM code.    Version 1.0
00002    Author: Grahame A. Blair, Royal Holloway, Univ. of London.
00003    Last modified 24.7.2002
00004    Copyright (c) 2002 by G.A.Blair.  ALL RIGHTS RESERVED. 
00005 */
00006 
00007 #include "BDSEnergyCounterHit.hh"
00008 #include "G4ios.hh"
00009 
00010 G4Allocator<BDSEnergyCounterHit> BDSEnergyCounterHitAllocator;
00011 
00012 BDSEnergyCounterHit::  BDSEnergyCounterHit(G4int nCopy, G4double Energy, G4double x, G4double y, G4double z, G4String name, G4int partID, G4double weight, G4bool precisionRegion):
00013   itsEnergy(Energy*weight), itsEnergyWeightedX(x*Energy*weight), itsEnergyWeightedY(y*Energy*weight), itsEnergyWeightedZ(z*Energy*weight),
00014   itsX(x), itsY(y), itsZ(z),
00015   itsWeight(weight),
00016   itsCopyNumber(nCopy),
00017   itsPartID(partID),
00018   itsName(name),
00019   itsPrecisionRegion(precisionRegion)
00020 {
00021   /*
00022   G4cout << "BDSEnergyCounterHit> E = " << itsEnergy << G4endl;
00023   G4cout << "BDSEnergyCounterHit> x = " << itsX << G4endl;
00024   G4cout << "BDSEnergyCounterHit> y = " << itsY << G4endl;
00025   G4cout << "BDSEnergyCounterHit> z = " << itsZ << G4endl;
00026   G4cout << "BDSEnergyCounterHit> vol = " << itsVolumeName << G4endl;
00027   */
00028 }
00029 
00030 BDSEnergyCounterHit::~BDSEnergyCounterHit()
00031 {;}

Generated on 27 Aug 2013 for BDSIM by  doxygen 1.4.7