| How to create more than one output event in FairTask Exec()-function? [message #23774] | 
			Tue, 26 March 2019 12:41   | 
		 
		
			
				
				
				
					
						  
						C. A. Douma
						 Messages: 88 Registered: September 2015  Location: Groningen
						
					 | 
					continuous participant  | 
					From: *kvi-cart.rug.nl
  | 
		 
		 
	 | 
 
	
		Dear all, 
 
I would like to design an R3BRoot FairTask that merges several .root-files. 
 
So suppose that I create a TClonesArray* fOutput; 
that I write its content with FairRootManaber::Register to an output-file, 
and that I expand the fOutput-array with one object at a time 
using the new-operator (inside the Exec()-function), 
 
is there a way to manually call a command for writing fOutput 
to the file and emptying it halfway inside the Exec()-function? 
So that I essentially generate multiple events in the output-tree 
for a single Exec()-call? 
 
Many thanks in advance! 
Christiaan Douma. 
		
		
		
 |  
	| 
		
	 | 
 
 
 |