[12gevmoller_sim] [JeffersonLab/remoll] 61a81f: Bugfix to issue #172. Now kryptonite works again.
GitHub
noreply at github.com
Mon Jan 14 22:33:17 EST 2019
Branch: refs/heads/bugfix-issue-172
Home: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffersonLab%2Fremoll&data=02%7C01%7C12gevmoller_sim%40jlab.org%7C128a68feba5b43a4326308d67a9a3117%7Cb4d7ee1f4fb34f0690372b5b522042ab%7C1%7C1%7C636831200001961879&sdata=t%2Fe1GSYAodjM3AhBHgscNrDphPsy%2BP%2BgtYruvzO8PYA%3D&reserved=0
Commit: 61a81f76c01e4df5f180f50fcf78eea1800fd248
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJeffersonLab%2Fremoll%2Fcommit%2F61a81f76c01e4df5f180f50fcf78eea1800fd248&data=02%7C01%7C12gevmoller_sim%40jlab.org%7C128a68feba5b43a4326308d67a9a3117%7Cb4d7ee1f4fb34f0690372b5b522042ab%7C1%7C1%7C636831200001961879&sdata=gUW%2F%2FTEGj4A29w9n4e3gaWPLrWNb6PsLlC1V22txd08%3D&reserved=0
Author: Wouter Deconinck <wdconinc at gmail.com>
Date: 2019-01-14 (Mon, 14 Jan 2019)
Changed paths:
M analysis/issues/issue172.C
M include/remollDetectorConstruction.hh
M include/remollGenericDetector.hh
M macros/issues/issue172.mac
M src/remollActionInitialization.cc
M src/remollDetectorConstruction.cc
M src/remollGenericDetector.cc
Log Message:
-----------
Bugfix to issue #172. Now kryptonite works again.
Since this is a quite major set of changes to how some of the hits
are being stored, I am putting this in a bugfix branch first so I
can test optical photon hit behavior and let @cameronc137 take a look.
In any case, here's hit behavior:
- by default only hits are stored that satisfy the following:
- charge particle, energy > 0.1 MeV
- anywhere along a primary track
- first hit in volume for secondary track
- all hits (even those not stored) are added to the detector sums
To modify this behavior you can use
```
/remoll/SD/type 4001 lowenergyneutral
/remoll/SD/type 4001 secondaries
```
along with similar GDML statements (also possible: `opticalphotons`
and `boundaryhits`).
As for kryptonite, this was all moved to remollDetectorConstruction
and stepping action was removed (since now not useful). Here is the
code for kryptonite:
```
/remoll/kryptonite/verbose 1
/remoll/kryptonite/add G4_Pb
/remoll/kryptonite/list
/remoll/kryptonite/enable
/remoll/kryptonite/disable
```
(This is different from previous `/remoll/kryptonite/set true` since
we need a method and those don't work with `G4GenericMessenger::DefineMethod`
since a G4bool looks like a G4int and yada yada yada.)
Finally, kryptonite now acts by setting all volumes that have the
specified material in question with userlimits to (0,0,0,inf,inf).
This means that all energy is deposited in the first hit, making
the sums correct. Essentially it sets the userlimits to:
```
/remoll/geometry/userlimits/usermaxallowedstep krypt_logical 0.0*mm
/remoll/geometry/userlimits/usermaxtracklength krypt_logical 0.0*mm
/remoll/geometry/userlimits/usermaxtime krypt_logical 0.0*ns
/remoll/geometry/userlimits/userminekine krypt_logical 1000*GeV
/remoll/geometry/userlimits/userminrange krypt_logical 1000*km
```
for those volumes. It does mean that steplimiter must be enabled
by default. And if you disable steplimiter and still try to use
userlimits or kryptonite there is no warning... so don't do that.
**NOTE:** This service has been marked for deprecation: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.github.com%2Fchanges%2F2018-04-25-github-services-deprecation%2F&data=02%7C01%7C12gevmoller_sim%40jlab.org%7C128a68feba5b43a4326308d67a9a3117%7Cb4d7ee1f4fb34f0690372b5b522042ab%7C1%7C1%7C636831200001961879&sdata=xwlrAtajstFn2LDShL2Z%2FnWq1KUgs0XGUIC4MC3C7Ro%3D&reserved=0
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the 12gevmoller_sim
mailing list