Message: Help With Basic Scintillation Example Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Help With Basic Scintillation Example 

Forum: Processes Involving Optical Photons
Date: 10 May, 2017
From: Matthew Loyd <Matthew Loyd>

I am trying to set up a simple scintillation example, where I define a scintillation material in detector construction, hit it with a gamma using primary generation action, and monitor the scintillation photons created.

I have added my scintillation properties in the detector construction, and my physics list is below:

#include "physicslist.hh"

#include "G4OpticalPhysics"

physicslist::physicslist() : G4VModularPhysicsList() { SetVerboseLevel(1);

G4OpticalPhysics* opticalphysics = new G4OpticalPhysics(); RegisterPhysics(optical physics);

opticalphysics->SetScintillationYeildFactor(1.0); opticalphysics->SetTrackSecondariesFirst(kScintillation, true); }

physicslist::~physicslist() { }

My program builds and makes fine, but when I run it I get the error: "G4ParticalDefinition should be created in PreInt state.

I do not include any scintillation in my primary generation action, do I need to? Everything I have found for scintillation in the manual just listed adding the properties in the detector construction and including it in the physics list

Thanks!

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

1 Feedback: Re: Help With Basic Scintillation Example   (Gumplinger Peter - 10 May, 2017)
(_ None: Re: Help With Basic Scintillation Example   (Matthew Loyd - 11 May, 2017)
 Add Message Add Message
to: "Help With Basic Scintillation Example"

 Subscribe Subscribe

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