Rivet API documentation
![]() |
Rivet 4.1.3
|
EventMixingFinalState.hh
150 weighted_shuffle(mixParticles.begin(), mixParticles.end(), weights.begin(), weights.end(), rng());
Used together with the percentile-based analysis objects Percentile and PercentileXaxis.
Definition CentralityProjection.hh:27
virtual void calculateMixingObs(const Projection *mProj)=0
size_t nMix
The number of event to mix with.
Definition EventMixingFinalState.hh:200
bool unitWeights
Using unit weights or not.
Definition EventMixingFinalState.hh:206
vector< MixEvent > getMixingEvents() const
Return a vector of mixing events.
Definition EventMixingFinalState.hh:112
MixMap mixEvents
The event map.
Definition EventMixingFinalState.hh:203
EventMixingBase(const Projection &mixObsProj, const ParticleFinder &mix, size_t nMixIn, double oMin, double oMax, double deltao, const size_t defaultIdx)
Constructor.
Definition EventMixingFinalState.hh:77
void project(const Event &e)
Perform the projection on the Event.
Definition EventMixingFinalState.hh:167
double mObs
The mixing observable of the current event.
Definition EventMixingFinalState.hh:194
bool hasMixingEvents() const
Definition EventMixingFinalState.hh:105
virtual const Particles particles() const
Return a vector of particles from the mixing events.
Definition EventMixingFinalState.hh:122
CmpState compare(const Projection &p) const
Compare with other projections.
Definition EventMixingFinalState.hh:188
virtual void calculateMixingObs(const Projection *mProj)
Calculate the mixing observable.
Definition EventMixingFinalState.hh:265
virtual void calculateMixingObs(const Projection *mProj)
Calculate the mixing observable.
Definition EventMixingFinalState.hh:236
std::valarray< double > weights() const
The generation weights associated with the event.
Base class for projections which return subsets of an event's particles.
Definition ParticleFinder.hh:11
std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > apply(const Event &evt, const Projection &proj) const
Apply the supplied projection on event evt.
Definition ProjectionApplier.hh:124
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:205
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
#define MSG_DEBUG(x)
Debug messaging, not enabled by default, using MSG_LVL.
Definition Logging.hh:195
#define MSG_WARNING(x)
Warning messages for non-fatal bad things, using MSG_LVL.
Definition Logging.hh:200
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
Definition LHCbCommon.hh:9
void weighted_shuffle(RandomAccessIterator first, RandomAccessIterator last, WeightIterator fw, WeightIterator lw, RandomNumberGenerator &g)
Make an event mixed together from several events.
Definition EventMixingFinalState.hh:39
pair< Particles, double > MixEvent
A MixEvent is a vector of particles with and associated weight.
Definition EventMixingFinalState.hh:57
std::mt19937 & rng()
Return a thread-safe random number generator (mainly for internal use).
Generated on for Rivet by
