Message: Question about G4VSteppingVerbose Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Question about G4VSteppingVerbose 

Forum: Event and Track Management
Date: 11 May, 2005
From: Emanuele Leonardi <Emanuele Leonardi>

In order to debug my code, I am trying to get as much information as
possible out of G4VSteppingVerbose.

One of the interesting information would be the physical processes
which took place during the step.

In an example I got the following code:

    if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
      G4cout << "  " 
        << std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
	                                ->GetProcessName();
    } else {
      G4cout << "   UserLimit";
    }

which, according to the comments, should be the process which defined
the current step.

Looking into G4VSteppingVerbose I then found the following process:

   G4VProcess* fCurrentProcess;
  // The pointer to the process of which DoIt or
  // GetPhysicalInteractionLength has been just executed.

Printing out the ProcessName for both, I see that sometimes they differ,
e.g.
*********************************************************************************************************
* G4Track Information:   Particle = e-,   Track ID = 69,   Parent ID = 18
*********************************************************************************************************

Step#      X         Y         Z        KineE    dEStep   StepLeng  TrakLeng  PreVolume PostVolume        Process
    0   2.32 mm   66.9 cm  -72.2 m    2.11 MeV     0 eV      0 fm      0 fm               Detector       initStep
    1   2.22 mm   66.9 cm  -72.2 m    1.72 MeV   173 keV   223 mum   223 mum   Detector   Detector          eBrem          eBrem
    2   2.22 mm   66.9 cm  -72.2 m    1.54 MeV  5.66 keV  8.54 mum   231 mum   Detector   Detector          eBrem          eBrem
    3   2.37 mm   66.9 cm  -72.2 m     870 keV   516 keV   230 mum   461 mum   Detector   Detector          eBrem          eBrem
    4   2.34 mm   66.9 cm  -72.2 m       0 eV    870 keV   632 mum  1.09 mm    Detector   Detector          eIoni Transportation

here the first process name comes from GetProcessDefinedStep and the
second from fCurrentProcess.

What is the difference between the two processes?

Thanks

           Emanuele

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

 Add Message Add Message
to: "Question about G4VSteppingVerbose"

 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 ]