Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Time corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
zieglerv committed Dec 29, 2017
1 parent 234db44 commit 5c0e1cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,12 @@ public DataBank fillTBHitsBank(DataEvent event, List<FittedHit> hitlist) {
bank.setFloat("B", i, (float) hitlist.get(i).get_B());

if(hitlist.get(i).get_AssociatedTBTrackID()>-1 && event.hasBank("MC::Particle")==false) {

if(hitlist.get(i).getSignalPropagTimeAlongWire()==0) {
if(hitlist.get(i).getSignalPropagTimeAlongWire()==0 || hitlist.get(i).get_AssociatedTBTrackID()<1) {
bank.setFloat("TProp", i, (float) hitlist.get(i).getTProp()); //old value if track fit failed
} else {
bank.setFloat("TProp", i, (float) hitlist.get(i).getSignalPropagTimeAlongWire()); //new calculated value
}
if(hitlist.get(i).getSignalTimeOfFlight()==0) {
if(hitlist.get(i).getSignalTimeOfFlight()==0 || hitlist.get(i).get_AssociatedTBTrackID()<1) {
bank.setFloat("TFlight", i, (float) hitlist.get(i).getTFlight());
} else {
bank.setFloat("TFlight", i, (float) hitlist.get(i).getSignalTimeOfFlight());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public void set_AssociatedClusterID(int _AssociatedClusterID) {
this._AssociatedClusterID = _AssociatedClusterID;
}

private int _AssociatedHBTrackID;
private int _AssociatedHBTrackID =-1;

public void set_AssociatedHBTrackID(int _id) {
_AssociatedHBTrackID = _id;
Expand Down

0 comments on commit 5c0e1cf

Please sign in to comment.