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::ClusterSBPoints |
( |
std::set< SBPoint *> |
pPoints | ) |
|
Definition at line 47 of file ClusterSBPoints.cc.
51 std::set<SBPoint*>::iterator itPt;
52 for(itPt = pSBPoints.begin(); itPt != pSBPoints.end(); ++itPt)
void AddSBPoint(SBPoint *pSBPoint)
void UpdateDoubleStrand()
std::set< SBPoint *> fpRegisteredSBPoints
◆ ~ClusterSBPoints()
ClusterSBPoints::~ClusterSBPoints |
( |
| ) |
|
◆ AddSBPoint()
void ClusterSBPoints::AddSBPoint |
( |
SBPoint * |
pSBPoint | ) |
|
Definition at line 79 of file ClusterSBPoints.cc.
void UpdateDoubleStrand()
void SetCluster(ClusterSBPoints *pCluster)
std::set< SBPoint *> fpRegisteredSBPoints
◆ Clear()
void ClusterSBPoints::Clear |
( |
| ) |
|
Definition at line 65 of file ClusterSBPoints.cc.
67 std::set<SBPoint*>::iterator itPt;
72 (*itPt)->CleanCluster();
std::set< SBPoint *> fpRegisteredSBPoints
◆ FindAllPointsPossible()
void ClusterSBPoints::FindAllPointsPossible |
( |
std::vector< SBPoint *> * |
ptToCheck, |
|
|
G4int |
minPts, |
|
|
G4double |
minDist |
|
) |
| |
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())
209 if(this->
GetSize() >= (
unsigned int)pMinPts)
214 itPt = pPtsToCheck->begin();
void AddSBPoint(SBPoint *pSBPoint)
unsigned int GetSize() const
std::set< SBPoint *> fpRegisteredSBPoints
bool HasInBarycenter(const SBPoint *, G4double)
◆ GetBarycenter()
Definition at line 90 of file ClusterSBPoints.cc.
96 std::set<SBPoint* >::iterator itSDSPt;
101 x+= (*itSDSPt)->GetPosition().x();
102 y+= (*itSDSPt)->GetPosition().y();
103 z+= (*itSDSPt)->GetPosition().z();
CLHEP::Hep3Vector G4ThreeVector
std::set< SBPoint *> fpRegisteredSBPoints
◆ GetEdep()
G4double ClusterSBPoints::GetEdep |
( |
| ) |
const |
Definition at line 114 of file ClusterSBPoints.cc.
117 std::set<SBPoint* >::iterator itSDSPt;
122 res += (*itSDSPt)->GetEdep();
std::set< SBPoint *> fpRegisteredSBPoints
◆ GetRegistredSBPoints()
std::set<SBPoint* > ClusterSBPoints::GetRegistredSBPoints |
( |
| ) |
const |
|
inline |
◆ GetSize()
unsigned int ClusterSBPoints::GetSize |
( |
| ) |
const |
|
inline |
◆ HasIn()
bool ClusterSBPoints::HasIn |
( |
const SBPoint * |
pPtToCheck, |
|
|
G4double |
pMinDist |
|
) |
| |
Definition at line 224 of file ClusterSBPoints.cc.
227 std::set<SBPoint*>::iterator itClusPt;
233 if((*pPtToCheck != *(*itClusPt)))
std::set< SBPoint *> fpRegisteredSBPoints
bool AreOnTheSameCluster(const SBPoint *pPt1, const SBPoint *pPt2, G4double pMinDist)
◆ HasInBarycenter()
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))
G4ThreeVector GetBarycenter() const
G4ThreeVector GetPosition() const
◆ IsDSB()
bool ClusterSBPoints::IsDSB |
( |
| ) |
const |
|
inline |
◆ IsSSB()
bool ClusterSBPoints::IsSSB |
( |
| ) |
const |
|
inline |
◆ MergeWith()
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
◆ NoticeInternalPts()
void ClusterSBPoints::NoticeInternalPts |
( |
| ) |
|
will set to all store SBPoint they are part of this cluster
◆ UpdateDoubleStrand()
void ClusterSBPoints::UpdateDoubleStrand |
( |
| ) |
|
|
private |
Definition at line 129 of file ClusterSBPoints.cc.
132 bool firstStrandTouch =
false;
133 bool secondStrandTouch =
false;
135 std::set<SBPoint* >::iterator itSDSPt;
141 if( ((*itSDSPt)->GetTouchedStrand() == 0 ) && !firstStrandTouch )
143 firstStrandTouch =
true;
144 if(secondStrandTouch)
151 if( ((*itSDSPt)->GetTouchedStrand() == 1 ) && !secondStrandTouch )
153 secondStrandTouch =
true;
std::set< SBPoint *> fpRegisteredSBPoints
◆ fIsDoubleSB
bool ClusterSBPoints::fIsDoubleSB |
|
private |
◆ fpRegisteredSBPoints
std::set<SBPoint* > ClusterSBPoints::fpRegisteredSBPoints |
|
private |
◆ fSize
unsigned int ClusterSBPoints::fSize |
|
private |
The documentation for this class was generated from the following files: