Crate cres

Crate cres 

Source
Expand description

cres is a crate for cell resampling, introduced in

Unbiased Elimination of Negative Weights in Monte Carlo Samples
J. Andersen, A. Maier
arXiv:2109.07851

Efficient negative-weight elimination in large high-multiplicity Monte Carlo event samples
Jeppe R. Andersen, Andreas Maier, Daniel Maître
arXiv:2303.15246

§How to use

Probably the best way to get started is to look at the examples, starting with examples/minimal.rs.

§Most relevant modules

  • prelude exports a list of the most relevant classes and objects
  • cres contains the main class and lists the steps that are performed
  • io event input and output (from and to files)
  • event for the internal event format
  • distance for user-defined distance functions
  • seeds and resampler for the resampling

Modules§

anti_gauge_and_higgs_bosons
anti_leptons
anti_quarks
baryons
bbbar_mesons
bottom_baryons
bottom_mesons
ccbar_mesons
cell
Definition of event cells
cell_collector
Callbacks used upon cell construction and when writing out events
charmed_baryons
charmed_mesons
cluster
Jet clustering helpers
compression
Output compression
cres
Main cell resampling functionality
diquarks
distance
Distance functions
event
Scattering event class
formats
Supported event file formats
four_vector
Four-vector class
gauge_and_higgs_bosons
gauge_bosons
hadrons
hepmc2
HepMC2 interface
higgs_bosons
io
Event input/output
leptons
lhef
LesHouches Event File interface
light_Ieq0_mesons
light_Ieq1_mesons
light_anti_baryons
light_baryons
light_mesons
mesons
neighbour_search
Nearest neighbour search algorithms
partition
Phase-space partitions
pentaquarks
prelude
Most important exports
progress_bar
Progress bar
quarks
resampler
Cell resampling
seeds
Cell seed selection
sm_elementary_particles
special_particles
strange_baryons
strange_mesons
susy_anti_particles
susy_particles
traits
Common traits
unweight
Unweighting
vptree
Vantage-point tree

Structs§

ParticleID
Particle ID according to the Monte Carlo Particle Numbering Scheme

Constants§

FEATURES
Features enabled during compilation
GIT_BRANCH
git branch during compilation
GIT_REV
Hash of the compiled git commit
VERSION
cres version
VERSION_MAJOR
Major version number
VERSION_MINOR
Minor version number
VERSION_PATCH
Patch version number

Traits§

Float
Generic trait for floating point numbers

Functions§

n64
Shorthand for N64::new(value).

Type Aliases§

N64
A floating point number behaving like f64 that does not allow NaN.