Skip to content

Commit 53839e6

Browse files
committed
make it static
1 parent 7c87176 commit 53839e6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • common-tools/clas-analysis/src/main/java/org/jlab/analysis/postprocess

common-tools/clas-analysis/src/main/java/org/jlab/analysis/postprocess/Processor.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void configure(List<String> preloadFiles, boolean restream, boolean rebu
7979
helicitySequence = Util.getHelicity(preloadFiles, schemaFactory, restream, conman);
8080
if (rebuild) chargeSequence = DaqScalersSequence.rebuildSequence(1, conman, preloadFiles);
8181
else chargeSequence = DaqScalersSequence.readSequence(preloadFiles);
82-
eventUnix = getEventUnixMap(preloadFiles);
82+
eventUnix = getEventUnixMap(schemaFactory, preloadFiles);
8383
}
8484
}
8585

@@ -103,11 +103,12 @@ private static List<String> findPreloadFiles(String dir, String glob) {
103103

104104
/**
105105
* Load the mapping from event number to unix time
106+
* @param schema
106107
* @param files
107108
* @return map
108109
*/
109-
private TreeMap<Integer,Integer> getEventUnixMap(List<String> files) {
110-
Bank unix = new Bank(schemaFactory.getSchema("RUN::unix"));
110+
public static TreeMap<Integer,Integer> getEventUnixMap(SchemaFactory schema, List<String> files) {
111+
Bank unix = new Bank(schema.getSchema("RUN::unix"));
111112
TreeMap<Integer,Integer> m = new TreeMap<>();
112113
Event e = new Event();
113114
for (String f : files) {

0 commit comments

Comments
 (0)