Message: G4VPrimitive Scorer-Surface Current Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question G4VPrimitive Scorer-Surface Current 

Forum: Hits, Digitization and Pileup
Date: 19 Jan, 2009
From: Suhaili Zakaria <Suhaili Zakaria>


I need to know the number of particles (gamma) entering my multifunctional detectors.

How do I use G4VPrimitive scorer to obtain such information?

Below is snippets of my code on how I register the G4VPrimitiveScorer and applying filter.

  G4SDManager* manager = G4SDManager::GetSDMpointer();
  G4String MFDname = "MyDetector";
  G4MultiFunctionalDetector* MFD = new G4MultiFunctionalDetector(MFDname);


  G4String fltName, particleName;

  G4SDParticleFilter* gammafilter= new G4SDParticleFilter(fltName="gammaFilter",  particleName="gamma");

  G4PSEnergyDeposit* scorer = new G4PSEnergyDeposit("EnergyScorer");
  G4PSDoseDeposit* scorer1 = new G4PSDoseDeposit("DoseScorer");
  G4PSFlatSurfaceCurrent* scorer2 = new G4PSFlatSurfaceCurrent("Current", fCurrent_In);



The program runs and give me results, but I am not sure if it gives me the number of gamma inside each detector.

Inputs and suggestion are highly appreciated.


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

1 Question: Re: G4VPrimitive Scorer-Surface Current   (Suhaili Zakaria - 20 Jan, 2009)
(_ None: Re: G4VPrimitive Scorer-Surface Current   (Tsukasa Aso - 20 Jan, 2009)
1 None: Re: G4VPrimitive Scorer-Surface Current   (Suhaili Zakaria - 21 Jan, 2009)
1 None: Re: G4VPrimitive Scorer-Surface Current   (Tsukasa Aso - 26 Jan, 2009)
... 1 Message(s)
2 Question: Re: G4VPrimitive Scorer-Surface Current   (sylvian kahane - 31 Jan, 2018)
 Add Message Add Message
to: "G4VPrimitive Scorer-Surface Current"

 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 ]