Message: Command-based Scoring and Filtering for Secondaries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Command-based Scoring and Filtering for Secondaries 

Forum: Biasing and Scoring
Date: 13 Jan, 2015
From: Jonathan Wrobel <Jonathan Wrobel>

Hello,

Short version: is there a way to use the command-based scoring and filters to measure the flux of secondary particles through a plane/surface? I know that I can set up a filter using the method below, but is there a way to filter/differentiate between primary and secondary protons while using the command-based scoring?

/score/quantity/flatSurfaceFlux fluxProtons
/score/filter/particle protonFilter proton
/score/close

Also, is there a way to create a filter for all high-Z ions (Z>proton)? Would GenericIon suffice?


Long version:
I have set up a Geant4 application where the geometry is defined through GDML input files, and the scoring is defined using command-based scoring and filters that are written in input macros. Additional scripts control the runs and the creation of dump files. This allows my simulation to be iterated without re-compiling my G4 application.

Along those lines I am attempting to remain with command-based scoring to track creation of secondaries. Now example RE06DetectorConstruction has the below definition in its DetectorConstruction, and I was wondering if that could be incorporated into a command-based scoring approach? And if so, where/how?

primitive = new G4PSNofSecondary("nElectron",j);
primitive->SetFilter(electronFilter);
det->RegisterPrimitive(primitive);

Thanks for any help.

Regards,
Jonathan

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

1 None: Re: Command-based Scoring and Filtering for Secondaries   (Tsukasa Aso - 13 Jan, 2015)
(_ None: Re: Command-based Scoring and Filtering for Secondaries   (Tsukasa Aso - 13 Jan, 2015)
 Add Message Add Message
to: "Command-based Scoring and Filtering for Secondaries"

 Subscribe Subscribe

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