00001 #ifndef DataFormats_PatCandidates_interface_ResolutionHelper_h 00002 #define DataFormats_PatCandidates_interface_ResolutionHelper_h 00003 00004 #include "DataFormats/PatCandidates/interface/CandKinResolution.h" 00005 00006 namespace pat { namespace helper { 00007 namespace ResolutionHelper { 00008 void rescaleForKinFitter(const pat::CandKinResolution::Parametrization parametrization, 00009 AlgebraicSymMatrix44 &covariance, 00010 const math::XYZTLorentzVector &initialP4); 00011 double getResolEta(pat::CandKinResolution::Parametrization parametrization, 00012 const AlgebraicSymMatrix44 &covariance, 00013 const pat::CandKinResolution::LorentzVector &p4) ; 00014 double getResolTheta(pat::CandKinResolution::Parametrization parametrization, 00015 const AlgebraicSymMatrix44 &covariance, 00016 const pat::CandKinResolution::LorentzVector &p4) ; 00017 double getResolPhi(pat::CandKinResolution::Parametrization parametrization, 00018 const AlgebraicSymMatrix44 &covariance, 00019 const pat::CandKinResolution::LorentzVector &p4) ; 00020 double getResolE(pat::CandKinResolution::Parametrization parametrization, 00021 const AlgebraicSymMatrix44 &covariance, 00022 const pat::CandKinResolution::LorentzVector &p4) ; 00023 double getResolEt(pat::CandKinResolution::Parametrization parametrization, 00024 const AlgebraicSymMatrix44 &covariance, 00025 const pat::CandKinResolution::LorentzVector &p4) ; 00026 double getResolM(pat::CandKinResolution::Parametrization parametrization, 00027 const AlgebraicSymMatrix44 &covariance, 00028 const pat::CandKinResolution::LorentzVector &p4) ; 00029 double getResolP(pat::CandKinResolution::Parametrization parametrization, 00030 const AlgebraicSymMatrix44 &covariance, 00031 const pat::CandKinResolution::LorentzVector &p4) ; 00032 double getResolPt(pat::CandKinResolution::Parametrization parametrization, 00033 const AlgebraicSymMatrix44 &covariance, 00034 const pat::CandKinResolution::LorentzVector &p4) ; 00035 double getResolPInv(pat::CandKinResolution::Parametrization parametrization, 00036 const AlgebraicSymMatrix44 &covariance, 00037 const pat::CandKinResolution::LorentzVector &p4) ; 00038 double getResolPx(pat::CandKinResolution::Parametrization parametrization, 00039 const AlgebraicSymMatrix44 &covariance, 00040 const pat::CandKinResolution::LorentzVector &p4) ; 00041 double getResolPy(pat::CandKinResolution::Parametrization parametrization, 00042 const AlgebraicSymMatrix44 &covariance, 00043 const pat::CandKinResolution::LorentzVector &p4) ; 00044 double getResolPz(pat::CandKinResolution::Parametrization parametrization, 00045 const AlgebraicSymMatrix44 &covariance, 00046 const pat::CandKinResolution::LorentzVector &p4) ; 00047 } } } 00048 00049 #endif