Import Geant4 10.1.0 source tree
This commit is contained in:
@@ -22,10 +22,6 @@
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// This is the *BASIC* version of Hadrontherapy, a Geant4-based application
|
||||
// See more at: http://g4advancedexamples.lngs.infn.it/Examples/hadrontherapy
|
||||
//
|
||||
// Visit the Hadrontherapy web site (http://www.lns.infn.it/link/Hadrontherapy) to request
|
||||
// the *COMPLETE* version of this program, together with its documentation;
|
||||
// Hadrontherapy (both basic and full version) are supported by the Italian INFN
|
||||
@@ -34,9 +30,13 @@
|
||||
|
||||
#include "HadrontherapyDetectorHit.hh"
|
||||
|
||||
G4Allocator<HadrontherapyDetectorHit> HadrontherapyDetectorHitAllocator;
|
||||
|
||||
//**********************MT
|
||||
G4ThreadLocal G4Allocator<HadrontherapyDetectorHit>* HadrontherapyDetectorHitAllocator=0;
|
||||
//**********************MT
|
||||
|
||||
HadrontherapyDetectorHit::HadrontherapyDetectorHit()
|
||||
: G4VHit()
|
||||
{
|
||||
energyDeposit = 0;
|
||||
}
|
||||
@@ -45,7 +45,7 @@ HadrontherapyDetectorHit::~HadrontherapyDetectorHit()
|
||||
{
|
||||
}
|
||||
|
||||
HadrontherapyDetectorHit::HadrontherapyDetectorHit(const HadrontherapyDetectorHit &right)
|
||||
HadrontherapyDetectorHit::HadrontherapyDetectorHit(const HadrontherapyDetectorHit& right)
|
||||
: G4VHit()
|
||||
{
|
||||
xHitID = right.xHitID;
|
||||
@@ -54,7 +54,7 @@ HadrontherapyDetectorHit::HadrontherapyDetectorHit(const HadrontherapyDetectorHi
|
||||
energyDeposit = right.energyDeposit;
|
||||
}
|
||||
|
||||
const HadrontherapyDetectorHit& HadrontherapyDetectorHit::operator=(const HadrontherapyDetectorHit &right)
|
||||
const HadrontherapyDetectorHit& HadrontherapyDetectorHit::operator=(const HadrontherapyDetectorHit& right)
|
||||
{
|
||||
xHitID = right.xHitID;
|
||||
zHitID = right.zHitID;
|
||||
@@ -63,9 +63,7 @@ const HadrontherapyDetectorHit& HadrontherapyDetectorHit::operator=(const Hadron
|
||||
return *this;
|
||||
}
|
||||
|
||||
int HadrontherapyDetectorHit::operator==(const HadrontherapyDetectorHit &right) const
|
||||
G4int HadrontherapyDetectorHit::operator==(const HadrontherapyDetectorHit& right) const
|
||||
{
|
||||
return((xHitID==right.xHitID)&&(zHitID==right.zHitID)&&(yHitID==right.yHitID));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user