Message: Implementing User Special Cuts Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Implementing User Special Cuts 

Forum: Event and Track Management
Date: 23 May, 2014
From: Charlie Kirkby <Charlie Kirkby>

Hi Everyone, I'm trying to put together a code that can stop all gammas that pass through a specific region.

The Application Developer's guide provides an example of doing something like the for neutrons, so I've been trying to follow that.

In my detector construction class I've added:

#include "G4UserLimits.hh"

...

logicShape2->SetUserLimits(new G4UserLimits(DBL_MAX,DBL_MAX,DBL_MAX,100*MeV));

and that all seems to be okay. Then in the physics list I've added:

#include "G4UserSpecialCuts.hh"

...

G4ProcessManager* pmanager = G4Gamma::Gamma->GetProcessManager();

pmanager->AddProcess(new G4UserSpecialCuts(),-1,-1,1);

and when I make the code I get a pair of errors:

(i) request for member 'GetProcessManager' in 'G4Gamma::Gamma', which is of non-class type 'G4Gamma*()'

(ii) 'pmanager' does not name a type

Any insight?

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

1 Feedback: Re: Implementing User Special Cuts   (Gumplinger Peter - 23 May, 2014)
(_ Question: Re: Implementing User Special Cuts   (Charlie Kirkby - 24 May, 2014)
(_ Feedback: Re: Implementing User Special Cuts   (Gumplinger Peter - 25 May, 2014)
(_ Note: Re: Implementing User Special Cuts   (Charlie Kirkby - 26 May, 2014)
 Add Message Add Message
to: "Implementing User Special Cuts"

 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 ]