119 lines
3.2 KiB
Plaintext
119 lines
3.2 KiB
Plaintext
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// $Id: G4FastStep.icc,v 1.3 2001/07/11 10:08:24 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
|
//
|
|
// $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
|
|
|
|
inline void
|
|
G4FastStep::SetPrimaryTrackFinalTime(G4double time)
|
|
{
|
|
theTimeChange = time;
|
|
}
|
|
|
|
inline void
|
|
G4FastStep::SetPrimaryTrackFinalProperTime(G4double properTime)
|
|
{
|
|
theProperTimeChange = properTime;
|
|
}
|
|
|
|
inline void
|
|
G4FastStep::
|
|
SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
|
|
{
|
|
theEnergyChange = kineticEnergy;
|
|
}
|
|
|
|
inline void
|
|
G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
|
|
{
|
|
SetTrueStepLength(pathLength);
|
|
}
|
|
//-----------------------------------------
|
|
//
|
|
// Creation of eventual secondaries:
|
|
//
|
|
//-----------------------------------------
|
|
|
|
inline void
|
|
G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
|
|
{
|
|
SetNumberOfSecondaries(nSecondaries);
|
|
}
|
|
|
|
inline G4int
|
|
G4FastStep::GetNumberOfSecondaryTracks()
|
|
{
|
|
return GetNumberOfSecondaries();
|
|
}
|
|
|
|
inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
|
|
{
|
|
return GetSecondary(i);
|
|
}
|
|
|
|
|
|
//---------------------------------------
|
|
//
|
|
//---------------------------------------
|
|
inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
|
|
{
|
|
SetLocalEnergyDeposit(anEnergyPart);
|
|
}
|
|
|
|
|
|
inline G4double G4FastStep::GetTotalEnergyDeposited() const
|
|
{
|
|
return GetLocalEnergyDeposit();
|
|
}
|
|
|
|
|
|
inline void G4FastStep::ForceSteppingHitInvocation()
|
|
{
|
|
SetSteppingControl(NormalCondition);
|
|
}
|
|
|
|
inline
|
|
void G4FastStep::SetMomentumChange(
|
|
G4double Px,
|
|
G4double Py,
|
|
G4double Pz )
|
|
{
|
|
theMomentumChange.setX(Px);
|
|
theMomentumChange.setY(Py);
|
|
theMomentumChange.setZ(Pz);
|
|
}
|
|
|
|
inline
|
|
void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
|
|
{
|
|
theMomentumChange = P;
|
|
}
|
|
|
|
inline
|
|
void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight (G4double w)
|
|
{
|
|
theWeightChange = w;
|
|
}
|