Skip to content

Commit

Permalink
Additional needed Geant4 instructions from Eric Church. -MMS
Browse files Browse the repository at this point in the history
  • Loading branch information
mszydagis committed Jun 11, 2022
1 parent fee5a46 commit e626956
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,11 +532,12 @@ The executable will print S1 and S2 areas to screen in addition to the number of
```cpp
SetUserAction(new NESTStackingAction());
```
Put this line after all other lines in Build(), else you may only ever run precisely one event.

5. In your physics list, you'll want code that looks like this:
5. In your physics list, you'll want code that looks like this in your G4VPhysicsConstructer::ConstructProcess() method:

```cpp
NEST::NESTProc* theNEST2ScintillationProcess = new NEST::NESTProc("S1",fElectromagnetic,[your electric field]);
NEST::NESTProc* theNEST2ScintillationProcess = new NEST::NESTProc("S1",fElectromagnetic,[your VDetector]);
if (theNEST2ScintillationProcess->IsApplicable(*particle)) {
pmanager->AddProcess(theScintillationProcess, ordDefault + 1, ordInActive, ordDefault + 1);
}
Expand Down

0 comments on commit e626956

Please sign in to comment.