Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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//
30
32 G4VITModel(name),
33 fMolecularReactionTable(reference_cast<const G4DNAMolecularReactionTable*>(fpReactionTable))
34{
37
38 fType1 = G4Molecule::ITType();
39 fType2 = G4Molecule::ITType();
41}
42
44{
46}
47
48G4DNAMolecularStepByStepModel& 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
61 G4VITModel(right),
62 fMolecularReactionTable(reference_cast<const G4DNAMolecularReactionTable*>(fpReactionTable))
63{
65 if(right.fReactionModel)
66 {
67 fReactionModel = right.fReactionModel->Clone();
70 }
71 else fReactionModel = 0;
72}
73
75{
78}
79
81{
82#ifdef G4VERBOSE
83 G4cout << "DNAMolecularStepByStepModel will be used" << G4endl;
84#endif
85}
@ FatalErrorInArgument
ReturnType & reference_cast(OriginalType &source)
#define G4endl
Definition: G4ios.hh:52
G4DLLIMPORT std::ostream G4cout
G4DNAMolecularStepByStepModel(const G4String &name="DNAMolecularStepByStepModel")
void SetReactionTable(const G4DNAMolecularReactionTable *)
G4ITType fType2
Definition: G4VITModel.hh:89
virtual void Initialize()
Definition: G4VITModel.cc:95
G4ITType fType1
Definition: G4VITModel.hh:88
G4VITTimeStepper * fpTimeStepper
Definition: G4VITModel.hh:83
const G4ITReactionTable * fpReactionTable
Definition: G4VITModel.hh:86
G4VITReactionProcess * fpReactionProcess
Definition: G4VITModel.hh:84
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
#define const
Definition: zconf.h:118