Skip to content

Commit 9ceef4f

Browse files
raffaelladevitac-dilks
authored andcommitted
set max pathlength in swimming for vertexing to 50 cm
1 parent b465cde commit 9ceef4f

File tree

2 files changed

+11
-0
lines changed
  • common-tools/swim-tools/src/main/java/org/jlab/clas/swimtools
  • reconstruction/vtx/src/main/java/org/jlab/rec/vtx

2 files changed

+11
-0
lines changed

common-tools/swim-tools/src/main/java/org/jlab/clas/swimtools/Swim.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ public Swim() {
6363
}
6464
}
6565

66+
/**
67+
* Set max swimming path length
68+
*
69+
* @param maxPathLength
70+
*/
71+
public void setMaxPathLength(double _maxPathLength) {
72+
this._maxPathLength = _maxPathLength;
73+
}
74+
6675
/**
6776
*
6877
* @param direction

reconstruction/vtx/src/main/java/org/jlab/rec/vtx/DoubleSwim.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public DoubleSwim() {
3939
swim2.stepSize= 500.00* 1.e-6; // 500 microns
4040
swim1.distanceBetweenSaves=500.00 * 1.e-6; // 500 microns
4141
swim2.distanceBetweenSaves=500.00 * 1.e-6; // 500 microns
42+
swim1.setMaxPathLength(0.5); // m
43+
swim2.setMaxPathLength(0.5); // m
4244
}
4345

4446
public void init(double x01, double y01, double z01, double px01, double py01, double pz01, int charge1,

0 commit comments

Comments
 (0)