Geant4  10.01.p02
G4UCNBoundaryProcess.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 //
26 //
27 // $Id: G4UCNBoundaryProcess.hh 71487 2013-06-17 08:19:40Z gcosmo $
28 //
29 //
31 // Ultra Cold Neutron (UCN) Boundary Process Class Definition
33 //
34 // File: G4UCNBoundaryProcess.hh
35 // Description: Discrete Process -- Boundary Process of UCN
36 // Version: 1.0
37 // Created: 2014-06-04
38 // Author: Peter Gumplinger
39 // Adopted from: UCNMaterialBoundary by Peter Fierlinger 4.9.2004
40 // Updated:
41 // mail: gum@triumf.ca
42 //
44 
45 #ifndef G4UCNBOUNDARYPROCESS_HH
46 #define G4UCNBOUNDARYPROCESS_HH 1
47 
49 // Includes
51 
52 #include "G4VDiscreteProcess.hh"
53 
54 #include "G4Neutron.hh"
55 
57 
59 
60 // Class Description:
61 // Discrete Process -- Boundary Process of Ultra Cold Neutrons.
62 // Reflects/Absorpts UCN at boundaries.
63 // Class inherits publicly from G4VDiscreteProcess.
64 // Class Description - End:
65 
67 // Class Definition
69 
70 
81  };
82 
84 {
85 
86 public:
87 
89  // Constructors and Destructor
91 
92  G4UCNBoundaryProcess(const G4String& processName = "UCNBoundaryProcess",
93  G4ProcessType type = fUCN);
94  virtual ~G4UCNBoundaryProcess();
95 
96 private:
97 
99 
101  // Operators
103 
105 
106 public:
107 
109  // Methods
111 
112  G4bool IsApplicable(const G4ParticleDefinition& aParticleType);
113  // Returns true -> 'is applicable' only for an UCN.
114 
115  G4double GetMeanFreePath(const G4Track& aTrack,
116  G4double ,
118 
119  G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
120  const G4Step& aStep);
121 
122 private:
123 
125 
127 
129 
131 
134 
135  // the G4UCNMaterialPropertiesTable of PreStepPoint
137  // the G4UCNMaterialPropertiesTable of PostStepPoint
139 
142 
144  // Methods
146 
148 
150 
152 
154 
156 
158 
160 
161 public:
162 
165  G4double , G4double );
168  G4double , G4double , G4double& );
169 
170 private:
171 
176 
178  G4ThreeVector );
179 
180  void BoundaryProcessVerbose() const;
181 
182  // Invoke SD for post step point if the photon is 'detected'
183  G4bool InvokeSD(const G4Step* step);
184 
185 private:
186 
194 
196 
197 public:
198 
199  void SetMicroRoughness(G4bool );
200 
202 
203  void BoundaryProcessSummary() const;
204 
206  {aMaterialPropertiesTable1 = MPT;}
207 
209  {aMaterialPropertiesTable2 = MPT;}
210 
212  G4double GetPhi_o() {return fphi_o;};
213 
214 };
215 
217 // Inline methods
219 
220 inline G4bool
222 {
223  return ( &aParticleType == G4Neutron::NeutronDefinition() );
224 }
225 
226 inline
228 {
229  return theStatus;
230 }
231 
232 inline G4bool
234 {
235  // Returns true for Energy > Fermi Potential Difference
236 
237  return (Energy > FermiPotDiff);
238 }
239 
240 #endif /* G4UCNBOUNDARYPROCESS_HH */
G4double condition(const G4ErrorSymMatrix &m)
G4ThreeVector MRDiffTrans(G4ThreeVector, G4double, G4double, G4ThreeVector, G4double)
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepRotation G4RotationMatrix
G4RotationMatrix GetCoordinateTransformMatrix(G4ThreeVector, G4ThreeVector)
G4bool High(G4double, G4double)
G4UCNBoundaryProcessStatus GetStatus() const
G4UCNBoundaryProcessMessenger * fMessenger
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
G4double Transmit(G4double, G4double)
G4ThreeVector MRDiffRefl(G4ThreeVector, G4double, G4double, G4ThreeVector, G4double)
int G4int
Definition: G4Types.hh:78
void BoundaryProcessVerbose() const
G4UCNBoundaryProcess(const G4String &processName="UCNBoundaryProcess", G4ProcessType type=fUCN)
bool G4bool
Definition: G4Types.hh:79
G4ThreeVector LDiffRefl(G4ThreeVector)
Definition: G4Step.hh:76
void BoundaryProcessSummary() const
G4bool Loss(G4double, G4double, G4double)
G4UCNMaterialPropertiesTable * aMaterialPropertiesTable1
G4ThreeVector MRreflect(G4double, G4ThreeVector, G4ThreeVector, G4double, G4double)
void SetMaterialPropertiesTable1(G4UCNMaterialPropertiesTable *MPT)
void SetMaterialPropertiesTable2(G4UCNMaterialPropertiesTable *MPT)
G4bool InvokeSD(const G4Step *step)
G4double GetMeanFreePath(const G4Track &aTrack, G4double, G4ForceCondition *condition)
G4ThreeVector MRreflectHigh(G4double, G4double, G4double, G4ThreeVector, G4ThreeVector, G4double, G4double, G4double &)
G4ThreeVector Reflect(G4double, G4ThreeVector, G4ThreeVector)
G4UCNMaterialPropertiesTable * aMaterialPropertiesTable2
double G4double
Definition: G4Types.hh:76
G4UCNBoundaryProcessStatus theStatus
G4ForceCondition
G4double Reflectivity(G4double, G4double)
G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
G4UCNBoundaryProcess & operator=(const G4UCNBoundaryProcess &right)
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99
G4UCNBoundaryProcessStatus
G4ProcessType