Skip to content
Closed
Show file tree
Hide file tree
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
18 changes: 9 additions & 9 deletions reconstruction/dc/src/main/java/org/jlab/rec/dc/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static Constants getInstance() {
public int SECTORSELECT = 0;
public int NSUPERLAYERTRACKING = 5;
private boolean USETSTART = true;
private boolean USETIMETBETA = false;
//private boolean USETIMETBETA = false;
private boolean CHECKBETA = false;
private int T2D = 1; // 1=polynomial, 0=exponential
private boolean USEDOUBLETS = false;
Expand Down Expand Up @@ -296,13 +296,13 @@ public void setUSETSTART(boolean usetstart) {
USETSTART = usetstart;
}

public boolean useUSETIMETBETA() {
return USETIMETBETA;
}

public void setUSETIMETBETA(boolean usetimebeta) {
USETIMETBETA = usetimebeta;
}
// public boolean useUSETIMETBETA() {
// return USETIMETBETA;
// }
//
// public void setUSETIMETBETA(boolean usetimebeta) {
// USETIMETBETA = usetimebeta;
// }

public double getWIREDIST() {
return WIREDIST;
Expand Down Expand Up @@ -429,7 +429,7 @@ public void printConfig(String engine) {
LOGGER.log(Level.INFO, "["+engine+"] run with wire ministagger = " + MINISTAGGERSTATUS.getName());
LOGGER.log(Level.INFO, "["+engine+"] run with wire feedthroughs = " + FEEDTHROUGHSSTATUS.getName());
LOGGER.log(Level.INFO, "["+engine+"] run with wire distortions = " + ENDPLATESBOWING);
LOGGER.log(Level.INFO, "["+engine+"] run with with time Beta correction (is false for doca Beta correction) = " + USETIMETBETA);
//LOGGER.log(Level.INFO, "["+engine+"] run with with time Beta correction (is false for doca Beta correction) = " + USETIMETBETA);
LOGGER.log(Level.INFO, "["+engine+"] run with with Beta cut = " + CHECKBETA);
LOGGER.log(Level.INFO, "["+engine+"] run with time to distance function set to exponential/polynomial (0/1) = " + T2D);
LOGGER.log(Level.INFO, "["+engine+"] run with with hit doublets recovery = " + USEDOUBLETS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,27 +385,28 @@ public void set_TimeToDistance(DataEvent event, double trkAngle, double B, Index
double deltatime_beta = 0;
double deltadoca_beta = 0;

if(Constants.getInstance().useUSETIMETBETA()==true) {
deltatime_beta = calcDeltaTimeBetaTFCN(this.get_Time(), tab, beta);
}

if(event.hasBank("MC::Particle")==false) {
distance = tde.interpolateOnGrid(B, Math.toDegrees(ralpha),
this.getCorrectedTime(this.get_Time(), deltatime_beta),
secIdx, slIdx);
} else {
distance = tde.interpolateOnGrid(B, Math.toDegrees(ralpha),
this.getCorrectedTime(this.get_Time(), 0),
secIdx, slIdx) ;
}
//get deltadoca
if(Constants.getInstance().useUSETIMETBETA()==false) {
deltadoca_beta = calcDeltaDocaBeta(distance, tab, beta);
}

distance -=deltadoca_beta;
this.set_DeltaTimeBeta(deltatime_beta);
this.set_DeltaDocaBeta(deltadoca_beta);
// if(Constants.getInstance().useUSETIMETBETA()==true) {
// deltatime_beta = calcDeltaTimeBetaTFCN(this.get_Time(), tab, beta);
// }
//
// if(event.hasBank("MC::Particle")==false) {
// distance = tde.interpolateOnGrid(B, Math.toDegrees(ralpha),
// this.getCorrectedTime(this.get_Time(), deltatime_beta),
// secIdx, slIdx);
// } else {
// distance = tde.interpolateOnGrid(B, Math.toDegrees(ralpha),
// this.getCorrectedTime(this.get_Time(), 0),
// secIdx, slIdx) ;
// }
// //get deltadoca
// if(Constants.getInstance().useUSETIMETBETA()==false) {
// deltadoca_beta = calcDeltaDocaBeta(distance, tab, beta);
// }
//
// distance -=deltadoca_beta;
//this.set_DeltaTimeBeta(deltatime_beta);
//this.set_DeltaDocaBeta(deltadoca_beta);
distance = tde.interpolateOnGrid(B, Math.toDegrees(ralpha), beta, this.get_Time(), secIdx, slIdx);

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public static double polyFcnMac(double x, double alpha, double bfield, double v_
double time = 0;
// alpha correction
double cos30minusalpha=Math.cos(Math.toRadians(30.-alpha));
double dmaxalpha = dmax*cos30minusalpha;
double dmaxalpha = dmax*cos30minusalpha;
double xhatalpha = x/dmaxalpha;
// rcapital is an intermediate parameter
double rcapital = R*dmax;
Expand Down
Loading
Loading