Geant4  10.02.p03
Atom Class Reference

Atom Class. More...

#include <PDBatom.hh>

Collaboration diagram for Atom:

Public Member Functions

 Atom (int serial, string name, string resName, int numInRes, int resSeq, double xInit, double yInit, double zInit, double radius, double occupancy, double tempFactor, string element)
 constructor with initialization More...
 
 ~Atom ()
 Empty destructor. More...
 
AtomGetNext ()
 Returns the next Atom. More...
 
double GetX ()
 Return the X position for the Atom. More...
 
double GetY ()
 Return the Y position for the Atom. More...
 
double GetZ ()
 Return the Z position for the Atom. More...
 
int GetID ()
 Return the Atom's ID. More...
 
string GetName ()
 Return name of the atom. More...
 
string GetElementName ()
 Return name of the element. More...
 
double GetVanDerWaalsRadius ()
 Return name of the atom. More...
 
void SetNext (Atom *)
 Set the next atom. More...
 

Public Attributes

int fSerial
 its serial number More...
 
int fNumInRes
 its number in residue sequence More...
 
string fName
 Atom name. More...
 
string fResName
 Residue name. More...
 
int fResSeq
 Residue sequence number. More...
 
double fX
 X orthogonal coordinates in Angstroms. More...
 
double fY
 Y orthogonal coordinates in Angstroms. More...
 
double fZ
 Z orthogonal coordinates in Angstroms. More...
 
double fVdwRadius
 
double fOccupancy
 Occupancy for the Atom. More...
 
string fElement
 Element symbol extracted from 'atom name'. More...
 
double fTempFactor
 Temperature factor for the Atom. More...
 

Private Attributes

AtomfpNext
 Pointer to the next Atom. More...
 

Detailed Description

Atom Class.

This Class define Atom model ...

Definition at line 57 of file PDBatom.hh.

Constructor & Destructor Documentation

◆ Atom()

Atom::Atom ( int  serial,
string  name,
string  resName,
int  numInRes,
int  resSeq,
double  xInit,
double  yInit,
double  zInit,
double  radius,
double  occupancy,
double  tempFactor,
string  element 
)

constructor with initialization

< Atom name

< Residue name

< Residue sequence number

< occupancy

Definition at line 44 of file PDBatom.cc.

48 {
49  fSerial=s;
50  fName=n;
51  fResName=rN;
52  fNumInRes=numInRes;
53  fResSeq=rS;
54  fX=xInit;
55  fY=yInit;
56  fZ=zInit;
58  fOccupancy=o;
59  fTempFactor=tF;
60  fElement=e;
61  fpNext=0;
62 }
string fResName
Residue name.
Definition: PDBatom.hh:92
int fSerial
its serial number
Definition: PDBatom.hh:89
double fZ
Z orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:96
static const double s
Definition: G4SIunits.hh:168
Char_t n[5]
int fNumInRes
its number in residue sequence
Definition: PDBatom.hh:90
string fName
Atom name.
Definition: PDBatom.hh:91
string fElement
Element symbol extracted from &#39;atom name&#39;.
Definition: PDBatom.hh:99
int fResSeq
Residue sequence number.
Definition: PDBatom.hh:93
double fVdwRadius
Definition: PDBatom.hh:97
double fTempFactor
Temperature factor for the Atom.
Definition: PDBatom.hh:100
double fOccupancy
Occupancy for the Atom.
Definition: PDBatom.hh:98
double fX
X orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:94
double fY
Y orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:95
Atom * fpNext
Pointer to the next Atom.
Definition: PDBatom.hh:103

◆ ~Atom()

Atom::~Atom ( )
inline

Empty destructor.

Definition at line 66 of file PDBatom.hh.

67  {
68  };

Member Function Documentation

◆ GetElementName()

string Atom::GetElementName ( )

Return name of the element.

Definition at line 108 of file PDBatom.cc.

109 {
110  return fElement;
111 }
string fElement
Element symbol extracted from &#39;atom name&#39;.
Definition: PDBatom.hh:99

◆ GetID()

int Atom::GetID ( )

Return the Atom's ID.

Definition at line 94 of file PDBatom.cc.

95 {
96  return fSerial;
97 }
int fSerial
its serial number
Definition: PDBatom.hh:89

◆ GetName()

string Atom::GetName ( void  )

Return name of the atom.

Definition at line 101 of file PDBatom.cc.

102 {
103  return fName;
104 }
string fName
Atom name.
Definition: PDBatom.hh:91

◆ GetNext()

Atom * Atom::GetNext ( )

Returns the next Atom.

Definition at line 66 of file PDBatom.cc.

67 {
68  return fpNext;
69 }
Atom * fpNext
Pointer to the next Atom.
Definition: PDBatom.hh:103
Here is the caller graph for this function:

◆ GetVanDerWaalsRadius()

double Atom::GetVanDerWaalsRadius ( )

Return name of the atom.

Definition at line 115 of file PDBatom.cc.

116 {
117  return fVdwRadius;
118 }
double fVdwRadius
Definition: PDBatom.hh:97

◆ GetX()

double Atom::GetX ( )

Return the X position for the Atom.

Definition at line 73 of file PDBatom.cc.

74 {
75  return fX;
76 }
double fX
X orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:94
Here is the caller graph for this function:

◆ GetY()

double Atom::GetY ( )

Return the Y position for the Atom.

Definition at line 80 of file PDBatom.cc.

81 {
82  return fY;
83 }
double fY
Y orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:95
Here is the caller graph for this function:

◆ GetZ()

double Atom::GetZ ( )

Return the Z position for the Atom.

Definition at line 87 of file PDBatom.cc.

88 {
89  return fZ;
90 }
double fZ
Z orthogonal coordinates in Angstroms.
Definition: PDBatom.hh:96
Here is the caller graph for this function:

◆ SetNext()

void Atom::SetNext ( Atom AtomNext)

Set the next atom.

Definition at line 122 of file PDBatom.cc.

123 {
124  fpNext=AtomNext;
125 }
Atom * fpNext
Pointer to the next Atom.
Definition: PDBatom.hh:103
Here is the caller graph for this function:

Member Data Documentation

◆ fElement

string Atom::fElement

Element symbol extracted from 'atom name'.

Definition at line 99 of file PDBatom.hh.

◆ fName

string Atom::fName

Atom name.

Definition at line 91 of file PDBatom.hh.

◆ fNumInRes

int Atom::fNumInRes

its number in residue sequence

Definition at line 90 of file PDBatom.hh.

◆ fOccupancy

double Atom::fOccupancy

Occupancy for the Atom.

Definition at line 98 of file PDBatom.hh.

◆ fpNext

Atom* Atom::fpNext
private

Pointer to the next Atom.

Definition at line 103 of file PDBatom.hh.

◆ fResName

string Atom::fResName

Residue name.

Definition at line 92 of file PDBatom.hh.

◆ fResSeq

int Atom::fResSeq

Residue sequence number.

Definition at line 93 of file PDBatom.hh.

◆ fSerial

int Atom::fSerial

its serial number

Definition at line 89 of file PDBatom.hh.

◆ fTempFactor

double Atom::fTempFactor

Temperature factor for the Atom.

Definition at line 100 of file PDBatom.hh.

◆ fVdwRadius

double Atom::fVdwRadius

Definition at line 97 of file PDBatom.hh.

◆ fX

double Atom::fX

X orthogonal coordinates in Angstroms.

Definition at line 94 of file PDBatom.hh.

◆ fY

double Atom::fY

Y orthogonal coordinates in Angstroms.

Definition at line 95 of file PDBatom.hh.

◆ fZ

double Atom::fZ

Z orthogonal coordinates in Angstroms.

Definition at line 96 of file PDBatom.hh.


The documentation for this class was generated from the following files: