Skip to content

Commit 3e54d69

Browse files
raffaelladevitabaltzell
authored andcommitted
finalized FTOF:;calib
1 parent 2bd6208 commit 3e54d69

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

etc/bankdefs/hipo4/tof.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@
178178
{"name":"pindex", "type":"S", "info":"particle positionin REC::Particle"},
179179
{"name":"pid", "type":"I", "info":"particle id"},
180180
{"name":"charge", "type":"B", "info":"particle charge"},
181-
{"name":"p", "type":"F", "info":"particle momentum"},
181+
{"name":"px", "type":"F", "info":"particle momentum x component"},
182+
{"name":"py", "type":"F", "info":"particle momentum y component"},
183+
{"name":"pz", "type":"F", "info":"particle momentum z component"},
184+
{"name":"vx", "type":"F", "info":"particle vertex x coordinate"},
185+
{"name":"vy", "type":"F", "info":"particle vertex y coordinate"},
182186
{"name":"vz", "type":"F", "info":"particle vertex z coordinate"},
183187
{"name":"chi2", "type":"F", "info":"track chi2"},
184188
{"name":"NDF", "type":"S", "info":"NDF"},

reconstruction/calib/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
<groupId>org.jlab.clas</groupId>
1414
<artifactId>clas12rec</artifactId>
1515
<relativePath>../../parent/pom.xml</relativePath>
16-
<version>11.1.1-SNAPSHOT</version>
16+
<version>12.0.4t-SNAPSHOT</version>
1717
</parent>
1818

1919
<dependencies>
2020

2121
<dependency>
2222
<groupId>org.jlab.clas</groupId>
2323
<artifactId>clas-io</artifactId>
24-
<version>11.1.1-SNAPSHOT</version>
24+
<version>12.0.4t-SNAPSHOT</version>
2525
</dependency>
2626

2727
<dependency>
2828
<groupId>org.jlab.clas</groupId>
2929
<artifactId>clas-reco</artifactId>
30-
<version>11.1.1-SNAPSHOT</version>
30+
<version>12.0.4t-SNAPSHOT</version>
3131
</dependency>
3232

3333
</dependencies>

reconstruction/calib/src/main/java/org/jlab/calibration/detectors/FTOFCalibrator.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ public DataBank buildCalibBank(DataEvent event) {
8080
double path = paths.containsKey(pindex) &&
8181
paths.get(pindex).containsKey(layer) ?
8282
paths.get(pindex).get(layer) : 0;
83-
double px = part.getFloat("px", pindex);
84-
double py = part.getFloat("py", pindex);
85-
double pz = part.getFloat("pz", pindex);
8683
calib.setShort("id", row, hits.getShort("id", i));
8784
calib.setShort("status", row, hits.getShort("status", i));
8885
calib.setShort("trackid", row, hits.getShort("trackid", i));
@@ -100,7 +97,11 @@ public DataBank buildCalibBank(DataEvent event) {
10097
calib.setFloat("tz", row, hits.getFloat("tz", i));
10198
calib.setInt("pid", row, part.getInt("pid", pindex));
10299
calib.setByte("charge", row, part.getByte("charge", pindex));
103-
calib.setFloat("p", row, (float) Math.sqrt(px*px+py*py+pz*pz));
100+
calib.setFloat("px", row, part.getFloat("px", pindex));
101+
calib.setFloat("py", row, part.getFloat("py", pindex));
102+
calib.setFloat("pz", row, part.getFloat("pz", pindex));
103+
calib.setFloat("vx", row, part.getFloat("vx", pindex));
104+
calib.setFloat("vy", row, part.getFloat("vy", pindex));
104105
calib.setFloat("vz", row, part.getFloat("vz", pindex));
105106
calib.setFloat("pathLength", row, (float) path);
106107
calib.setFloat("pathLengthThruBar", row, hits.getFloat("pathLengthThruBar", i));

0 commit comments

Comments
 (0)