@@ -458,7 +458,7 @@ def __init__(self, **kwargs):
458458 self .input_file = None
459459 self .minidst_args = None
460460 # Ensure to call the parent constructor properly
461- Component .__init__ (self , name = 'makeminidst ' ,
461+ Component .__init__ (self , name = 'make_mini_dst ' ,
462462 command = 'make_mini_dst' ,
463463 description = 'Create the MiniDST ROOT file' ,
464464 output_ext = '.root' ,
@@ -504,7 +504,8 @@ def output_files(self):
504504 """! Adjust names of output files."""
505505 if self .outputs is None :
506506 f , ext = os .path .splitext (self .input_files ()[0 ])
507- self .outputs = f"{ f } .root"
507+ self .outputs = f"{ f } _minidst.root"
508+ print (f"Set outputs to: { self .outputs } " )
508509
509510 return self .outputs
510511
@@ -515,16 +516,16 @@ def cmd_args(self):
515516 """
516517 args = []
517518
518- print ("===== Make MiniDST with input files: " , end = "" )
519+ print ("===== Make MiniDST with input files: " , end = " " )
519520 for i in range (len (self .input_files ())):
520521 print (f"{ self .input_files ()[i ]} " , end = ", " )
521- print (f" - > { self .output_files ()} " )
522+ print (f" == > { self .output_files ()} " )
522523
523- args .extend (self .minidst_args )
524+ if self .minidst_args is not None :
525+ args .extend (self .minidst_args )
524526
525- args .extend (['-o' , self .output_files ()[ 0 ] ])
527+ args .extend (['-o' , self .output_files ()])
526528 args .extend (self .input_files ())
527-
528529 return args
529530
530531
0 commit comments