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 Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...
Calculate and represent resolution for a physical quantity.
const Resolution & p_res() const
Return a constant reference to the momentum resolution.
double eta_sigma(const Fourvec &v) const
Calculate the pseudorapidity resolution of a four-momentum.
const Resolution & phi_res() const
Return a constant reference to the azimuthal angle resolution.
void smear(Fourvec &v, CLHEP::HepRandomEngine &engine, bool do_smear_dir=false) const
Smear a four-momentum according to the resolutions.
Vector_Resolution()
Constructor, instantiate an instance of Vector_Resolution with infinite precision.
double phi_sigma(const Fourvec &v) const
Calculate the azimuthal angle resolution of a four-momentum.
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
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...
bool use_et() const
Return the use_et flag.
void smear_dir(Fourvec &v, CLHEP::HepRandomEngine &engine) const
Helper function to smear direction.
Calculate and represent resolution for a physical quantity.
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...
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.