Message: how to flag events with PhotonInelastic/ElectronNuclear/PositronNuclear reactions in SteppingAction.cc Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None how to flag events with PhotonInelastic/ElectronNuclear/PositronNuclear reactions in SteppingAction.cc 

Forum: Event and Track Management
Date: 23 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

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

1 Feedback: Re: how to flag events with PhotonInelastic/ElectronNuclear/PositronNuclear reactions in SteppingAction.cc   (Gumplinger Peter - 07 Jan, 2009)
 Add Message Add Message
to: "how to flag events with PhotonInelastic/ElectronNuclear/PositronNuclear reactions in SteppingAction.cc"

 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 ]