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
transportation
include
G4UserSpecialCuts.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
// $Id: G4UserSpecialCuts.hh 69887 2013-05-17 08:17:02Z gcosmo $
27
//
28
// class description
29
//
30
// A "process" to be registered to the process manager of each particle,
31
// in the UserPhysicsList, in order to take into account the user limits
32
// defined in the G4UserLimits object attached to a logical volume.
33
34
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
35
36
#ifndef G4UserSpecialCuts_h
37
#define G4UserSpecialCuts_h 1
38
39
#include "
G4ios.hh
"
40
#include "
globals.hh
"
41
#include "
G4VProcess.hh
"
42
43
class
G4LossTableManager
;
44
45
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
46
47
class
G4UserSpecialCuts
:
public
G4VProcess
48
{
49
public
:
// with description
50
51
G4UserSpecialCuts
(
const
G4String
& processName =
"UserSpecialCut"
);
52
53
virtual
~G4UserSpecialCuts
();
54
55
virtual
G4double
PostStepGetPhysicalInteractionLength
(
56
const
G4Track
& track,
57
G4double
previousStepSize,
58
G4ForceCondition
*
condition
59
);
60
61
virtual
G4VParticleChange
*
PostStepDoIt
(
62
const
G4Track
& ,
63
const
G4Step
&
64
);
65
66
public
:
// without description
67
68
// no operation in AtRestGPIL
69
virtual
G4double
AtRestGetPhysicalInteractionLength
(
70
const
G4Track
& ,
71
G4ForceCondition
*
72
){
return
-1.0; };
73
74
// no operation in AtRestDoIt
75
virtual
G4VParticleChange
*
AtRestDoIt
(
76
const
G4Track
& ,
77
const
G4Step
&
78
){
return
0;};
79
80
// no operation in AlongStepGPIL
81
virtual
G4double
AlongStepGetPhysicalInteractionLength
(
82
const
G4Track
&,
83
G4double
,
84
G4double
,
85
G4double
& ,
86
G4GPILSelection
*
87
){
return
-1.0; };
88
89
// no operation in AlongStepDoIt
90
virtual
G4VParticleChange
*
AlongStepDoIt
(
91
const
G4Track
& ,
92
const
G4Step
&
93
) {
return
0;};
94
95
private
:
96
97
// hide assignment operator as private
98
G4UserSpecialCuts
(
G4UserSpecialCuts
&);
99
G4UserSpecialCuts
& operator=(
const
G4UserSpecialCuts
&
right
);
100
101
G4LossTableManager
* theLossTableManager;
102
103
};
104
105
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
106
107
#endif
108
Generated on Sat May 25 2013 14:34:11 for Geant4 by
1.8.4