Geant4
10.03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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: G4OpWLS.hh 85354 2014-10-28 09:58:12Z gcosmo $
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
void
BuildPhysicsTable
(
const
G4ParticleDefinition
& aParticleType);
113
// Build the WLS integral table at the right time
114
115
G4double
GetMeanFreePath
(
const
G4Track
& aTrack,
116
G4double
,
117
G4ForceCondition
* );
118
// Returns the absorption length for bulk absorption of optical
119
// photons in media with a specified attenuation length.
120
121
G4VParticleChange
*
PostStepDoIt
(
const
G4Track
& aTrack,
122
const
G4Step
& aStep);
123
// This is the method implementing bulk absorption of optical
124
// photons.
125
126
G4PhysicsTable
*
GetIntegralTable
()
const
;
127
// Returns the address of the WLS integral table.
128
129
void
DumpPhysicsTable
()
const
;
130
// Prints the WLS integral table.
131
132
void
UseTimeProfile
(
const
G4String
name
);
133
// Selects the time profile generator
134
135
protected
:
136
137
G4VWLSTimeGeneratorProfile
*
WLSTimeGeneratorProfile
;
138
G4PhysicsTable
*
theIntegralTable
;
139
140
};
141
143
// Inline methods
145
146
inline
147
G4bool
G4OpWLS::IsApplicable
(
const
G4ParticleDefinition
& aParticleType)
148
{
149
return
( &aParticleType ==
G4OpticalPhoton::OpticalPhoton
() );
150
}
151
152
inline
153
G4PhysicsTable
*
G4OpWLS::GetIntegralTable
()
const
154
{
155
return
theIntegralTable
;
156
}
157
158
inline
159
void
G4OpWLS::DumpPhysicsTable
()
const
160
{
161
G4int
PhysicsTableSize =
theIntegralTable
->
entries
();
162
G4PhysicsOrderedFreeVector
*v;
163
164
for
(
G4int
i = 0 ; i < PhysicsTableSize ; i++ )
165
{
166
v = (
G4PhysicsOrderedFreeVector
*)(*
theIntegralTable
)[i];
167
v->
DumpValues
();
168
}
169
}
170
171
#endif
/* G4OpWLS_h */
G4VDiscreteProcess.hh
G4OpWLS
Definition:
G4OpWLS.hh:80
right
Definition:
F04UserTrackInformation.hh:37
G4PhysicsVector::DumpValues
void DumpValues(G4double unitE=1.0, G4double unitV=1.0) const
Definition:
G4PhysicsVector.cc:266
G4PhysicsOrderedFreeVector
Definition:
G4PhysicsOrderedFreeVector.hh:67
G4OpWLS::PostStepDoIt
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
Definition:
G4OpWLS.cc:102
G4OpticalPhoton.hh
G4DynamicParticle.hh
G4Step.hh
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:77
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:72
G4int
int G4int
Definition:
G4Types.hh:78
G4OpWLS::UseTimeProfile
void UseTimeProfile(const G4String name)
Definition:
G4OpWLS.cc:417
G4OpWLS::IsApplicable
G4bool IsApplicable(const G4ParticleDefinition &aParticleType)
Definition:
G4OpWLS.hh:147
G4OpWLS::DumpPhysicsTable
void DumpPhysicsTable() const
Definition:
G4OpWLS.hh:159
G4PhysicsTable.hh
G4OpWLS::BuildPhysicsTable
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
Definition:
G4OpWLS.cc:287
G4OpWLS::WLSTimeGeneratorProfile
G4VWLSTimeGeneratorProfile * WLSTimeGeneratorProfile
Definition:
G4OpWLS.hh:137
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4Poisson.hh
G4Material.hh
templates.hh
G4OpWLS::~G4OpWLS
~G4OpWLS()
Definition:
G4OpWLS.cc:85
G4Step
Definition:
G4Step.hh:76
Randomize.hh
globals.hh
G4ParticleMomentum.hh
G4VWLSTimeGeneratorProfile.hh
G4PhysicsTable
Definition:
G4PhysicsTable.hh:66
G4OpticalPhoton::OpticalPhoton
static G4OpticalPhoton * OpticalPhoton()
Definition:
G4OpticalPhoton.cc:87
G4OpWLS::operator=
G4OpWLS & operator=(const G4OpWLS &right)
G4MaterialPropertiesTable.hh
fOptical
Definition:
G4ProcessType.hh:48
G4Track
Definition:
G4Track.hh:76
G4OpWLS::G4OpWLS
G4OpWLS(const G4String &processName="OpWLS", G4ProcessType type=fOptical)
Definition:
G4OpWLS.cc:68
G4VWLSTimeGeneratorProfile
Definition:
G4VWLSTimeGeneratorProfile.hh:55
G4VDiscreteProcess
Definition:
G4VDiscreteProcess.hh:58
G4OpWLS::GetIntegralTable
G4PhysicsTable * GetIntegralTable() const
Definition:
G4OpWLS.hh:153
G4double
double G4double
Definition:
G4Types.hh:76
G4ThreeVector.hh
G4PhysicsOrderedFreeVector.hh
G4ForceCondition
G4ForceCondition
Definition:
G4ForceCondition.hh:49
G4OpWLS::theIntegralTable
G4PhysicsTable * theIntegralTable
Definition:
G4OpWLS.hh:138
G4VParticleChange
Definition:
G4VParticleChange.hh:94
G4PhysicsTable::entries
size_t entries() const
G4OpWLS::GetMeanFreePath
G4double GetMeanFreePath(const G4Track &aTrack, G4double, G4ForceCondition *)
Definition:
G4OpWLS.cc:383
G4String
Definition:
G4String.hh:45
G4ProcessType
G4ProcessType
Definition:
G4ProcessType.hh:43
geant4.10.03
source
processes
optical
include
G4OpWLS.hh
Generated on Thu Feb 14 2002 02:29:23 for Geant4 by
1.8.8