Message: error with G4RandGauss Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None error with G4RandGauss 

Forum: Particles
Date: 19 Aug, 2011
From: Chaw <Chaw>

Hi,

I have a problem in my SteppingAction. I have an error:

src/SteppingAction.cc:156: error: no matching function for call to 'CLHEP::RandGaussQ::shoot(G4double&)' /cern/2011/clhep-2.1.0.1.gcc.4.1.2/include/CLHEP/Random/RandGaussQ.icc:36: note: candidates are: static double CLHEP::RandGaussQ::shoot()

Can you help me?

It's a litle part of my SteppingAction.cc:

#include "SteppingAction.hh"
#include "G4SteppingManager.hh"
#include "G4RunManager.hh"
 #include "CLHEP/Random/Randomize.h"

....

if ( aStep->GetTrack()->GetVolume()->GetName() == "dector1")
      { 

fEventAction->AddEdep1(aStep->GetTotalEnergyDeposit()+G4RandGauss::shoot(sigma1));
 }
 ... 

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

1 None: Re: error with G4RandGauss   (Spencer Behling - 19 Aug, 2011)
1 None: Re: error with G4RandGauss   (Chaw - 24 Aug, 2011)
(_ None: Re: error with G4RandGauss   (Chaw - 24 Aug, 2011)
2 Feedback: Re: error with G4RandGauss   (Gumplinger Peter - 24 Aug, 2011)
 Add Message Add Message
to: "error with G4RandGauss"

 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 ]