Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PDBatom.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 // This example is provided by the Geant4-DNA collaboration
27 // Any report or published results obtained using the Geant4-DNA software
28 // shall cite the following Geant4-DNA collaboration publication:
29 // Med. Phys. 37 (2010) 4692-4708
30 // Delage et al. PDB4DNA: implementation of DNA geometry from the Protein Data
31 // Bank (PDB) description for Geant4-DNA Monte-Carlo
32 // simulations (submitted to Comput. Phys. Commun.)
33 // The Geant4-DNA web site is available at http://geant4-dna.org
34 //
35 // $Id$
36 //
39 
40 #include "PDBatom.hh"
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43 
44 Atom::Atom(int s, const std::string& n,
45  const std::string& rN,int numInRes,int rS,
46  double xInit,double yInit,double zInit,
47  double radius,
48  double o, double tF, const std::string& e)
49 {
50  fSerial=s;
51  fName=n;
52  fResName=rN;
53  fNumInRes=numInRes;
54  fResSeq=rS;
55  fX=xInit;
56  fY=yInit;
57  fZ=zInit;
58  fVdwRadius=radius;
59  fOccupancy=o;
60  fTempFactor=tF;
61  fElement=e;
62  fpNext=0;
63 }
64 
65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
66 
68 {
69  return fpNext;
70 }
71 
72 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73 
74 double Atom::GetX()
75 {
76  return fX;
77 }
78 
79 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
80 
81 double Atom::GetY()
82 {
83  return fY;
84 }
85 
86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
87 
88 double Atom::GetZ()
89 {
90  return fZ;
91 }
92 
93 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
94 
96 {
97  return fSerial;
98 }
99 
100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101 
102 const std::string& Atom::GetName()
103 {
104  return fName;
105 }
106 
107 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
108 
109 const std::string& Atom::GetElementName()
110 {
111  return fElement;
112 }
113 
114 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115 
117 {
118  return fVdwRadius;
119 }
120 
121 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122 
123 void Atom::SetNext(Atom *AtomNext)
124 {
125  fpNext=AtomNext;
126 }
std::string fResName
Residue name.
Definition: PDBatom.hh:100
Atom(int serial, const std::string &name, const std::string &resName, int numInRes, int resSeq, double xInit, double yInit, double zInit, double radius, double occupancy, double tempFactor, const std::string &element)
constructor with initialization
Definition: PDBatom.cc:44
const std::string & GetName()
Return name of the atom.
Definition: PDBatom.cc:102
int fSerial
its serial number
Definition: PDBatom.hh:97
double GetVanDerWaalsRadius()
Return name of the atom.
Definition: PDBatom.cc:116
double fZ
Z orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:104
double GetX()
Return the X position for the Atom.
Definition: PDBatom.cc:74
void SetNext(Atom *)
Set the next atom.
Definition: PDBatom.cc:123
std::string fName
Atom name.
Definition: PDBatom.hh:99
const XML_Char * s
Definition: expat.h:262
int fNumInRes
its number in residue sequence
Definition: PDBatom.hh:98
double GetZ()
Return the Z position for the Atom.
Definition: PDBatom.cc:88
Atom Class.
Definition: PDBatom.hh:56
const G4int n
int fResSeq
Residue sequence number.
Definition: PDBatom.hh:101
double fVdwRadius
Definition: PDBatom.hh:105
double fTempFactor
Temperature factor for the Atom.
Definition: PDBatom.hh:108
double fOccupancy
Occupancy for the Atom.
Definition: PDBatom.hh:106
double fX
X orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:102
Atom * GetNext()
Returns the next Atom.
Definition: PDBatom.cc:67
Definition of the Atom class.
double fY
Y orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:103
const std::string & GetElementName()
Return name of the element.
Definition: PDBatom.cc:109
std::string fElement
Element symbol extracted from 'atom name'.
Definition: PDBatom.hh:107
int GetID()
Return the Atom's ID.
Definition: PDBatom.cc:95
double GetY()
Return the Y position for the Atom.
Definition: PDBatom.cc:81