| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: Bremsstrahlung and geant [message #11063 is a reply to message #11062] | 
			Wed, 06 October 2010 15:01    | 
		 
		
			
				
				
				
					
						  
						asanchez
						 Messages: 350 Registered: March 2006 
						
					 | 
					first-grade participant  | 
					From: *kph.uni-mainz.de
  | 
		 
		 
	 | 
 
	
		For each process, 
In geant4 the mother particle has a trackId = -1 
the secondaries are numerated as they are created, 
if you have created three secondaries the y get the track id's 
0, 1, 2 
 
In geant3, is the same , the only difference is that 
the mother particle is numerated with a trackId = 0 instead of -1. 
 
If you want to really see what is going on, 
case geant4 : 
 go to 
the gconfig directory and then edit the line 35 at g4Config.in, 
by removing the # symbol 
so /tracking/verbose 1, in this way you will switch on the verbosity of the tracking. 
 
Try a few events, 
 
i hope it can help you. 
 
regards, 
 
Alicia.
		
		
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: Bremsstrahlung and geant [message #11070 is a reply to message #11066] | 
			Thu, 07 October 2010 11:37   | 
		 
		
			
				
				
				
					
						  
						asanchez
						 Messages: 350 Registered: March 2006 
						
					 | 
					first-grade participant  | 
					From: *kph.uni-mainz.de
  | 
		 
		 
	 | 
 
	
		So coming back to the issue of the 
Bremsstrahlung processes by electrons. 
 
If i have well understood, in geant4/3 electrons are treated as mother particle(primary or secondary) losing energy 
according with the Bremsstrahlung process and emitting photons. 
 
So the electron in MCtrack should remain as mother particle and the photons are treated as secondaries. 
 
 
To check that, 
use the following 
 
for example the pdgcode of the mother and daughter particles 
in geant4 
 
 
From your MC information 
PndEmcPoint * pop; 
 
PndMCTrack* moc=(PndMCTrack*)fMcTr->At(pop->GetTrackID()); 
 
if(moc==0)continue; 
 
MotherId= moc->GetMotherID(); 
 
if  (MotherId==-1)Motherpdg = moc->GetPdgCode(); // case electron as primary mother  
 else { 
PndMCTrack *mother =(PndMCTrack*)fMcTr->At(MotherId); // case electron as secondary mother 
 
 Motherpdg = mother->GetPdgCode(); 
   } 
 
See : 
  http://geant4.cern.ch/G4UsersDocuments/UsersGuides/PhysicsReferenceManua l/html/node42.html#SECTION04422000000000000000
		
		
		
 |  
	| 
		
	 | 
 
 
 |