Message: Re: How to retrieve Physics Interaction undergone by a particle Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to retrieve Physics Interaction undergone by a particle 

Forum: Medical Applications
Re: Question How to retrieve Physics Interaction undergone by a particle (Abigail)
Re: None Re: How to retrieve Physics Interaction undergone by a particle (Joseph Perl)
Date: 03 Mar, 2009
From: Abigail <Abigail>

Thank you sir for the reply,

Can I raise another question sir...

I just want to know in detail to what virtual function or class does GetCreatorProcess() belong....

When I tried to input this like:

const G4Track* track = aStep->GetTrack();
  //const G4Track* track = aStep->GetCreatorProcess(); 
 // G4int idd = track->GetTrackID();
  G4int pid = track->GetParentID();
  const G4Track* track2 = aTrack->GetCreatorProcess(); 

Here's what I got:

Compiling SteppingAction.cc ... src/SteppingAction.cc: In member function `virtual void SteppingAction::UserSteppingAction(const G4Step*)': src/SteppingAction.cc:86: error: `aTrack' was not declared in this scope src/SteppingAction.cc:86: warning: unused variable 'track2' src/SteppingAction.cc:86: warning: unused variable ...

In addition I am using geant4.9.1 if ever you'll ask about it.

What do I have to check sir?

Thanks,

Abby

PS.

If ever you want to view the SteppingAction.cc I attached it in this message sir... Thanks again...

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/03/02.04-80172-SteppingAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/03/02.04-17301-SteppingAction.cc

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

1 None: Re: How to retrieve Physics Interaction undergone by a particle   (Joseph Perl - 04 Mar, 2009)
 Add Message Add Message
to: "Re: How to retrieve Physics Interaction undergone by a particle"

 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 ]