Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
optical
include
G4OpWLS.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$
28
//
30
// Optical Photon WaveLength Shifting (WLS) Class Definition
32
//
33
// File: G4OpWLS.hh
34
// Description: Discrete Process -- Wavelength Shifting of Optical Photons
35
// Version: 1.0
36
// Created: 2003-05-13
37
// Author: John Paul Archambault
38
// (Adaptation of G4Scintillation and G4OpAbsorption)
39
// Updated: 2005-07-28 add G4ProcessType to constructor
40
// 2006-05-07 - add G4VWLSTimeGeneratorProfile
41
// mail: gum@triumf.ca
42
// jparcham@phys.ualberta.ca
43
//
45
46
#ifndef G4OpWLS_h
47
#define G4OpWLS_h 1
48
50
// Includes
52
53
#include "
globals.hh
"
54
#include "
templates.hh
"
55
#include "
Randomize.hh
"
56
#include "
G4Poisson.hh
"
57
#include "
G4ThreeVector.hh
"
58
#include "
G4ParticleMomentum.hh
"
59
#include "
G4Step.hh
"
60
#include "
G4VDiscreteProcess.hh
"
61
#include "
G4DynamicParticle.hh
"
62
#include "
G4Material.hh
"
63
#include "
G4OpticalPhoton.hh
"
64
#include "
G4PhysicsTable.hh
"
65
#include "
G4MaterialPropertiesTable.hh
"
66
#include "
G4PhysicsOrderedFreeVector.hh
"
67
#include "
G4VWLSTimeGeneratorProfile.hh
"
68
69
// Class Description:
70
// Discrete Process -- Bulk absorption of Optical Photons.
71
// Class inherits publicly from G4VDiscreteProcess
72
// Class Description - End:
73
75
// Class Definition
77
78
class
G4VWLSTimeGeneratorProfile
;
79
80
class
G4OpWLS
:
public
G4VDiscreteProcess
81
{
82
83
public
:
84
86
// Constructors and Destructor
88
89
G4OpWLS
(
const
G4String
& processName =
"OpWLS"
,
90
G4ProcessType
type =
fOptical
);
91
~G4OpWLS
();
92
93
private
:
94
95
G4OpWLS
(
const
G4OpWLS
&
right
);
96
98
// Operators
100
101
G4OpWLS
& operator=(
const
G4OpWLS
&right);
102
103
public
:
104
106
// Methods
108
109
G4bool
IsApplicable
(
const
G4ParticleDefinition
& aParticleType);
110
// Returns true -> 'is applicable' only for an optical photon.
111
112
G4double
GetMeanFreePath
(
const
G4Track
& aTrack,
113
G4double
,
114
G4ForceCondition
* );
115
// Returns the absorption length for bulk absorption of optical
116
// photons in media with a specified attenuation length.
117
118
G4VParticleChange
*
PostStepDoIt
(
const
G4Track
& aTrack,
119
const
G4Step
& aStep);
120
// This is the method implementing bulk absorption of optical
121
// photons.
122
123
G4PhysicsTable
*
GetIntegralTable
()
const
;
124
// Returns the address of the WLS integral table.
125
126
void
DumpPhysicsTable
()
const
;
127
// Prints the WLS integral table.
128
129
void
UseTimeProfile
(
const
G4String
name
);
130
// Selects the time profile generator
131
132
private
:
133
134
void
BuildThePhysicsTable();
135
// Is the WLS integral table;
136
137
protected
:
138
139
G4VWLSTimeGeneratorProfile
*
WLSTimeGeneratorProfile
;
140
G4PhysicsTable
*
theIntegralTable
;
141
142
};
143
145
// Inline methods
147
148
inline
149
G4bool
G4OpWLS::IsApplicable
(
const
G4ParticleDefinition
& aParticleType)
150
{
151
return
( &aParticleType ==
G4OpticalPhoton::OpticalPhoton
() );
152
}
153
154
inline
155
G4PhysicsTable
*
G4OpWLS::GetIntegralTable
()
const
156
{
157
return
theIntegralTable
;
158
}
159
160
inline
161
void
G4OpWLS::DumpPhysicsTable
()
const
162
{
163
G4int
PhysicsTableSize =
theIntegralTable
->
entries
();
164
G4PhysicsOrderedFreeVector
*
v
;
165
166
for
(
G4int
i = 0 ; i < PhysicsTableSize ; i++ )
167
{
168
v = (
G4PhysicsOrderedFreeVector
*)(*
theIntegralTable
)[i];
169
v->
DumpValues
();
170
}
171
}
172
173
#endif
/* G4OpWLS_h */
Generated on Sat May 25 2013 14:34:10 for Geant4 by
1.8.4