Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExExChProcessChanneling.hh
Go to the documentation of this file.
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 //
28 //
29 //
30 
31 #ifndef ExExChProcessChanneling_h
32 #define ExExChProcessChanneling_h 1
33 
34 #include "G4ios.hh"
35 #include "globals.hh"
36 #include "G4VDiscreteProcess.hh"
37 
38 #include "XLatticeManager3.hh"
41 
42 #include "G4VPhysicalVolume.hh"
43 #include "XPhysicalLattice.hh"
45 
47 {
48 public:
49 
50  ExExChProcessChanneling(const G4String& processName =
51  "ExExChProcessChanneling" );
52 
53  virtual ~ExExChProcessChanneling();
54 
55  virtual G4VParticleChange* PostStepDoIt(const G4Track&, const G4Step&);
56 
58 
59  virtual void BuildPhysicsTable(const G4ParticleDefinition&);
60 
61 protected:
62 
63  virtual G4double GetMeanFreePath(const G4Track&,
64  G4double,
66 
67 private:
68 
69  G4double GetChannelingMeanFreePath(const G4Track&);
70 
71 public:
74 
77 
80 
83 
86 
88  return fTransverseVariationMax;
89  };
90 
92  fTransverseVariationMax = aDouble;
93  };
94 
95  G4double GetTimeStepMin() {return fTimeStepMin;};
96  void SetTimeStepMin(G4double aDouble) {fTimeStepMin = aDouble;};
97 
99 
100  void SetFileCharacteristicsName(const G4String& vFilename)
101  {fFileCharacteristicsName = vFilename;};
102  G4bool GetFileCharacteristicsName() {return fFileCharacteristicsName;};
103 
104 private:
105  void UpdateParameters(const G4Track&);
106  G4bool UpdateInitialParameters(const G4Track&);
107  void ResetDensity(const G4Track&);
108 
109  G4double ComputeCriticalEnergyBent(const G4Track&);
110  G4double ComputeCriticalEnergyMinimumBent(const G4Track&);
111  G4double ComputePotentialEnergyBent(const G4Track&);
112  G4ThreeVector ComputeTransverseEnergyBent(const G4Track&);
113 
114  G4ThreeVector ComputePositionInTheCrystal(G4StepPoint*,const G4Track&);
115  G4StepPoint* CheckStepPointLatticeForVolume(G4StepPoint*,const G4Track&);
116  G4StepPoint* CheckStepPointLatticeForPosition(G4StepPoint*,const G4Track&);
117 
118  G4ThreeVector ComputeTransverseEnergy(const G4Track&);
119  G4ThreeVector ComputeKineticEnergy(const G4Track&);
120  G4ThreeVector ComputePotentialEnergy(const G4Track&);
121  G4ThreeVector ComputeMomentum(const G4Track&,G4StepPoint*);
122  G4ThreeVector ComputeCentrifugalEnergy(const G4Track&,G4ThreeVector);
123  G4ThreeVector ComputeCentrifugalEnergyMaximumVariation(const G4Track&);
124 
125  G4double ComputeCriticalEnergyMaximum(const G4Track&);
126  G4double ComputeCriticalEnergyMinimum(const G4Track&);
127  G4double ComputeCriticalAngle(const G4Track&);
128  G4double ComputeCriticalRadius(const G4Track&);
129  G4double ComputeOscillationPeriod(const G4Track&);
130  G4ThreeVector ComputePotentialWellCentre(const G4Track&);
131 
132  G4bool HasLattice(const G4Track&);
133  G4bool HasLatticeOnBoundary(const G4Track&);
134  G4bool HasLatticeOnBoundaryPre(const G4Track&);
135  G4bool HasLatticeOnBoundaryPost(const G4Track&);
136 
137  G4bool ParticleIsNegative(const G4Track&);
138  G4bool ParticleIsNotOnBoundaryPre(const G4Track&);
139  G4bool ParticleIsNotOnBoundaryPost(const G4Track&);
140  G4bool ParticleIsNotOnBoundary(const G4Track&);
141 
142  void ComputeCrystalCharacteristic(const G4Track&);
143 
144 private:
145  //binding methods
146  XPhysicalLattice* GetXPL(const G4Track&);
147  G4VPhysicalVolume* GetVolume(const G4Track&);
148  ExExChParticleUserInfo* GetInfo(const G4Track&);
149  G4ParticleDefinition* GetParticleDefinition(const G4Track& aTrack);
150 
151 private:
152  // hide assignment operator as private
154  ExExChProcessChanneling& operator=(
156 
157 private:
158  XLatticeManager3* fLatticeManager;
159 
160  XVCrystalCharacteristic* fPotentialEnergy;
161  XVCrystalCharacteristic* fElectricField;
162  XCrystalIntegratedDensityHub* fIntegratedDensity;
163 
164  XVCrystalCharacteristic* fNucleiDensity;
165  XVCrystalCharacteristic* fElectronDensity;
166 
167  G4String fFileCharacteristicsName;
168 
169 private:
170  G4bool UpdateIntegrationStep(const G4Track&,G4ThreeVector&);
171  G4double fTimeStep;
172  G4double fTimeStepMin;
173  G4double fTimeStepMax;
174  G4double fTimeStepTotal;
175 
176  G4bool fHasToComputeTrajectory;
177  G4double fPointYPost;
178  G4double fPointYPre;
179 
180  G4double fTransverseVariationMax;
181  G4double fIntegrationPeriod;
182 };
183 
184 #endif
185 
186 
187 
188 
189 
190 
191 
192 
193 
194 
void SetFileCharacteristicsName(const G4String &vFilename)
XVCrystalCharacteristic * GetNucleiDensity()
Definition of the XLatticeManager3 class.
ExExChProcessChanneling(const G4String &processName="ExExChProcessChanneling")
Definition of the XVCrystalCharacteristic class.
virtual void BuildPhysicsTable(const G4ParticleDefinition &)
Definition of the ExExChParticleUserInfo class.
XVCrystalCharacteristic * GetElectronDensity()
bool G4bool
Definition: G4Types.hh:79
XVCrystalCharacteristic * GetElectricField()
void SetPotential(XVCrystalCharacteristic *)
void SetTimeStepMin(G4double aDouble)
Definition: G4Step.hh:76
void ReadFromFileCharacteristics(G4bool)
void SetIntegratedDensity(XCrystalIntegratedDensityHub *)
void SetElectricField(XVCrystalCharacteristic *)
XVCrystalCharacteristic * GetPotential()
virtual G4double GetMeanFreePath(const G4Track &, G4double, G4ForceCondition *)
XCrystalIntegratedDensityHub * GetIntegratedDensity()
void SetNucleiDensity(XVCrystalCharacteristic *)
void SetTransverseVariationMax(G4double aDouble)
void SetElectronDensity(XVCrystalCharacteristic *)
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
Definition of the XPhysicalLattice class.
double G4double
Definition: G4Types.hh:76
G4ForceCondition
virtual G4bool IsApplicable(const G4ParticleDefinition &)
Definition of the XCrystalIntegratedDensityHub class.