Skip to content

Commit feb9889

Browse files
author
Uditha Weerasinghe
committed
fix: indexing issue between DECAYS::Particle and REC::VertDoca bank
1 parent efc71b1 commit feb9889

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • common-tools/clas-decay-tools/src/main/java/org/jlab/clas/decay/analysis

common-tools/clas-decay-tools/src/main/java/org/jlab/clas/decay/analysis/Decay.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ private boolean checkVertDocaBank(Particle p1, Particle p2) {
584584
if(getVertBank()!=null) {
585585
int nrows2 = getVertBank().rows();
586586
for(int loop2 = 0; loop2 < nrows2; loop2++){
587-
if(p1.getIdx()-1==(int) getVertBank().getShort("index1", loop2)
588-
&& p2.getIdx()-1==(int) getVertBank().getShort("index2", loop2)) {
587+
if(p1.getIdx()==(int) getVertBank().getShort("index1", loop2)
588+
&& p2.getIdx()==(int) getVertBank().getShort("index2", loop2)) {
589589
p1.vIndex=loop2;
590590
p2.vIndex=loop2;
591591

@@ -620,8 +620,8 @@ private boolean checkVertDocaBank(Particle p1, Particle p2) {
620620
pass=true;
621621
return pass;
622622
}
623-
if(p2.getIdx()-1==(int) getVertBank().getShort("index1", loop2)
624-
&& p1.getIdx()-1==(int) getVertBank().getShort("index2", loop2)) {
623+
if(p2.getIdx()==(int) getVertBank().getShort("index1", loop2)
624+
&& p1.getIdx()==(int) getVertBank().getShort("index2", loop2)) {
625625
p1.vIndex=loop2;
626626
p2.vIndex=loop2;
627627
//r = (double) getVertBank().getFloat("r", loop2);

0 commit comments

Comments
 (0)