94 lines
2.9 KiB
Plaintext
94 lines
2.9 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: LEMuSRParticleChangeForMSC.icc,v 1.6 2004/10/19 00:51:29 kurasige Exp $
|
|
// GEANT4 tag $Name: geant4-07-01 $
|
|
//
|
|
//
|
|
|
|
|
|
inline
|
|
void LEMuSRParticleChangeForMSC::ProposeMomentumDirection(const G4ThreeVector& P)
|
|
{
|
|
theMomentumDirection = P;
|
|
}
|
|
|
|
inline
|
|
void LEMuSRParticleChangeForMSC::SetProposedMomentumDirection(const G4ThreeVector& P)
|
|
{
|
|
theMomentumDirection = P;
|
|
}
|
|
|
|
inline
|
|
void LEMuSRParticleChangeForMSC::ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
|
|
{
|
|
theMomentumDirection.setX(Px);
|
|
theMomentumDirection.setY(Py);
|
|
theMomentumDirection.setZ(Pz);
|
|
}
|
|
|
|
inline
|
|
const G4ThreeVector* LEMuSRParticleChangeForMSC::GetMomentumDirection() const
|
|
{
|
|
return &theMomentumDirection;
|
|
}
|
|
|
|
inline
|
|
const G4ThreeVector* LEMuSRParticleChangeForMSC::GetProposedMomentumDirection() const
|
|
{
|
|
return &theMomentumDirection;
|
|
}
|
|
|
|
inline
|
|
void LEMuSRParticleChangeForMSC::SetProposedPosition(const G4ThreeVector& P)
|
|
{
|
|
thePosition = P;
|
|
}
|
|
|
|
inline
|
|
const G4ThreeVector* LEMuSRParticleChangeForMSC::GetPosition() const
|
|
{
|
|
return &thePosition;
|
|
}
|
|
|
|
inline
|
|
const G4ThreeVector* LEMuSRParticleChangeForMSC::GetProposedPosition() const
|
|
{
|
|
return &thePosition;
|
|
}
|
|
|
|
inline
|
|
void LEMuSRParticleChangeForMSC::ProposePosition(const G4ThreeVector& P)
|
|
{
|
|
thePosition = P;
|
|
}
|
|
|
|
|
|
inline void LEMuSRParticleChangeForMSC::Initialize(const G4Track& track)
|
|
{
|
|
theStatusChange = track.GetTrackStatus();
|
|
theMomentumDirection = track.GetMomentumDirection();
|
|
thePosition = track.GetPosition();
|
|
}
|
|
|