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
electromagnetic
dna
models
src
G4DNAMolecularStepByStepModel.cc
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: G4DNAMolecularStepByStepModel.cc 65022 2012-11-12 16:43:12Z gcosmo $
27
//
28
#include "
G4DNAMolecularStepByStepModel.hh
"
29
#include "
G4VDNAReactionModel.hh
"
30
31
G4DNAMolecularStepByStepModel::G4DNAMolecularStepByStepModel
(
const
G4String
&
name
) :
32
G4VITModel
(name),
33
fMolecularReactionTable(
reference_cast
<
const
G4DNAMolecularReactionTable
*>(fpReactionTable))
34
{
35
fpTimeStepper
=
new
G4DNAMoleculeEncounterStepper
();
36
fpReactionProcess
=
new
G4DNAMolecularReaction
();
37
38
fType1
= G4Molecule::ITType();
39
fType2
= G4Molecule::ITType();
40
fReactionModel
= 0;
41
}
42
43
G4DNAMolecularStepByStepModel::~G4DNAMolecularStepByStepModel
()
44
{
45
if
(
fReactionModel
)
delete
fReactionModel
;
46
}
47
48
G4DNAMolecularStepByStepModel
& G4DNAMolecularStepByStepModel::operator=(
const
G4DNAMolecularStepByStepModel
&
right
)
49
{
50
G4ExceptionDescription
exceptionDescription
51
(
"Use copy constructor rather than assignement operator."
);
52
G4Exception
(
"G4DNAMolecularStepByStepModel::operator=(const G4DNAMolecularStepByStepModel&)"
,
"G4DNAMolecularStepByStepModel001"
,
53
FatalErrorInArgument
,exceptionDescription);
54
55
if
(&right==
this
)
return
*
this
;
56
return
*
this
;
// avoid warnings
57
}
58
59
60
G4DNAMolecularStepByStepModel::G4DNAMolecularStepByStepModel
(
const
G4DNAMolecularStepByStepModel
& right):
61
G4VITModel
(right),
62
fMolecularReactionTable(
reference_cast
<
const
G4DNAMolecularReactionTable
*>(fpReactionTable))
63
{
64
fpReactionTable
= right.
fpReactionTable
;
65
if
(right.
fReactionModel
)
66
{
67
fReactionModel
= right.
fReactionModel
->Clone();
68
((
G4DNAMolecularReaction
*)
fpReactionProcess
)->SetReactionModel(
fReactionModel
);
69
((
G4DNAMoleculeEncounterStepper
*)
fpTimeStepper
)->SetReactionModel(
fReactionModel
);
70
}
71
else
fReactionModel
= 0;
72
}
73
74
void
G4DNAMolecularStepByStepModel::Initialize
()
75
{
76
fReactionModel
->
SetReactionTable
((
const
G4DNAMolecularReactionTable
*)
fpReactionTable
);
77
G4VITModel::Initialize
();
78
}
79
80
void
G4DNAMolecularStepByStepModel::PrintInfo
()
81
{
82
#ifdef G4VERBOSE
83
G4cout
<<
"DNAMolecularStepByStepModel will be used"
<<
G4endl
;
84
#endif
85
}
Generated on Sat May 25 2013 14:33:31 for Geant4 by
1.8.4