Message: how to test for a electronuclear/photonuclear process in SteppingAction? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question how to test for a electronuclear/photonuclear process in SteppingAction? 

Forum: Physics List
Date: 21 Dec, 2008
From: Emil Frlez <Emil Frlez>

 Hi I have a simple question (that might have been answered before ;8-).

 I use a physics list with the ElectroNuclearPhysics():

....
void PhysicsList::ConstructProcess()
{
  AddTransportation();
  AddDecay();
  emPhysicsList->ConstructProcess();
  for(size_t i=0; i<hadronPhys.size(); i++) hadronPhys[i]->ConstructProcess();
  AddStepMax();
  ElectroNuclearPhysics();
}
...

 In my SteppingAction.cc I would like to flag the events
 with the PhotonInelastic, ElectronNuclear, PositronNuclear reactions.

 What would be the appropriate "if" statement? I use 

void SteppingAction::UserSteppingAction(const G4Step* aStep)
{
 const G4Track* track = aStep->GetTrack();
 ...

 So what is the condition?

 Flag=0;
 if ( aStep->GetTrack()-> ????? ) Flag=1;

                                         Regards, and TIA, Emil

 Add Message Add Message
to: "how to test for a electronuclear/photonuclear process in SteppingAction?"

 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 ]