Skip to content

Commit c3db6b4

Browse files
authored
Merge branch 'development' into unix-time
2 parents ad7484f + 249e26f commit c3db6b4

19 files changed

Lines changed: 87 additions & 53 deletions

File tree

common-tools/clara-io/src/main/java/org/jlab/io/clara/Clas12Reader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.json.JSONObject;
1313

1414
/**
15-
* Just reads EVIO or HIPO, and passes it along.
15+
* Just reads EVIO or HIPO and passes it along.
1616
*
1717
* @author baltzell
1818
*/

common-tools/clara-io/src/main/java/org/jlab/io/clara/Clas12Writer.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@
2222
import org.json.JSONObject;
2323

2424
/**
25-
* Combined with DecoderReader, a port of the standard "decoder" to CLARA.
26-
*
25+
*
2726
* 1. Copies certain banks on-the-fly to new tag-1 events
28-
* 2. Caches helicity states and scaler readouts, for later use in post-processing
29-
* 3. Writes the helicity sequence to HEL::flip banks in new tag-1 events
30-
* 4. Adds .hipo to the output filename, if necessary
31-
* 5. Runs post-processing, writing tag-1 information to all events
27+
* 2. Caches helicity states, scaler readouts, and unix time
28+
* 3. Writes HEL::flip, RUN/HEL::scaler, and RUN::unix to new tag-1 events
29+
* 4. Runs post-processing, writing tag-1 information to all events
30+
* 5. Adds .hipo to the output filename, if necessary
3231
*
3332
* @author baltzell
3433
*/

common-tools/clara-io/src/main/java/org/jlab/io/clara/DecoderReader.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
import org.json.JSONObject;
1515

1616
/**
17-
* Combined with Clas12Writer, a port of the standard "decoder" to CLARA.
18-
*
19-
* 1. Convert EVIO to HIPO
20-
* 2. CCDB translation tables, c/s/c -> s/l/c/o
21-
* 3. Pulse extraction, e.g., Mode-1 FADC250
17+
* The CLAS decoder. Requires EVIO input.
2218
*
2319
* @author baltzell
2420
*/

common-tools/clas-utils/src/main/java/org/jlab/utils/options/OptionValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ public boolean parse(List<String> arguments){
5555
}
5656

5757
public boolean isDefault() {
58-
return this.optionValue == null || this.optionValue.equals(this.optionDefault);
58+
return this.optionValue==null || this.optionValue.equals(this.optionDefault);
5959
}
6060
}

etc/bankdefs/hipo4/rich.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@
238238
{"name":"time", "type":"F", "info":"Hit time" },
239239
{"name":"rawtime", "type":"F", "info":"Hit rawtime" },
240240
{"name":"duration", "type":"S", "info":"Hit duration" },
241+
{"name":"mchi2", "type":"F", "info":"Track-cluster matching chi2 (if any)"},
242+
{"name":"msize", "type":"S", "info":"Cluster size"},
241243
{"name":"status", "type":"S", "info":"Hit status" },
242244
{"name":"used", "type":"B", "info":"eligible for PID in time (1=yes, 0=no) angle (10=yes, 0=no) hypo (100=by other) or cluster (2)"},
243245
{"name":"emilay", "type":"B", "info":"aerogel layer of photon emission"},

etc/services/data-ai-2026.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
io-services:
22
reader:
3-
class: org.jlab.io.clara.HipoToHipoReader
4-
name: HipoToHipoReader
3+
class: org.jlab.io.clara.Clas12Reader
4+
name: Clas12Reader
55
writer:
6-
class: org.jlab.io.clara.HipoToHipoWriter
7-
name: HipoToHipoWriter
6+
class: org.jlab.io.clara.Clas12Writer
7+
name: Clas12Writer
88
services:
9+
- class: org.jlab.clas.reco.DecoderEngine
10+
name: DECO
911
- class: org.jlab.clas.swimtools.MagFieldsEngine
1012
name: MAGFIELDS
1113
- class: org.jlab.rec.ft.cal.FTCALEngine

etc/services/data-ai-uber.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ configuration:
1414
run: "19000"
1515
io-services:
1616
reader:
17-
class: org.jlab.io.clara.DecoderReader
18-
name: DecoderReader
17+
class: org.jlab.io.clara.Clas12Reader
18+
name: Clas12Reader
1919
writer:
2020
class: org.jlab.io.clara.Clas12Writer
2121
name: Clas12Writer
2222
services:
23+
- class: org.jlab.clas.reco.DecoderEngine
24+
name: DECO
2325
- class: org.jlab.service.uber.Uber$First
2426
name: 1ST
2527
- class: org.jlab.service.uber.Uber$ForwardTagger

etc/services/data-ai.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
io-services:
22
reader:
3-
class: org.jlab.io.clara.HipoToHipoReader
4-
name: HipoToHipoReader
3+
class: org.jlab.io.clara.Clas12Reader
4+
name: Clas12Reader
55
writer:
6-
class: org.jlab.io.clara.HipoToHipoWriter
7-
name: HipoToHipoWriter
6+
class: org.jlab.io.clara.Clas12Writer
7+
name: Clas12Writer
88
services:
9+
- class: org.jlab.clas.reco.DecoderEngine
10+
name: DECO
911
- class: org.jlab.clas.swimtools.MagFieldsEngine
1012
name: MAGFIELDS
1113
- class: org.jlab.rec.ft.cal.FTCALEngine

etc/services/data-aicv-uber.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ configuration:
1414
run: "19000"
1515
io-services:
1616
reader:
17-
class: org.jlab.io.clara.DecoderReader
18-
name: DecoderReader
17+
class: org.jlab.io.clara.Clas12Reader
18+
name: Clas12Reader
1919
writer:
2020
class: org.jlab.io.clara.Clas12Writer
2121
name: Clas12Writer
2222
services:
23+
- class: org.jlab.clas.reco.DecoderEngine
24+
name: DECO
2325
- class: org.jlab.service.uber.Uber$First
2426
name: 1ST
2527
- class: org.jlab.service.uber.Uber$ForwardTagger

etc/services/data-aicv.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
io-services:
22
reader:
3-
class: org.jlab.io.clara.HipoToHipoReader
4-
name: HipoToHipoReader
3+
class: org.jlab.io.clara.Clas12Reader
4+
name: Clas12Reader
55
writer:
6-
class: org.jlab.io.clara.HipoToHipoWriter
7-
name: HipoToHipoWriter
6+
class: org.jlab.io.clara.Clas12Writer
7+
name: Clas12Writer
88
services:
9+
- class: org.jlab.clas.reco.DecoderEngine
10+
name: DECO
911
- class: org.jlab.clas.swimtools.MagFieldsEngine
1012
name: MAGFIELDS
1113
- class: org.jlab.rec.ft.cal.FTCALEngine

0 commit comments

Comments
 (0)