Message: secondary particle information via hit? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question secondary particle information via hit? 

Keywords: secondary particles, hit
Forum: Hits, Digitization and Pileup
Date: 02 May, 2003
From: Edwina Wolff <ewolff@uos.de>

Hello

I'd like to connect information about secondary particles - if created in a hit - 
to this hit.
Yet, what I found is the direct way from "SteppingManager" to "SteppingVerbose", 
one can access "(*fSecondary)" and "fN2ndaries*DoIt".

I do not want to go via SteppingVerbose, anyway I do not know how I could shift 
this information in SteppingVerbose into step or hit or anything else. 
How do I retrieve secondary particle information for a hit that I can handle their 
statistics (name/numbers) via hitscollection event by event?

Any ideas are welcome,
Edwina Wolff


some information I can do connect with hit:
-------------------------------------------
edep=step->GetTotalEnergyDeposit();
sensitiveDetectorHit->SetEdep(edep);

processName=step->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName();
sensitiveDetectorHit->SetProcessName(processName);

particleName=step->GetTrack()->GetDefinition()->GetParticleName();
sensitiveDetectorHit->SetParticleName(particleName);
//this is the currently tracked particle which run the process




now I like to do something like:
---------------------------------
secondaries=step->GetSecondary; 
or 
secondaries=(*fSecondary);
sensitiveDetectorHit->SetSecondary( (*fSecondary) ); 
//to store information about the created secondaries of this hit

//(*fSecondary) in SteppingVerbose directly accessable via SteppingManager
secondaryName[i]=(*fSecondary)[i]->GetDefinition()->GetParticleName();

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "secondary particle information via hit?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]