MergeCluster
Link to source: MergeCluster
Plugin Description
Plugin that merges energy deposits with the same cluster index into a single interaction.
The 3D postiion is calculated as the energy weighted average of the 3D positions of the energy deposits. The time of the merged cluster is calculated as the energy weighted average of the times of the energy deposits. The energy of the merged cluster is the sum of the individual energy depositions. The cluster is then classified based on either the first interaction in the cluster or the most energetic interaction.
Technical Details
depends_on = ('geant4_interactions', 'cluster_index')
provides = ('clustered_interactions',)
data_kind = clustered_interactions
__version__ = 0.4.0
Provided Columns
clustered_interactions
Field Name |
Data Type |
Comment |
|---|---|---|
x |
float32 |
x position of the cluster [cm] |
y |
float32 |
y position of the cluster [cm] |
z |
float32 |
z position of the cluster [cm] |
ed |
float32 |
Energy of the cluster [keV] |
nestid |
int8 |
NEST interaction type |
cluster_id |
int32 |
ID of the cluster |
eventid |
int32 |
Geant4 event ID |
trackid |
int16 |
Geant4 track ID |
t |
float64 |
Time of the interaction [ns] |
A |
int16 |
Mass number of the interacting particle |
Z |
int16 |
Charge number of the interacting particle |
x_pri |
float32 |
x position of the primary particle [cm] |
y_pri |
float32 |
y position of the primary particle [cm] |
z_pri |
float32 |
z position of the primary particle [cm] |
time |
int64 |
Start time since unix epoch [ns] |
endtime |
int64 |
Exclusive end time since unix epoch [ns] |
Config Options
Option |
default |
track |
Help |
|---|---|---|---|
debug |
False |
False |
Show debug informations |
deterministic_seed |
True |
True |
Set the random seed from lineage and run_id, or pull the seed from the OS |
tag_cluster_by |
take://resource://SIMULATION_CONFIG_FILE.json?fmt=json&take=tag_cluster_by |
True |
Decide if you tag the cluster according to first interaction (time) or most energetic (energy) one |
user_defined_random_seed |
None |
True |
Define the random seed manually. You need to set deterministic_seed to False |