Implements BPHHistoSpecificDecay::CandidateSelect.
Definition at line 288 of file BPHHistoSpecificDecay.cc.
References reco::Vertex::chi2(), ChiSquaredProbability(), reco::Vertex::error(), EgHLTOffHistBins_cfi::mass, GlobalErrorBase< T, ErrorWeightType >::matrix(), reco::Vertex::ndof(), ALCARECOTkAlMinBias_cff::pMin, mathSSE::sqrt(), Measurement1D::value(), reco::Vertex::x(), and reco::Vertex::y().
Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().
289 const reco::Vertex* svtx = BPHUserData::get<reco::Vertex>(cand,
"fitVertex");
297 TVector3 disp(svtx->
x() - pvtx->
x(), svtx->
y() - pvtx->
y(), 0);
299 BPHUserData::get<Vector3DBase<float, GlobalTag> >(cand,
"fitMomentum");
302 TVector3 cmom(fmom->x(), fmom->y(), 0);
303 float cosAlpha = disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
308 if (!cand.hasUserFloat(
"fitMass"))
310 float mass = cand.userFloat(
"fitMass");
314 double ctauPV = distXY.
value() * cosAlpha * mass / cmom.Perp();
318 double ctauErrPV =
sqrt(ROOT::Math::Similarity(vmom, vXYe)) * mass / cmom.Perp2();
319 if ((ctauPV / ctauErrPV) <
sMin)
const AlgebraicSymMatrix33 matrix() const
double y() const
y coordinate
double chi2() const
chi-squares
float ChiSquaredProbability(double chiSquared, double nrDOF)
double x() const
x coordinate
Error error() const
return SMatrix
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33