Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:16

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // $id: G4ParticleChange.icc,v 1.6 1998/04/14 02:25:54 kurasige Exp $
0029 
0030 inline void G4FastStep::ProposePrimaryTrackFinalTime(G4double time)
0031 {
0032   theTimeChange = time;
0033 }
0034 inline void G4FastStep::SetPrimaryTrackFinalTime(G4double time)
0035 {
0036   ProposePrimaryTrackFinalTime(time);
0037 }
0038 
0039 inline void G4FastStep::ProposePrimaryTrackFinalProperTime(G4double properTime)
0040 {
0041   theProperTimeChange = properTime;
0042 }
0043 inline void G4FastStep::SetPrimaryTrackFinalProperTime(G4double properTime)
0044 {
0045   ProposePrimaryTrackFinalProperTime(properTime);
0046 }
0047 
0048 inline void G4FastStep::ProposePrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
0049 {
0050   theEnergyChange = kineticEnergy;
0051 }
0052 inline void G4FastStep::SetPrimaryTrackFinalKineticEnergy(G4double kineticEnergy)
0053 {
0054   ProposePrimaryTrackFinalKineticEnergy(kineticEnergy);
0055 }
0056 
0057 inline void G4FastStep::ProposePrimaryTrackPathLength(G4double pathLength)
0058 {
0059   ProposeTrueStepLength(pathLength);
0060 }
0061 inline void G4FastStep::SetPrimaryTrackPathLength(G4double pathLength)
0062 {
0063   ProposePrimaryTrackPathLength(pathLength);
0064 }
0065 
0066 //-----------------------------------------
0067 //
0068 // Creation of eventual secondaries:
0069 //
0070 //-----------------------------------------
0071 
0072 inline void G4FastStep::SetNumberOfSecondaryTracks(G4int nSecondaries)
0073 {
0074   SetNumberOfSecondaries(nSecondaries);
0075 }
0076 
0077 inline G4int G4FastStep::GetNumberOfSecondaryTracks()
0078 {
0079   return GetNumberOfSecondaries();
0080 }
0081 
0082 inline G4Track* G4FastStep::GetSecondaryTrack(G4int i)
0083 {
0084   return GetSecondary(i);
0085 }
0086 
0087 //---------------------------------------
0088 //
0089 //---------------------------------------
0090 inline void G4FastStep::ProposeTotalEnergyDeposited(G4double anEnergyPart)
0091 {
0092   ProposeLocalEnergyDeposit(anEnergyPart);
0093 }
0094 inline void G4FastStep::SetTotalEnergyDeposited(G4double anEnergyPart)
0095 {
0096   ProposeTotalEnergyDeposited(anEnergyPart);
0097 }
0098 
0099 inline G4double G4FastStep::GetTotalEnergyDeposited() const
0100 {
0101   return GetLocalEnergyDeposit();
0102 }
0103 
0104 inline void G4FastStep::ForceSteppingHitInvocation()
0105 {
0106   ProposeSteppingControl(NormalCondition);
0107 }
0108 
0109 inline void G4FastStep::SetMomentumChange(G4double Px, G4double Py, G4double Pz)
0110 {
0111   theMomentumChange.setX(Px);
0112   theMomentumChange.setY(Py);
0113   theMomentumChange.setZ(Pz);
0114 }
0115 
0116 inline void G4FastStep::SetMomentumChange(const G4ThreeVector& P)
0117 {
0118   theMomentumChange = P;
0119 }
0120 
0121 inline void G4FastStep::ProposePrimaryTrackFinalEventBiasingWeight(G4double w)
0122 {
0123   theWeightChange = w;
0124 }
0125 inline void G4FastStep::SetPrimaryTrackFinalEventBiasingWeight(G4double w)
0126 {
0127   ProposePrimaryTrackFinalEventBiasingWeight(w);
0128 }