SND@LHC Software
|
Functions | |
addHNLtoROOT (pid=9900015, m=1.0, g=3.654203020370371E-21) | |
getbr_rpvsusy (h, histoname, mass, coupling) | |
getmaxsumbrrpvsusy (h, histograms, mass, couplings) | |
gettotalbrrpvsusy (h, histograms, mass, couplings) | |
make_particles_stable (P8gen, above_lifetime) | |
parse_histograms (filepath) | |
make_interpolators (filepath, kind='linear') | |
get_br (histograms, channel, mass, couplings) | |
add_particles (P8gen, particles, data) | |
add_channel (P8gen, ch, histograms, mass, couplings, scale_factor) | |
add_tau_channel (P8gen, ch, histograms, mass, couplings, scale_factor) | |
fill_missing_channels (P8gen, max_total_br, decay_chains, epsilon=1e-6) | |
add_dummy_channel (P8gen, particle, remainder) | |
compute_max_total_br (decay_chains) | |
compute_total_br (particle, decay_chains) | |
get_top_level_particles (decay_chains) | |
exit_if_zero_br (max_total_br, selection, mass, particle='HNL') | |
print_scale_factor (scaling_factor) | |
pythia8_conf_utils.add_channel | ( | P8gen, | |
ch, | |||
histograms, | |||
mass, | |||
couplings, | |||
scale_factor | |||
) |
Definition at line 154 of file pythia8_conf_utils.py.
pythia8_conf_utils.add_dummy_channel | ( | P8gen, | |
particle, | |||
remainder | |||
) |
Add a dummy channel to PYTHIA, with branching ratio equal to `remainder.` The purpose of this function is to compensate for the absence of SM channels, which are ignored when investigating rare processes. A dummy decay channel is instead added to each particle in order to maintain the correct ratios between the branching ratios of each particle to rare processes. This is usually combined with a global reweighting of the branching ratios. In order to keep PYTHIA from complaining about charge conservation, a suitable process is added which conserves electric charge. All dummy channels can be identified by the presence of a photon among the decay products.
Definition at line 199 of file pythia8_conf_utils.py.
pythia8_conf_utils.add_particles | ( | P8gen, | |
particles, | |||
data | |||
) |
Adds the corresponding particles to PYTHIA. `particles` must be a list containing either the particles PDG IDs, or their PYTHIA names. The commands needed to add the particles are queried from `data`. If the particle is not self-conjugate, the antiparticle is automatically added by PYTHIA.
Definition at line 133 of file pythia8_conf_utils.py.
pythia8_conf_utils.add_tau_channel | ( | P8gen, | |
ch, | |||
histograms, | |||
mass, | |||
couplings, | |||
scale_factor | |||
) |
Definition at line 167 of file pythia8_conf_utils.py.
pythia8_conf_utils.addHNLtoROOT | ( | pid = 9900015 , |
|
m = 1.0 , |
|||
g = 3.654203020370371E-21 |
|||
) |
Definition at line 12 of file pythia8_conf_utils.py.
pythia8_conf_utils.compute_max_total_br | ( | decay_chains | ) |
This function computes the maximum total branching ratio for all decay chains. In order to make the event generation as efficient as possible when studying very rare processes, it is necessary to rescale the branching ratios, while enforcing the invariant that any total branching ratio must remain lower that unity. This is accomplished by computing, for each particle, the total branching ratio to processes of interest, and then dividing all branching ratios by the highest of those. Note: the decay chain length must be at most 2.
Definition at line 225 of file pythia8_conf_utils.py.
pythia8_conf_utils.compute_total_br | ( | particle, | |
decay_chains | |||
) |
Returns the total branching ratio to HNLs for a given particle.
Definition at line 247 of file pythia8_conf_utils.py.
pythia8_conf_utils.exit_if_zero_br | ( | max_total_br, | |
selection, | |||
mass, | |||
particle = 'HNL' |
|||
) |
Definition at line 261 of file pythia8_conf_utils.py.
pythia8_conf_utils.fill_missing_channels | ( | P8gen, | |
max_total_br, | |||
decay_chains, | |||
epsilon = 1e-6 |
|||
) |
Add dummy channels for correct rejection sampling. Even after rescaling the branching ratios, they do not sum up to unity for most particles since we are ignoring SM processes. This function adds a "filler" channel for each particle, in order to preserve the ratios between different branching ratios.
Definition at line 180 of file pythia8_conf_utils.py.
pythia8_conf_utils.get_br | ( | histograms, | |
channel, | |||
mass, | |||
couplings | |||
) |
Utility function used to reliably query the branching ratio for a given channel at a given mass, taking into account the correct coupling.
Definition at line 123 of file pythia8_conf_utils.py.
pythia8_conf_utils.get_top_level_particles | ( | decay_chains | ) |
Returns the set of particles which are at the top of a decay chain.
Definition at line 255 of file pythia8_conf_utils.py.
pythia8_conf_utils.getbr_rpvsusy | ( | h, | |
histoname, | |||
mass, | |||
coupling | |||
) |
Definition at line 16 of file pythia8_conf_utils.py.
pythia8_conf_utils.getmaxsumbrrpvsusy | ( | h, | |
histograms, | |||
mass, | |||
couplings | |||
) |
Definition at line 24 of file pythia8_conf_utils.py.
pythia8_conf_utils.gettotalbrrpvsusy | ( | h, | |
histograms, | |||
mass, | |||
couplings | |||
) |
Definition at line 41 of file pythia8_conf_utils.py.
pythia8_conf_utils.make_interpolators | ( | filepath, | |
kind = 'linear' |
|||
) |
This function reads a file containing branching ratio histograms, and returns a dictionary of interpolators of the branching ratios, indexed by the decay string.
Definition at line 110 of file pythia8_conf_utils.py.
pythia8_conf_utils.make_particles_stable | ( | P8gen, | |
above_lifetime | |||
) |
Make the particles with a lifetime above the specified one stable, to allow them to decay in Geant4 instead.
Definition at line 49 of file pythia8_conf_utils.py.
pythia8_conf_utils.parse_histograms | ( | filepath | ) |
This function parses a file containing histograms of branching ratios. It places them in a dictionary indexed by the decay string (e.g. 'd_K0_e'), as a pair ([masses...], [branching ratios...]), where the mass is expressed in GeV.
Definition at line 65 of file pythia8_conf_utils.py.
pythia8_conf_utils.print_scale_factor | ( | scaling_factor | ) |
Definition at line 267 of file pythia8_conf_utils.py.