Definition at line 241 of file BPHHistoSpecificDecay.cc.
BPHCompositeVertexSelect::BPHCompositeVertexSelect |
( |
float |
probMin, |
|
|
float |
cosMin = -1.0 , |
|
|
float |
sigMin = -1.0 |
|
) |
| |
|
inline |
Implements BPHHistoSpecificDecay::CandidateSelect.
Definition at line 245 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().
246 const reco::Vertex* svtx = BPHUserData::get<reco::Vertex>(cand,
"vertex");
256 TVector3 disp(svtx->
x() - pvtx->
x(), svtx->
y() - pvtx->
y(), 0);
257 TVector3 cmom(cand.px(), cand.py(), 0);
258 float cosAlpha = disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
263 float mass = cand.mass();
267 double ctauPV = distXY.
value() * cosAlpha * mass / cmom.Perp();
271 double ctauErrPV =
sqrt(ROOT::Math::Similarity(vmom, vXYe)) * mass / cmom.Perp2();
272 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
float BPHCompositeVertexSelect::cMin |
|
private |
float BPHCompositeVertexSelect::pMin |
|
private |
float BPHCompositeVertexSelect::sMin |
|
private |