| CbmRootManager [message #5493] | 
			Tue, 27 November 2007 16:13   | 
		 
		
			
				
				
				
					
						  
						Klaus Götzen
						 Messages: 293 Registered: June 2006  Location: GSI
						
					 | 
					first-grade participant  | 
					From: *ikf.physik.uni-frankfurt.de
  | 
		 
		 
	 | 
 
	
		Hi! 
 
Within my CbmFastSim task I try to dump out two TClonesArrays of type TParticle like this 
 
  fCandidates = new TClonesArray("TParticle"); 
  CbmRootManager::Instance()->Register("PndCandidates","FastSim", fCandidates, kTRUE); 
 
  fMcCandidates = new TClonesArray("TParticle"); 
  CbmRootManager::Instance()->Register("PndMcCandidates","FastSim", fMcCandidates, kTRUE); 
 
one with the smeared candidates and one with the original copy of the MCStack basically. 
 
My task runs and in principle everything is fine, but in the root-file later there is a folder structure: 
 
cbmroot/FastSim/PndCandidates 
cbmroot/FastSim/PndMcCandidates 
 
(in fact in the TBrowser you see 2 FastSim folders, either containing one subfolder!), where both folders are empty, and twice 
 
cbmsim/PndCandidates  
 
with exactly the same contents (apparently from that TClonesArray which was registered first...) 
 
Anybody an idea, what I'm doing wrong? 
 
Thanks and regards, 
Klaus
		
		
		
 |  
	| 
		
	 | 
 
 
 |