ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4AdjointhMultipleScattering.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4AdjointhMultipleScattering.cc
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 
28 //
29 // GEANT4 Class file
30 //
31 // File name: G4AdjointhMultipleScattering
32 //
33 // Author: Desorgher Laurent
34 //
35 // Creation date: 03.06.2009 cloned from G4hMultipleScattering by U.Laszlo with slight modification for adjoint_ion.
36 //
37 // -----------------------------------------------------------------------------
38 //
39 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
40 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41 
43 #include "G4SystemOfUnits.hh"
44 #include "G4UrbanMscModel.hh"
45 #include "G4MscStepLimitType.hh"
46 
47 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
48 
49 using namespace std;
50 
52  : G4VMultipleScattering(processName)
53 {
54  isInitialized = false;
55 }
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58 
60 {}
61 
62 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
63 
65 {
66  return (p.GetPDGCharge() != 0.0 && !p.IsShortLived());
67 }
68 
69 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
70 
72 {
73  if(isInitialized) { return; }
74  AddEmModel(1, new G4UrbanMscModel());
75  isInitialized = true;
76 }
77 
78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79 
81 {
82  G4cout << " RangeFactor= " << RangeFactor()
83  << ", step limit type: " << StepLimitType()
84  << ", lateralDisplacement: " << LateralDisplasmentFlag()
85  << ", skin= " << Skin()
86  << G4endl;
87 }
88 
89 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
90 
91 /*G4double G4AdjointhMultipleScattering::AlongStepGetPhysicalInteractionLength(
92  const G4Track& track,
93  double,
94  G4double currentMinimalStep,
95  G4double& currentSafety,
96  G4GPILSelection* selection)
97 {
98  // get Step limit proposed by the process
99  valueGPILSelectionMSC = NotCandidateForSelection;
100 
101  G4double escaled = track.GetKineticEnergy();
102  if(isIon) escaled *= track.GetDynamicParticle()->GetMass()/proton_mass_c2;
103 
104  G4double steplength = GetMscContinuousStepLimit(track,
105  escaled,
106  currentMinimalStep,
107  currentSafety);
108  // G4cout << "StepLimit= " << steplength << G4endl;
109  // set return value for G4GPILSelection
110  *selection = valueGPILSelectionMSC;
111  return steplength;
112 }
113 */
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......