Message: Scoring particles inside a sensitive volumen Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Scoring particles inside a sensitive volumen 

Forum: Biasing and Scoring
Date: 13 May, 2014
From: Balder <Balder>

Dear Geant4 experts, I have created a sensitive volume in order to score the particles that interact with it.

G4bool CheckVolumeSD::ProcessHits(G4Step* aStep, G4TouchableHistory*)
{
  const G4Track* track = aStep->GetTrack();
  G4double e = track->GetKineticEnergy();

  if (track->GetDefinition() == G4Gamma::Gamma()) {
    G4cout << "CheckVolumeSD: gamma final energy = " << e/MeV 
    << G4endl;

  }

  if (track->GetDefinition() == G4Electron::Electron()) {
    G4cout << "CheckVolumeSD: e- final energy = " << e/MeV 
    << G4endl;
  }
  return true;
}

 Besides, to get all the picture, I need to score the particles -type and energy, that go through my sensitive volume without interact. Please, Could you advise me about it? 
Best regards,
Arturo.

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

1 None: Re: Scoring particles inside a sensitive volumen   (Tsukasa Aso - 15 May, 2014)
 Add Message Add Message
to: "Scoring particles inside a sensitive volumen"

 Subscribe Subscribe

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