@@ -55,12 +55,14 @@ private void setBackgroundFiles(String filenames) {
5555 findEngine (ENGINE_CLASS_BG ).init ();
5656 }
5757
58- private void setPreloadFiles (String filenames ) {
58+ private void setPreloadFiles (String filenames , boolean restream , boolean rebuild ) {
5959 if (findEngine (ENGINE_CLASS_PP ) == null ) {
6060 LOGGER .info ("Adding PostprocEngine for -P option." );
6161 addEngine ("BG" ,ENGINE_CLASS_PP );
6262 }
6363 findEngine (ENGINE_CLASS_PP ).engineConfigMap .put ("preloadFile" , filenames );
64+ findEngine (ENGINE_CLASS_PP ).engineConfigMap .put ("restream" , String .valueOf (restream ));
65+ findEngine (ENGINE_CLASS_PP ).engineConfigMap .put ("rebuild" , String .valueOf (rebuild ));
6466 findEngine (ENGINE_CLASS_PP ).init ();
6567 }
6668
@@ -354,6 +356,8 @@ public static void main(String[] args){
354356 parser .addOption ("-S" ,null ,"schema directory" );
355357 parser .addOption ("-B" ,null ,"background file" );
356358 parser .addOption ("-P" ,null ,"preload file for post-processing" );
359+ parser .addOption ("-R" ,"0" ,"rebuild scalers" );
360+ parser .addOption ("-H" ,"0" ,"restream helicity" );
357361
358362 parser .parse (args );
359363
@@ -414,8 +418,11 @@ else if (config>0){
414418 proc .setBackgroundFiles (parser .getOption ("-B" ).stringValue ());
415419
416420 // command-line filename for post-processing overrides YAML:
417- if (parser .getOption ("-P" ).stringValue () != null )
418- proc .setPreloadFiles (parser .getOption ("-P" ).stringValue ());
421+ if (parser .getOption ("-P" ).stringValue () != null ) {
422+ proc .setPreloadFiles (parser .getOption ("-P" ).stringValue (),
423+ parser .getOption ("-H" ).intValue ()!=0 ,
424+ parser .getOption ("-R" ).intValue ()!=0 );
425+ }
419426
420427 proc .processFile (inputFile ,outputFile ,nskip ,nevents );
421428 }
0 commit comments