Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public class GBLOutputDriver extends Driver {

private double minMom = 1.;
private double maxMom = 6.;

private double minPhi = -999.9;
private double maxPhi = 999.9;

private int nHits = 6;

Expand All @@ -96,6 +99,14 @@ public void setMaxMom (double val) {
maxMom = val;
}

public void setMinPhi (double val) {
minPhi = val;
}

public void setMaxPhi (double val) {
maxPhi = val;
}

//Override the Z of the target.
public void setBsZ (double input) {
bsZ = input;
Expand Down Expand Up @@ -207,6 +218,12 @@ public void process(EventHeader event) {
if (Math.abs(trackState.getTanLambda()) < 0.015)
continue;

if (Math.abs(trackState.getPhi()) < minPhi)
continue;

if (Math.abs(trackState.getPhi()) > maxPhi)
continue;

//System.out.println("Track passed tanLambda");

GenericObject gblKink = GBLKinkData.getKinkData(event, trk);
Expand Down