MomentumSmearingFunctions.hh 48 const double smeared_E = max(randnorm(p.E(), resolution), mass); //< can't let the energy go below the mass! 97 const double smeared_mod = max(randnorm(p.mod(), resolution), 0.); //< can't let the energy go below the mass! Vector3 P3_SMEAR_PERFECT(const Vector3 &p) Alias for P3_SMEAR_IDENTITY. Definition: MomentumSmearingFunctions.hh:93 Definition: ALICE_2010_I880049.cc:13 FourMomentum P4_SMEAR_E_GAUSS(const FourMomentum &p, double resolution) Definition: MomentumSmearingFunctions.hh:46 double pT() const Calculate the transverse momentum . Definition: Vector4.hh:628 FourMomentum P4_SMEAR_IDENTITY(const FourMomentum &p) Take a FourMomentum and return it unmodified. Definition: MomentumSmearingFunctions.hh:40 Take a Vector3 and return a constant number. Definition: MomentumSmearingFunctions.hh:83 double P4_EFF_ZERO(const FourMomentum &) Take a FourMomentum and return 0. Definition: MomentumSmearingFunctions.hh:22 Vector3 P3_SMEAR_LEN_GAUSS(const Vector3 &p, double resolution) Smear a Vector3's length using a Gaussian of absolute width resolution. Definition: MomentumSmearingFunctions.hh:96 static FourMomentum mkEtaPhiMPt(double eta, double phi, double mass, double pt) Make a vector from (eta,phi,pT) coordinates and the mass. Definition: Vector4.hh:786 static FourMomentum mkEtaPhiME(double eta, double phi, double mass, double E) Make a vector from (eta,phi,energy) coordinates and the mass. Definition: Vector4.hh:781 double mass2() const Get the squared mass (the Lorentz self-invariant). Definition: Vector4.hh:572 Take a FourMomentum and return a constant number. Definition: MomentumSmearingFunctions.hh:32 double P3_EFF_ONE(const Vector3 &p) Take a Vector3 and return 1. Definition: MomentumSmearingFunctions.hh:78 FourMomentum P4_SMEAR_PERFECT(const FourMomentum &p) Alias for P4_SMEAR_IDENTITY. Definition: MomentumSmearingFunctions.hh:42 double mass() const Get the mass (the Lorentz self-invariant). Definition: Vector4.hh:561 double P4_EFF_ONE(const FourMomentum &) Take a FourMomentum and return 1. Definition: MomentumSmearingFunctions.hh:27 FourMomentum P4_SMEAR_MASS_GAUSS(const FourMomentum &p, double resolution) Smear a FourMomentum's mass using a Gaussian of absolute width resolution. Definition: MomentumSmearingFunctions.hh:60 double E() const Get energy (time component of momentum). Definition: Vector4.hh:538 double max(const vector< double > &in, double errval=DBL_NAN) Find the maximum value in the vector. Definition: Utils.hh:465 Vector3 P3_SMEAR_IDENTITY(const Vector3 &p) Take a Vector3 and return it unmodified. Definition: MomentumSmearingFunctions.hh:91 double phi(const PhiMapping mapping=ZERO_2PI) const Synonym for azimuthalAngle. Definition: Vector4.hh:134 double P3_EFF_ZERO(const Vector3 &p) Take a Vector3 and return 0. Definition: MomentumSmearingFunctions.hh:73 Specialized version of the FourVector with momentum/energy functionality. Definition: Vector4.hh:301 FourMomentum P4_SMEAR_PT_GAUSS(const FourMomentum &p, double resolution) Smear a FourMomentum's transverse momentum using a Gaussian of absolute width resolution. Definition: MomentumSmearingFunctions.hh:53 double randnorm(double loc, double scale) Return a Gaussian/normal sampled random number with the given mean and width. Definition: Random.cc:47 Generated on Sun Feb 17 2019 21:04:56 for Rivet by ![]() |