Rivet API documentation
![]() |
Rivet 4.1.3
|
SmearedMET.hh
26 typename std::enable_if_t<is_same_v<invoke_result_t<SMEARPARAMSFN, Vector3, double>, METSmearParams>,
46 typename std::enable_if_t<is_same_v<invoke_result_t<SMEARPARAMSFN, Vector3, double>, METSmearParams>,
56 typename std::enable_if_t<is_same_v<invoke_result_t<SMEARFN, Vector3, double>, Vector3>, int> = 0>
69 typename std::enable_if_t<is_same_v<invoke_result_t<SMEARFN, Vector3, double>, Vector3>, int> = 0>
84 SmearedMET(const MissingMomentum& mm, const SMEARPARAMSFN& metSmearParamsFn, const SMEARFN& metSmearFn)
102 SmearedMET(const SMEARPARAMSFN& metSmearParamsFn, const SMEARFN& metSmearFn, const Cut& cut = Cuts::OPEN)
120 // MSG_TRACE("Smear hashes (params) = " << get_address(_metSmearParamsFn) << "," << get_address(other._metSmearParamsFn));
181 throw UserError("Trying to compute MPT significance without a registered significance function");
217 throw UserError("Trying to compute MET significance without a registered significance function");
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Interface for projections that find missing transverse energy/momentum.
Definition METFinder.hh:11
double missingPt() const
The vector-summed missing transverse momentum in the event.
Definition METFinder.hh:46
virtual const Vector3 & vectorEt() const
Alias for vectorSumEt.
Definition METFinder.hh:86
virtual const Vector3 & vectorPt() const
Alias for vectorSumPt.
Definition METFinder.hh:28
double missingEt() const
The vector-summed missing transverse energy in the event.
Definition METFinder.hh:104
Calculate missing , etc. as complements to the total visible momentum.
Definition MissingMomentum.hh:22
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
void reset()
Reset the projection. Smearing functions will be unchanged.
Definition SmearedMET.hh:232
SmearedMET(const SMEARPARAMSFN &metSmearParamsFn, const SMEARFN &metSmearFn, const Cut &cut=Cuts::OPEN)
Constructor from a Cut (on the particles used to determine missing momentum) and a pair of smearing (...
Definition SmearedMET.hh:102
double missingPtSignf() const
Obtain an approximation to the MPT significance (value/resolution) for this event.
Definition SmearedMET.hh:187
double scalarSumEt() const
The scalar-summed visible transverse energy in the event.
Definition SmearedMET.hh:210
double missingPtResolution() const
Obtain an approximation to the MPT resolution for this event.
Definition SmearedMET.hh:179
SmearedMET(const MissingMomentum &mm, const SMEARFN &metSmearFn)
Constructor from a MissingMomentum projection and a smearing function.
Definition SmearedMET.hh:57
SmearedMET(const MissingMomentum &mm, const SMEARPARAMSFN &metSmearParamsFn)
Constructor from a MissingMomentum projection and a smearing-params function.
Definition SmearedMET.hh:28
SmearedMET(const MissingMomentum &mm, const SMEARPARAMSFN &metSmearParamsFn, const SMEARFN &metSmearFn)
Constructor from a MissingMomentum projection and a pair of smearing-params and smearing functions.
Definition SmearedMET.hh:84
SmearedMET(const SMEARPARAMSFN &metSmearParamsFn, const Cut &cut=Cuts::OPEN)
Constructor from a Cut (on the particles used to determine missing momentum) and a smearing-params fu...
Definition SmearedMET.hh:48
void project(const Event &e)
Perform the MET finding & smearing calculation.
Definition SmearedMET.hh:131
double missingEtResolution() const
Obtain an approximation to the MET resolution for this event.
Definition SmearedMET.hh:215
SmearedMET(const SMEARFN &metSmearFn, const Cut &cut=Cuts::OPEN)
Constructor from a Cut (on the particles used to determine missing momentum) and a smearing function.
Definition SmearedMET.hh:70
const Vector3 & vectorSumPt() const
The vector-summed visible transverse momentum in the event, as a 3-vector with z=0.
Definition SmearedMET.hh:169
double missingEtSignf() const
Obtain an approximation to the MET significance (value/resolution) for this event.
Definition SmearedMET.hh:224
CmpState compare(const Projection &p) const
Compare to another SmearedMET.
Definition SmearedMET.hh:116
double scalarSumPt() const
The scalar-summed visible transverse momentum in the event.
Definition SmearedMET.hh:174
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:819
function< Vector3(const Vector3 &, double)> METSmearFn
Definition MomentumSmearingFunctions.hh:168
function< METSmearParams(const Vector3 &, double)> METSmearParamsFn
Definition MomentumSmearingFunctions.hh:163
Vector3 MET_SMEAR_NORM(const METSmearParams &msps)
Smear a nominal vector magnitude by Gaussian with the given absolute resolutions.
Definition MomentumSmearingFunctions.hh:185
T getEnvParam(const std::string name, const T &fallback)
Get a parameter from a named environment variable, with automatic type conversion.
Definition Utils.hh:921
Definition LHCbCommon.hh:9
Struct for holding MET-smearing parameters.
Definition MomentumSmearingFunctions.hh:150
Error specialisation for failures relating to event smearing.
Definition Exceptions.hh:58
Error specialisation for where the problem is between the chair and the computer.
Definition Exceptions.hh:75
Generated on for Rivet by
