ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/examples/extended/medical/dna/pdb4dna/include/PDBlib.hh>
Public Member Functions | |
PDBlib () | |
First constructor. | |
~PDBlib () | |
Destructor. | |
Molecule * | Load (const std::string &filename, unsigned short int &isDNA, unsigned short int verbose) |
Load PDB file into memory. | |
Barycenter * | ComputeNucleotideBarycenters (Molecule *moleculeListTemp) |
Compute nucleotide barycenter from memory. | |
void | ComputeBoundingVolumeParams (Molecule *moleculeListTemp, double &dX, double &dY, double &dZ, double &tX, double &tY, double &tZ) |
Compute the corresponding bounding volume parameters. | |
void | ComputeNbNucleotidsPerStrand (Molecule *moleculeListTemp) |
Compute number of nucleotide per strand. | |
unsigned short int | ComputeMatchEdepDNA (Barycenter *, Molecule *, double x, double y, double z, int &numStrand, int &numNucleotid, int &codeResidue) |
Compute if energy is deposited in per atom. | |
Private Member Functions | |
double | DistanceTwo3Dpoints (double xA, double xB, double yA, double yB, double zA, double zB) |
return distance between two 3D points | |
Private Attributes | |
int | fNbNucleotidsPerStrand |
Number of nucleotid per strand. | |
PDBlib Class.
This Class define Molecule model ...
Definition at line 56 of file PDBlib.hh.
View newest version in sPHENIX GitHub at line 56 of file PDBlib.hh
PDBlib::PDBlib | ( | ) |
|
inline |
void PDBlib::ComputeBoundingVolumeParams | ( | Molecule * | moleculeListTemp, |
double & | dX, | ||
double & | dY, | ||
double & | dZ, | ||
double & | tX, | ||
double & | tY, | ||
double & | tZ | ||
) |
Compute the corresponding bounding volume parameters.
the corresponding bounding volume parameters
the corresponding bounding volume parameters to build a box from atoms coordinates
Definition at line 661 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 661 of file PDBlib.cc
References DBL_MAX, Molecule::fMaxGlobX, Molecule::fMaxGlobY, Molecule::fMaxGlobZ, Molecule::fMinGlobX, Molecule::fMinGlobY, Molecule::fMinGlobZ, and Molecule::GetNext().
Referenced by DetectorConstruction::DrawBoundingVolume().
unsigned short int PDBlib::ComputeMatchEdepDNA | ( | Barycenter * | BarycenterList, |
Molecule * | moleculeListTemp, | ||
double | x, | ||
double | y, | ||
double | z, | ||
int & | numStrand, | ||
int & | numNucleotid, | ||
int & | codeResidue | ||
) |
Compute if energy is deposited in per atom.
Compute barycenters.
Compute barycenters and its coordinate for nucleotides
Definition at line 759 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 759 of file PDBlib.cc
References DistanceTwo3Dpoints(), Barycenter::fCenterX, Barycenter::fCenterY, Barycenter::fCenterZ, Residue::fNbAtom, fNbNucleotidsPerStrand, Residue::fResName, Residue::fResSeq, Residue::GetFirst(), Molecule::GetFirst(), Barycenter::GetNext(), Molecule::GetNext(), Residue::GetNext(), Atom::GetNext(), Atom::GetX(), Atom::GetY(), Atom::GetZ(), INT_MAX, k, y, and z.
Compute number of nucleotide per strand.
Compute number of nucleotide per strand for DNA
Definition at line 725 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 725 of file PDBlib.cc
References fNbNucleotidsPerStrand, Molecule::GetFirst(), Molecule::GetNext(), Residue::GetNext(), and k.
Referenced by DetectorConstruction::DefineVolumes().
Barycenter * PDBlib::ComputeNucleotideBarycenters | ( | Molecule * | moleculeListTemp | ) |
Compute nucleotide barycenter from memory.
Compute barycenters.
Compute barycenters and its coordinate for nucleotides
moleculeListTemp | * moleculeList |
molecs->push_back(*moleculeListTemp);
Definition at line 451 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 451 of file PDBlib.cc
References DistanceTwo3Dpoints(), Barycenter::fCenterX, Barycenter::fCenterY, Barycenter::fCenterZ, Atom::fElement, Residue::fNbAtom, Residue::fResSeq, Atom::fX, Atom::fY, Atom::fZ, Residue::GetFirst(), Molecule::GetFirst(), Molecule::GetNext(), Residue::GetNext(), Atom::GetNext(), k, max, Barycenter::SetDistance(), Barycenter::SetNext(), and Barycenter::SetRadius().
Referenced by DetectorConstruction::DefineVolumes().
|
private |
return distance between two 3D points
Definition at line 883 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 883 of file PDBlib.cc
Referenced by ComputeMatchEdepDNA(), and ComputeNucleotideBarycenters().
Molecule * PDBlib::Load | ( | const std::string & | filename, |
unsigned short int & | isDNA, | ||
unsigned short int | verbose = 0 |
||
) |
Load PDB file into memory.
Load a PDB file into memory.
molecule (polymer,?), read line, key words
filename | G4String for filename |
isDNA | |
verbose |
Definition at line 82 of file PDBlib.cc.
View newest version in sPHENIX GitHub at line 82 of file PDBlib.cc
References compare(), DBL_MAX, g4zmq::exit(), FatalException, Molecule::fCenterX, Molecule::fCenterY, Molecule::fCenterZ, INPUTHEPMC::filename, Molecule::fMaxGlobX, Molecule::fMaxGlobY, Molecule::fMaxGlobZ, Molecule::fMinGlobX, Molecule::fMinGlobY, Molecule::fMinGlobZ, Residue::fNbAtom, Molecule::fNbResidue, Atom::fNumInRes, G4cerr, G4cout, G4endl, G4Exception(), int(), INT_MAX, maxY, maxZ, minY, Residue::SetFirst(), Molecule::SetFirst(), Molecule::SetNext(), Residue::SetNext(), Atom::SetNext(), x, y, and z.
Referenced by DetectorConstruction::DefineVolumes().
|
private |
Number of nucleotid per strand.
Definition at line 95 of file PDBlib.hh.
View newest version in sPHENIX GitHub at line 95 of file PDBlib.hh
Referenced by ComputeMatchEdepDNA(), and ComputeNbNucleotidsPerStrand().