File tree Expand file tree Collapse file tree
evio/src/main/java/org/hps/evio Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 */
7373public final class EvioToLcio {
7474
75- /**
76- * The default steering resource, which basically does nothing except print event numbers.
77- */
78- private static final String DEFAULT_STEERING_RESOURCE = "/org/hps/steering/EventMarker.lcsim" ;
79-
8075 /**
8176 * Setup logging for this class.
8277 */
@@ -333,12 +328,6 @@ public void parse(String[] args) {
333328 }
334329 }
335330
336- // Setup the default steering which just prints event numbers.
337- if (steeringStream == null ) {
338- steeringStream = EvioToLcio .class .getResourceAsStream (DEFAULT_STEERING_RESOURCE );
339- LOGGER .config ("using default steering resource " + DEFAULT_STEERING_RESOURCE );
340- }
341-
342331 // Get the max number of events to process.
343332 if (cl .hasOption ("n" )) {
344333 maxEvents = Integer .valueOf (cl .getOptionValue ("n" ));
@@ -396,7 +385,14 @@ public void parse(String[] args) {
396385 }
397386
398387 // Configure the LCSim job manager.
399- jobManager .setup (steeringStream );
388+ if (steeringStream != null ) {
389+ // Running a steering file with the job; use full job manager setup.
390+ jobManager .setup (steeringStream );
391+ } else {
392+ // No steering file is being used; configure job manager manually.
393+ jobManager .initializeLoop (); /* enables event printing */
394+ jobManager .getConditionsSetup ().configure (); /* activates SVT detector setup */
395+ }
400396 jobManager .configure ();
401397 LOGGER .config ("LCSim job manager was successfully configured." );
402398
You can’t perform that action at this time.
0 commit comments