Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SBPoint Class Reference

defines a point of energy deposition which defines a damage to the DNA. More...

#include <SBPoint.hh>

Public Member Functions

 SBPoint (unsigned int, G4ThreeVector pPos, G4double pEdep)
 constructor More...
 
 ~SBPoint ()
 destructor More...
 
G4int GetID () const
 
G4ThreeVector GetPosition () const
 
G4double GetEdep () const
 
ClusterSBPointsGetCluster () const
 
G4int GetTouchedStrand () const
 
void SetCluster (ClusterSBPoints *pCluster)
 
void SetPosition (G4ThreeVector pPos)
 
bool HasCluster () const
 
void CleanCluster ()
 
bool operator!= (const SBPoint &) const
 
bool operator== (const SBPoint &) const
 
bool operator< (const SBPoint &) const
 
bool operator> (const SBPoint &) const
 

Detailed Description

defines a point of energy deposition which defines a damage to the DNA.

Definition at line 47 of file SBPoint.hh.

Constructor & Destructor Documentation

SBPoint::SBPoint ( unsigned int  pId,
G4ThreeVector  pPos,
G4double  pEdep 
)

constructor

Definition at line 45 of file SBPoint.cc.

45  :
46 fId(pId),
47 fPosition(pPos),
48 fEdep(pEdep),
49 fpCluster(0)
50 {
51  // pick randomly one strand
52  fStrand = (G4UniformRand() < 0.5) ? 0 : 1;
53 }
#define G4UniformRand()
Definition: Randomize.hh:97
SBPoint::~SBPoint ( )

destructor

Definition at line 57 of file SBPoint.cc.

58 {
59 }

Member Function Documentation

void SBPoint::CleanCluster ( )
inline

Definition at line 87 of file SBPoint.hh.

87  {
88  fpCluster = 0;
89  }
ClusterSBPoints* SBPoint::GetCluster ( ) const
inline

Definition at line 66 of file SBPoint.hh.

66  {
67  return fpCluster;
68  }
G4double SBPoint::GetEdep ( ) const
inline

Definition at line 63 of file SBPoint.hh.

63  {
64  return fEdep;
65  }
G4int SBPoint::GetID ( ) const
inline

Definition at line 56 of file SBPoint.hh.

57  {
58  return fId;
59  }
G4ThreeVector SBPoint::GetPosition ( ) const
inline

Definition at line 60 of file SBPoint.hh.

60  {
61  return fPosition;
62  }

Here is the caller graph for this function:

G4int SBPoint::GetTouchedStrand ( ) const
inline

Definition at line 69 of file SBPoint.hh.

69  {
70  return fStrand;
71  }
bool SBPoint::HasCluster ( ) const
inline

Definition at line 84 of file SBPoint.hh.

84  {
85  return fpCluster != 0;
86  }
bool SBPoint::operator!= ( const SBPoint pPt) const

Definition at line 63 of file SBPoint.cc.

64 {
65  return pPt.fId != fId;
66 }
bool SBPoint::operator< ( const SBPoint pPt) const

Definition at line 77 of file SBPoint.cc.

78 {
79  return pPt.fId < fId;
80 }
bool SBPoint::operator== ( const SBPoint pPt) const

Definition at line 70 of file SBPoint.cc.

71 {
72  return pPt.fId == fId;
73 }
bool SBPoint::operator> ( const SBPoint pPt) const

Definition at line 84 of file SBPoint.cc.

85 {
86  return pPt.fId > fId;
87 }
void SBPoint::SetCluster ( ClusterSBPoints pCluster)
inline

Definition at line 74 of file SBPoint.hh.

75  {
76  assert(pCluster); fpCluster = pCluster;
77  }

Here is the caller graph for this function:

void SBPoint::SetPosition ( G4ThreeVector  pPos)
inline

Definition at line 79 of file SBPoint.hh.

80  {
81  fPosition=pPos;
82  }

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