Skip to content
Snippets Groups Projects
Commit e7c893a6 authored by Cyril Lenain's avatar Cyril Lenain :surfer_tone3:
Browse files

* debugging NPCrossTalk

parent 8eb99a45
No related branches found
No related tags found
No related merge requests found
......@@ -80,10 +80,10 @@ vector<int> CrossTalk::ComputeCrossTalk(){
Dist = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1) + (z2-z1)*(z2-z1));
if(Dist < coef*dR1){
if(ID_ClustHit[jj] < ID_ClustHit[j]){
ID_ClustHit[j] == ID_ClustHit[jj];
ID_ClustHit[j] = ID_ClustHit[jj];
}
else if(ID_ClustHit[jj] > ID_ClustHit[j]){
ID_ClustHit[jj] == ID_ClustHit[j];
ID_ClustHit[jj] = ID_ClustHit[j];
}
}
}
......@@ -134,6 +134,7 @@ vector<int> CrossTalk::ComputeCrossTalk(){
x2 = (*HitX)[mapOfFirstN[i]], y2 = (*HitY)[mapOfFirstN[i]], z2 = (*HitZ)[mapOfFirstN[i]], t2 = (*HitT)[mapOfFirstN[i]];
Dist = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1) + (z2-z1)*(z2-z1));
Dmax = (t2-t1)*v_n;
cout << Dmax << endl;
if(Dist < Dmax){
if(t1 < t2){
CrossTalk.push_back(j);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment