Message: Primary particle pass through a Cylinder Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Primary particle pass through a Cylinder 

Forum: Biasing and Scoring
Date: 16 Jan, 2017
From: Neo <Neo>

Hello everyone, Please help me to resolve a problem, I would like to score all of primaries with its energy that touch a cylinder placed after a target. See below:

// sensitive detector "MyDetector"
  G4MultiFunctionalDetector* detector =
    new G4MultiFunctionalDetector("MyDetector");

  // detector manager
  G4SDManager* manager = G4SDManager::GetSDMpointer();  
 // primitive Scorer
    G4PSCylinderSurfaceCurrent* scorer =
      new G4PSCylinderSurfaceCurrent(name, fCurrent_In);

    // filter proton
    G4SDParticleWithEnergyFilter* filter =
      new G4SDParticleWithEnergyFilter("Proton Filter");

And the result only be 0 for all energy bin. Do you have any ideal for scoring by using a cylinder? Thank you very much.

 Add Message Add Message
to: "Primary particle pass through a Cylinder"

 Subscribe Subscribe

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