Geant4  10.02.p02
ClusterSBPoints Class Reference

define a cluster of SB Points More...

#include <ClusterSBPoints.hh>

Public Member Functions

 ClusterSBPoints (std::set< SBPoint * > pPoints)
 
 ~ClusterSBPoints ()
 
bool IsDSB () const
 
bool IsSSB () const
 
unsigned int GetSize () const
 
void AddSBPoint (SBPoint *pSBPoint)
 
G4ThreeVector GetBarycenter () const
 
G4double GetEdep () const
 
void FindAllPointsPossible (std::vector< SBPoint * > *ptToCheck, G4int minPts, G4double minDist)
 
void NoticeInternalPts ()
 will set to all store SBPoint they are part of this cluster More...
 
bool HasIn (const SBPoint *, G4double)
 
bool HasInBarycenter (const SBPoint *, G4double)
 
void MergeWith (ClusterSBPoints *)
 this will insert all registredSBPoint from the given cluster to this cluster. More...
 
std::set< SBPoint * > GetRegistredSBPoints () const
 
void Clear ()
 

Private Member Functions

void UpdateDoubleStrand ()
 

Private Attributes

unsigned int fSize
 
bool fIsDoubleSB
 
std::set< SBPoint * > fpRegisteredSBPoints
 

Detailed Description

define a cluster of SB Points

Definition at line 48 of file ClusterSBPoints.hh.

Constructor & Destructor Documentation

ClusterSBPoints::ClusterSBPoints ( std::set< SBPoint * >  pPoints)

Definition at line 47 of file ClusterSBPoints.cc.

References AddSBPoint(), and UpdateDoubleStrand().

+ Here is the call graph for this function:

ClusterSBPoints::~ClusterSBPoints ( )

Definition at line 60 of file ClusterSBPoints.cc.

References Clear().

+ Here is the call graph for this function:

Member Function Documentation

void ClusterSBPoints::AddSBPoint ( SBPoint pSBPoint)

Definition at line 79 of file ClusterSBPoints.cc.

References fpRegisteredSBPoints, SBPoint::SetCluster(), and UpdateDoubleStrand().

Referenced by ClusterSBPoints(), FindAllPointsPossible(), and MergeWith().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ClusterSBPoints::Clear ( )

Definition at line 65 of file ClusterSBPoints.cc.

References fpRegisteredSBPoints.

Referenced by MergeWith(), and ~ClusterSBPoints().

+ Here is the caller graph for this function:

void ClusterSBPoints::FindAllPointsPossible ( std::vector< SBPoint * > *  ptToCheck,
G4int  minPts,
G4double  minDist 
)

Definition at line 192 of file ClusterSBPoints.cc.

References AddSBPoint(), fpRegisteredSBPoints, GetSize(), and HasInBarycenter().

+ Here is the call graph for this function:

G4ThreeVector ClusterSBPoints::GetBarycenter ( ) const

Definition at line 90 of file ClusterSBPoints.cc.

References fpRegisteredSBPoints, x, and z.

Referenced by HasInBarycenter().

+ Here is the caller graph for this function:

G4double ClusterSBPoints::GetEdep ( ) const

Definition at line 114 of file ClusterSBPoints.cc.

References fpRegisteredSBPoints.

std::set<SBPoint* > ClusterSBPoints::GetRegistredSBPoints ( ) const
inline

Definition at line 85 of file ClusterSBPoints.hh.

References fpRegisteredSBPoints.

Referenced by MergeWith().

+ Here is the caller graph for this function:

unsigned int ClusterSBPoints::GetSize ( ) const
inline

Definition at line 64 of file ClusterSBPoints.hh.

References fpRegisteredSBPoints.

Referenced by FindAllPointsPossible().

+ Here is the caller graph for this function:

bool ClusterSBPoints::HasIn ( const SBPoint pPtToCheck,
G4double  pMinDist 
)

Definition at line 224 of file ClusterSBPoints.cc.

References AreOnTheSameCluster(), and fpRegisteredSBPoints.

+ Here is the call graph for this function:

bool ClusterSBPoints::HasInBarycenter ( const SBPoint pPtToCheck,
G4double  pMinDist 
)

Definition at line 247 of file ClusterSBPoints.cc.

References GetBarycenter(), SBPoint::GetPosition(), and nm.

Referenced by FindAllPointsPossible().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool ClusterSBPoints::IsDSB ( ) const
inline

Definition at line 54 of file ClusterSBPoints.hh.

References fIsDoubleSB.

Referenced by IsSSB().

+ Here is the caller graph for this function:

bool ClusterSBPoints::IsSSB ( ) const
inline

Definition at line 59 of file ClusterSBPoints.hh.

References IsDSB().

+ Here is the call graph for this function:

void ClusterSBPoints::MergeWith ( ClusterSBPoints pCluster)

this will insert all registredSBPoint from the given cluster to this cluster.

Definition at line 274 of file ClusterSBPoints.cc.

References AddSBPoint(), Clear(), and GetRegistredSBPoints().

+ Here is the call graph for this function:

void ClusterSBPoints::NoticeInternalPts ( )

will set to all store SBPoint they are part of this cluster

void ClusterSBPoints::UpdateDoubleStrand ( )
private

Definition at line 129 of file ClusterSBPoints.cc.

References fIsDoubleSB, and fpRegisteredSBPoints.

Referenced by AddSBPoint(), and ClusterSBPoints().

+ Here is the caller graph for this function:

Member Data Documentation

bool ClusterSBPoints::fIsDoubleSB
private

Definition at line 96 of file ClusterSBPoints.hh.

Referenced by IsDSB(), and UpdateDoubleStrand().

std::set<SBPoint* > ClusterSBPoints::fpRegisteredSBPoints
private
unsigned int ClusterSBPoints::fSize
private

Definition at line 95 of file ClusterSBPoints.hh.


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