Author: [log in to unmask] Date: Wed Mar 25 13:56:23 2015 New Revision: 2549 Log: Correct wrong run number in dummy LCIO events in sync event station. Modified: java/branches/monitoring-app-dev/src/main/java/org/hps/monitoring/application/util/SyncEventProcessor.java Modified: java/branches/monitoring-app-dev/src/main/java/org/hps/monitoring/application/util/SyncEventProcessor.java ============================================================================= --- java/branches/monitoring-app-dev/src/main/java/org/hps/monitoring/application/util/SyncEventProcessor.java (original) +++ java/branches/monitoring-app-dev/src/main/java/org/hps/monitoring/application/util/SyncEventProcessor.java Wed Mar 25 13:56:23 2015 @@ -7,6 +7,7 @@ import org.hps.recon.ecal.daqconfig.ConfigurationManager; import org.hps.recon.ecal.daqconfig.EvioDAQParser; import org.hps.record.et.EtEventProcessor; +import org.hps.record.evio.EvioEventUtilities; import org.jlab.coda.et.EtEvent; import org.jlab.coda.jevio.EvioEvent; import org.jlab.coda.jevio.EvioException; @@ -35,8 +36,14 @@ throw new RuntimeException(e); } try { - BaseLCSimEvent dummyLcsimEvent = new BaseLCSimEvent(-1, -1, "DUMMY", 0, false); + // Create a dummy LCIO event to satisfy the configuration reader's interface. + BaseLCSimEvent dummyLcsimEvent = + new BaseLCSimEvent(EvioEventUtilities.getRunNumber(evioEvent), evioEvent.getEventNumber(), "DUMMY", 0, false); + + // Create the DAQ configuration object in the LCIO event. configReader.getDAQConfig(evioEvent, dummyLcsimEvent); + + // Update the global configuration if a configuration was created. if (dummyLcsimEvent.hasCollection(EvioDAQParser.class, TRIGGER_CONFIG)) { List<EvioDAQParser> configList = dummyLcsimEvent.get(EvioDAQParser.class, TRIGGER_CONFIG); if (!configList.isEmpty()) {