![]() |
ATLAS Offline Software
|
Classes | |
| class | ConstSampler |
| class | ContinuousSampler |
| Continuous distribution samplers. More... | |
| class | CyclicSeqSampler |
| class | DiscreteSampler |
| Discrete sequence samplers. More... | |
| class | DisjointUniformSampler |
| class | EEtaMPhiSampler |
| class | ERapMPhiSampler |
| class | EThetaMPhiSampler |
| class | GaussianSampler |
| class | InvSampler |
| class | LogSampler |
| class | ModUniformSampler |
| class | MomSampler |
| Momentum sampling. More... | |
| class | MXYZSampler |
| class | NullMomSampler |
| class | ParticleSampler |
| class | PosSampler |
| Beam-spot (origin vertex) sampling. More... | |
| class | PtEtaMPhiSampler |
| class | PtRapMPhiSampler |
| class | PtThetaMPhiSampler |
| class | RandomSeqSampler |
| class | SampledParticle |
| class | Sampler |
| class | TH1Sampler |
| class | UniformSampler |
Functions | |
| def | mksampler (x) |
| Convenience function for sampler-making from Python literals. More... | |
Variables | |
| PI = math.pi | |
| For convenience. More... | |
| int | TWOPI = 2*math.pi |
| RndmSeq = RandomSeqSampler | |
| Sequence = CyclicSeqSampler | |
| Alias: More... | |
| dictionary | MASSES |
| Combined samplers returning a particle configuration. More... | |
| def python.samplers.mksampler | ( | x | ) |
Convenience function for sampler-making from Python literals.
Automatically cast the provided object to a sampler type. This is used extensively inside the particle and position samplers, so that the user can pass in a primitive type like a number or list and it will be treated as if the more verbose sampler constructors had been called. Behaviour: - if x can be called, i.e. x() is valid, we just return x; - a Python list (square brackets) will be converted to a continuous UniformSampler or DisjointUniformSampler; - a Python tuple (round brackets/parentheses) will be treated as a discrete CyclicSeqSampler; - a Python set (curly brackets/braces) will be treated as a discrete RandomSeqSampler; - otherwise a ConstSampler will be created from x, so that x is returned when the sampler is called.
Definition at line 245 of file samplers.py.
| dictionary python.samplers.MASSES |
Combined samplers returning a particle configuration.
A default dictionary of particle masses (in MeV)
Definition at line 820 of file samplers.py.
| python.samplers.PI = math.pi |
For convenience.
Definition at line 7 of file samplers.py.
| python.samplers.RndmSeq = RandomSeqSampler |
Definition at line 220 of file samplers.py.
| python.samplers.Sequence = CyclicSeqSampler |
Alias:
Definition at line 237 of file samplers.py.
| int python.samplers.TWOPI = 2*math.pi |
Definition at line 8 of file samplers.py.
1.8.18