define a cluster of SB Points
More...
#include <ClusterSBPoints.hh>
define a cluster of SB Points
Definition at line 48 of file ClusterSBPoints.hh.
ClusterSBPoints::ClusterSBPoints |
( |
std::set< SBPoint * > |
pPoints | ) |
|
Definition at line 47 of file ClusterSBPoints.cc.
48 fpRegisteredSBPoints()
51 std::set<SBPoint*>::iterator itPt;
52 for(itPt = pSBPoints.begin(); itPt != pSBPoints.end(); ++itPt)
void AddSBPoint(SBPoint *pSBPoint)
ClusterSBPoints::~ClusterSBPoints |
( |
| ) |
|
Definition at line 79 of file ClusterSBPoints.cc.
82 fpRegisteredSBPoints.insert(pSBPoint);
void SetCluster(ClusterSBPoints *pCluster)
void ClusterSBPoints::Clear |
( |
| ) |
|
Definition at line 65 of file ClusterSBPoints.cc.
67 std::set<SBPoint*>::iterator itPt;
68 for(itPt = fpRegisteredSBPoints.begin();
69 itPt != fpRegisteredSBPoints.end();
72 (*itPt)->CleanCluster();
74 fpRegisteredSBPoints.clear();
Definition at line 192 of file ClusterSBPoints.cc.
195 assert((
unsigned int)pMinPts > this->
GetSize());
196 std::vector<SBPoint*>::iterator itPt = pPtsToCheck->begin();
197 while(itPt != pPtsToCheck->end() )
203 if( (!(*itPt)->HasCluster())
204 && (fpRegisteredSBPoints.find(*itPt) == fpRegisteredSBPoints.end())
209 if(this->
GetSize() >= (
unsigned int)pMinPts)
214 itPt = pPtsToCheck->begin();
void AddSBPoint(SBPoint *pSBPoint)
unsigned int GetSize() const
bool HasInBarycenter(const SBPoint *, G4double)
Definition at line 90 of file ClusterSBPoints.cc.
96 std::set<SBPoint* >::iterator itSDSPt;
97 for(itSDSPt = fpRegisteredSBPoints.begin();
98 itSDSPt != fpRegisteredSBPoints.end();
101 x+= (*itSDSPt)->GetPosition().x();
102 y+= (*itSDSPt)->GetPosition().y();
103 z+= (*itSDSPt)->GetPosition().z();
107 x/fpRegisteredSBPoints.size(),
108 y/fpRegisteredSBPoints.size(),
109 z/fpRegisteredSBPoints.size());
CLHEP::Hep3Vector G4ThreeVector
G4double ClusterSBPoints::GetEdep |
( |
| ) |
const |
Definition at line 114 of file ClusterSBPoints.cc.
117 std::set<SBPoint* >::iterator itSDSPt;
118 for(itSDSPt = fpRegisteredSBPoints.begin();
119 itSDSPt != fpRegisteredSBPoints.end();
122 res += (*itSDSPt)->GetEdep();
std::set<SBPoint* > ClusterSBPoints::GetRegistredSBPoints |
( |
| ) |
const |
|
inline |
unsigned int ClusterSBPoints::GetSize |
( |
| ) |
const |
|
inline |
bool ClusterSBPoints::HasIn |
( |
const SBPoint * |
pPtToCheck, |
|
|
G4double |
pMinDist |
|
) |
| |
Definition at line 224 of file ClusterSBPoints.cc.
227 std::set<SBPoint*>::iterator itClusPt;
228 for(itClusPt = fpRegisteredSBPoints.begin();
229 itClusPt != fpRegisteredSBPoints.end();
233 if((*pPtToCheck != *(*itClusPt)))
bool AreOnTheSameCluster(const SBPoint *pPt1, const SBPoint *pPt2, G4double pMinDist)
bool ClusterSBPoints::HasInBarycenter |
( |
const SBPoint * |
pPtToCheck, |
|
|
G4double |
pMinDist |
|
) |
| |
Definition at line 247 of file ClusterSBPoints.cc.
260 if(((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)+(z1-z2)*(z1-z2))<=
261 (pMinDist/
nm*pMinDist/
nm))
static constexpr double nm
G4ThreeVector GetBarycenter() const
G4ThreeVector GetPosition() const
bool ClusterSBPoints::IsDSB |
( |
| ) |
const |
|
inline |
bool ClusterSBPoints::IsSSB |
( |
| ) |
const |
|
inline |
this will insert all registredSBPoint from the given cluster to this cluster.
Definition at line 274 of file ClusterSBPoints.cc.
278 std::set<SBPoint*>::iterator itPt;
279 for(itPt = points.begin(); itPt != points.end(); ++itPt)
void AddSBPoint(SBPoint *pSBPoint)
std::set< SBPoint * > GetRegistredSBPoints() const
void ClusterSBPoints::NoticeInternalPts |
( |
| ) |
|
will set to all store SBPoint they are part of this cluster
The documentation for this class was generated from the following files: