Go to the documentation of this file.
45 #ifndef HITFIT_VECTOR_RESOLUTION_H
46 #define HITFIT_VECTOR_RESOLUTION_H
186 void smear(
Fourvec&
v, CLHEP::HepRandomEngine& engine,
bool do_smear_dir =
false)
const;
226 #endif // not HITFIT_VECTOR_RESOLUTION_H
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
void smear_dir(Fourvec &v, CLHEP::HepRandomEngine &engine) const
Helper function to smear direction.
void smear(Fourvec &v, CLHEP::HepRandomEngine &engine, bool do_smear_dir=false) const
Smear a four-momentum according to the resolutions.
Calculate and represent resolution for a physical quantity.
double phi_sigma(const Fourvec &v) const
Calculate the azimuthal angle resolution of a four-momentum.
const Resolution & p_res() const
Return a constant reference to the momentum resolution.
friend std::ostream & operator<<(std::ostream &s, const Vector_Resolution &r)
Output stream operator, print the content of this Vector_Resolution object to an output stream.
const Resolution & phi_res() const
Return a constant reference to the azimuthal angle resolution.
double p_sigma(const Fourvec &v) const
Calculate the momentum resolution of a four-momentum.
const Resolution & eta_res() const
Return a constant reference to the pseudorapidity resolution.
bool use_et() const
Return the use_et flag.
Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...
double eta_sigma(const Fourvec &v) const
Calculate the pseudorapidity resolution of a four-momentum.
Vector_Resolution()
Constructor, instantiate an instance of Vector_Resolution with infinite precision.