Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gavalian committed Jul 26, 2023
1 parent b995e17 commit 6f9a255
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public boolean processDataEvent(DataEvent event) {
DataBank bank = event.getBank("REC::Particle");
int index1 = this.index(bank, 22, 0);
int index2 = this.index(bank, 22, 1);
LorentzVector vL_g1 = this.getVector(bank, index1, 0.0);
LorentzVector vL_g2 = this.getVector(bank, index2, 0.0);
if(vL_g1.p()>1.0&&vL_g2.p()>1.0){
vL_g1.add(vL_g2);
pion.fill(vL_g1.mass());
if(index1>0&&index2>0){
LorentzVector vL_g1 = this.getVector(bank, index1, 0.0);
LorentzVector vL_g2 = this.getVector(bank, index2, 0.0);
if(vL_g1.p()>1.0&&vL_g2.p()>1.0){
vL_g1.add(vL_g2);
pion.fill(vL_g1.mass());
}
}
}
return true;
Expand Down

0 comments on commit 6f9a255

Please sign in to comment.