1- package org .jlab .analysis . postprocess ;
1+ package org .jlab .detector . serial ;
22
33import java .util .List ;
44import java .util .TreeMap ;
2424 *
2525 * @author baltzell
2626 */
27- public class Processor {
27+ public class PostProcessor {
2828
2929 public static final String CCDB_TABLES [] = {"/runcontrol/fcup" ,"/runcontrol/slm" ,
3030 "/runcontrol/helicity" ,"/daq/config/scalers/dsc1" ,"/runcontrol/hwp" };
@@ -37,7 +37,7 @@ public class Processor {
3737 private HelicitySequenceDelayed helicitySequence = null ;
3838 private TreeMap <Integer ,Integer > eventUnix = null ;
3939
40- public Processor (List <String > files , boolean restream , boolean rebuild ) {
40+ public PostProcessor (List <String > files , boolean restream , boolean rebuild ) {
4141 HipoReader r = new HipoReader ();
4242 r .open (files .get (0 ));
4343 schemaFactory = r .getSchemaFactory ();
@@ -46,13 +46,13 @@ public Processor(List<String> files, boolean restream, boolean rebuild) {
4646 recEvent = new Bank (schemaFactory .getSchema ("REC::Event" ));
4747 conman = new ConstantsManager ();
4848 conman .init (CCDB_TABLES );
49- helicitySequence = Util .getHelicity (files , schemaFactory , restream , conman );
49+ helicitySequence = SerialUtil .getHelicity (files , schemaFactory , restream , conman );
5050 if (rebuild ) chargeSequence = DaqScalersSequence .rebuildSequence (1 , conman , files );
5151 else chargeSequence = DaqScalersSequence .readSequence (files );
5252 eventUnix = getEventUnixMap (schemaFactory , files );
5353 }
5454
55- public Processor (List <String > files , SchemaFactory schema , HelicitySequenceDelayed h , DaqScalersSequence s ) {
55+ public PostProcessor (List <String > files , SchemaFactory schema , HelicitySequenceDelayed h , DaqScalersSequence s ) {
5656 schemaFactory = schema ;
5757 helicitySequence = h ;
5858 chargeSequence = s ;
@@ -102,7 +102,7 @@ private void processEventHelicity(DataEvent event, DataBank runcfg, DataBank rec
102102 DataBank helScaler = event .getBank ("HEL::scaler" );
103103 if (helScaler .rows ()>0 ) {
104104 event .removeBank ("HEL::scaler" );
105- Util .assignScalerHelicity (runcfg .getLong ("timestamp" ,0 ), ((HipoDataBank )helScaler ).getBank (), helicitySequence );
105+ SerialUtil .assignScalerHelicity (runcfg .getLong ("timestamp" ,0 ), ((HipoDataBank )helScaler ).getBank (), helicitySequence );
106106 event .appendBank (helScaler );
107107 }
108108 }
@@ -122,7 +122,7 @@ private void processEventHelicity(Event event, Bank runcfg, Bank recevt) {
122122 event .read (helScaler );
123123 if (helScaler .getRows ()>0 ) {
124124 event .remove (schemaFactory .getSchema ("HEL::scaler" ));
125- Util .assignScalerHelicity (runcfg .getLong ("timestamp" ,0 ), helScaler , helicitySequence );
125+ SerialUtil .assignScalerHelicity (runcfg .getLong ("timestamp" ,0 ), helScaler , helicitySequence );
126126 event .write (helScaler );
127127 }
128128 }
@@ -247,7 +247,7 @@ public static void main(String args[]) {
247247 boolean restream = !o .getOption ("-f" ).isDefault ();
248248 boolean rebuild = !o .getOption ("-c" ).isDefault ();
249249
250- Processor post = new Processor (o .getInputList (), restream , rebuild );
250+ PostProcessor post = new PostProcessor (o .getInputList (), restream , rebuild );
251251
252252 HipoWriterSorted writer = null ;
253253
0 commit comments