10 #ifndef LMD_LMDSENSORALIGNMENT_PNDLMDALIGNSTRUCTS_H_
11 #define LMD_LMDSENSORALIGNMENT_PNDLMDALIGNSTRUCTS_H_
55 cout <<
"something is wrong! stored OverlapID does not match added ID!\n";
82 int quantileMargin =
samples.size() / 10;
84 vector<double>::const_iterator first =
samples.begin() + quantileMargin;
85 vector<double>::const_iterator last =
samples.end() - quantileMargin;
86 vector<double> confidenceInterval(first, last);
89 _maxDist = confidenceInterval[confidenceInterval.size() - 1];
93 _minDist =
std::max(0.0, confidenceInterval[0] - spread);
122 pixelHit(
int idVal,
double colVal,
double rowVal) {
184 double _col1, _col2, _row1, _row2;
188 for (
size_t j = 0; j < other.
pixelHits.size(); j++) {
192 if ((_col2 - _col1) * (_col2 - _col1) + (_row2 - _row1) * (_row2 - _row1) < 2.25) {
223 for (
size_t j =
i + 1; j <
pixelHits.size(); j++) {
238 tempDistance =
sqrt(deltax * deltax + deltay * deltay);
255 <<
" pixels in diameter." <<
"\n";
pixelHit(int idVal, double colVal, double rowVal)
friend F32vec4 sqrt(const F32vec4 &a)
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
pixelCluster(const pixelHit &hit)
Int_t getOverlapId() const
Double_t getDistance() const
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
void addToSamples(PndLmdHitPair pair)
bool isNeighbour(pixelCluster &other)
std::vector< double > samples
vector< pixelHit > pixelHits
void merge(pixelCluster &other)
pixelCluster(const pixelCluster ©)