Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
PDBatom.cc
이 파일의 문서화 페이지로 가기
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;
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 }
int fSerial
its serial number
Definition: PDBatom.hh:97
std::string fName
Atom name.
Definition: PDBatom.hh:99
Atom * GetNext()
Returns the next Atom.
Definition: PDBatom.cc:67
int GetID()
Return the Atom's ID.
Definition: PDBatom.cc:95
Definition of the Atom class.
Atom * fpNext
Pointer to the next Atom.
Definition: PDBatom.hh:111
const XML_Char * s
Definition: expat.h:262
std::string fElement
Element symbol extracted from 'atom name'.
Definition: PDBatom.hh:107
const std::string & GetElementName()
Return name of the element.
Definition: PDBatom.cc:109
double GetY()
Return the Y position for the Atom.
Definition: PDBatom.cc:81
Double_t radius
Atom Class.
Definition: PDBatom.hh:56
double fY
Y orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:103
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
double fVdwRadius
Definition: PDBatom.hh:105
double fOccupancy
Occupancy for the Atom.
Definition: PDBatom.hh:106
double fZ
Z orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:104
double fTempFactor
Temperature factor for the Atom.
Definition: PDBatom.hh:108
double fX
X orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:102
double GetZ()
Return the Z position for the Atom.
Definition: PDBatom.cc:88
Char_t n[5]
const std::string & GetName()
Return name of the atom.
Definition: PDBatom.cc:102
int fResSeq
Residue sequence number.
Definition: PDBatom.hh:101
void SetNext(Atom *)
Set the next atom.
Definition: PDBatom.cc:123
double GetVanDerWaalsRadius()
Return name of the atom.
Definition: PDBatom.cc:116
std::string fResName
Residue name.
Definition: PDBatom.hh:100
int fNumInRes
its number in residue sequence
Definition: PDBatom.hh:98
double GetX()
Return the X position for the Atom.
Definition: PDBatom.cc:74