Rivet API documentation
![]() |
Rivet 4.1.3
|
SmearedMET.hh
24 template<typename SMEARPARAMSFN, typename std::enable_if_t<is_same_v<invoke_result_t<SMEARPARAMSFN, Vector3, double>, METSmearParams>, int> = 0>
40 template<typename SMEARPARAMSFN, typename std::enable_if_t<is_same_v<invoke_result_t<SMEARPARAMSFN, Vector3, double>, METSmearParams>, int> = 0>
48 template<typename SMEARFN, typename std::enable_if_t<is_same_v<invoke_result_t<SMEARFN, Vector3, double>, Vector3>, int> = 0>
60 template<typename SMEARFN, typename std::enable_if_t<is_same_v<invoke_result_t<SMEARFN, Vector3, double>, Vector3>, int> = 0>
73 SmearedMET(const MissingMomentum& mm, const SMEARPARAMSFN& metSmearParamsFn, const SMEARFN& metSmearFn)
89 SmearedMET(const SMEARPARAMSFN& metSmearParamsFn, const SMEARFN& metSmearFn, const Cut& cut=Cuts::OPEN)
108 // MSG_TRACE("Smear hashes (params) = " << get_address(_metSmearParamsFn) << "," << get_address(other._metSmearParamsFn));
133 const METSmearParams msps_p = _metSmearParamsFn(_vpt, _set); //< custom smear params: note still calibrated wrt SET, not SPT
138 throw SmearError("Attempt to smear MPT and MET with neither a smearing function nor a smearing-params function set");
160 throw UserError("Trying to compute MPT significance without a registered significance function");
192 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:38
virtual const Vector3 & vectorEt() const
Alias for vectorSumEt.
Definition METFinder.hh:66
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:76
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:119
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:184
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
void reset()
Reset the projection. Smearing functions will be unchanged.
Definition SmearedMET.hh:207
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:89
double missingPtSignf() const
Obtain an approximation to the MPT significance (value/resolution) for this event.
Definition SmearedMET.hh:166
double scalarSumEt() const
The scalar-summed visible transverse energy in the event.
Definition SmearedMET.hh:187
double missingPtResolution() const
Obtain an approximation to the MPT resolution for this event.
Definition SmearedMET.hh:158
SmearedMET(const MissingMomentum &mm, const SMEARFN &metSmearFn)
Constructor from a MissingMomentum projection and a smearing function.
Definition SmearedMET.hh:49
SmearedMET(const MissingMomentum &mm, const SMEARPARAMSFN &metSmearParamsFn)
Constructor from a MissingMomentum projection and a smearing-params function.
Definition SmearedMET.hh:25
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:73
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:41
void project(const Event &e)
Perform the MET finding & smearing calculation.
Definition SmearedMET.hh:119
double missingEtResolution() const
Obtain an approximation to the MET resolution for this event.
Definition SmearedMET.hh:190
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:61
const Vector3 & vectorSumPt() const
The vector-summed visible transverse momentum in the event, as a 3-vector with z=0.
Definition SmearedMET.hh:152
double missingEtSignf() const
Obtain an approximation to the MET significance (value/resolution) for this event.
Definition SmearedMET.hh:199
CmpState compare(const Projection &p) const
Compare to another SmearedMET.
Definition SmearedMET.hh:104
double scalarSumPt() const
The scalar-summed visible transverse momentum in the event.
Definition SmearedMET.hh:155
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
function< Vector3(const Vector3 &, double)> METSmearFn
Definition MomentumSmearingFunctions.hh:139
function< METSmearParams(const Vector3 &, double)> METSmearParamsFn
Definition MomentumSmearingFunctions.hh:134
Vector3 MET_SMEAR_NORM(const METSmearParams &msps)
Smear a nominal vector magnitude by Gaussian with the given absolute resolutions.
Definition MomentumSmearingFunctions.hh:156
T getEnvParam(const std::string name, const T &fallback)
Get a parameter from a named environment variable, with automatic type conversion.
Definition Utils.hh:874
Definition MC_CENT_PPB_Projections.hh:10
Struct for holding MET-smearing parameters.
Definition MomentumSmearingFunctions.hh:121
Error specialisation for failures relating to event smearing.
Definition Exceptions.hh:52
Error specialisation for where the problem is between the chair and the computer.
Definition Exceptions.hh:67
Generated on for Rivet by
