Message: Problem with Importance biasing Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Problem with Importance biasing 

Forum: Biasing and Scoring
Date: 30 Jun, 2014
From: Ran Itay <Ran Itay>

Hi all

I've tried to implement importance biasing in my code

I added this lines to my main file

// pointers for importance store, weight-window store
  // and weight-window algorithm
  G4VIStore *aIstore = 0;
  // create sampler for biasing and scoring in the mass geometry
  G4GeometrySampler mgs(detCon->GetWorldVolume(),"geantino");

// prepare for importance sampling
    aIstore = detCon->CreateImportanceStore();
    mgs.PrepareImportanceSampling(aIstore, 0);

and to my detectorConstruction I added a function that does
  G4IStore *istore = new G4IStore(*pWorldVolume);

istore->AddImportanceGeometryCell(imp,*PhysicalVolume,n++); // for each physical volume.

Although it compiles finally, It gives me an exception first time it has to cross a border between 2 volumes.

Anyone knows where am I wrong?????

Tnx Ran

 Add Message Add Message
to: "Problem with Importance biasing"

 Subscribe Subscribe

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