Implements BPHHistoSpecificDecay::CandidateSelect.
Definition at line 271 of file BPHHistoSpecificDecay.cc.
References reco::Vertex::chi2(), ChiSquaredProbability(), reco::Vertex::error(), BPHUserData::get(), ResonanceBuilder::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().
275 if ( svtx == 0 )
return false;
276 if ( pvtx == 0 )
return false;
279 svtx->
ndof() ) <
pMin )
return false;
281 if ( (
cMin > 0 ) || (
sMin > 0 ) ) {
282 TVector3 disp( svtx->
x() - pvtx->
x(),
283 svtx->
y() - pvtx->
y(),
285 TVector3 cmom( cand.px(), cand.py(), 0 );
286 float cosAlpha = disp.Dot( cmom ) / ( disp.Perp() * cmom.Perp() );
287 if ( cosAlpha <
cMin )
return false;
288 if (
sMin < 0 )
return true;
289 float mass = cand.mass();
293 double ctauPV = distXY.
value() * cosAlpha * mass / cmom.Perp();
297 double ctauErrPV =
sqrt( ROOT::Math::Similarity( vmom, vXYe ) ) * mass /
299 if ( ( ctauPV / ctauErrPV ) <
sMin )
return false;
const AlgebraicSymMatrix33 matrix() const
double y() const
y coordinate
static const T * get(const pat::CompositeCandidate &cand, const string &name)
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
ROOT::Math::SVector< double, 3 > AlgebraicVector3
double chi2() const
chi-squares
float ChiSquaredProbability(double chiSquared, double nrDOF)
double x() const
x coordinate
Error error() const
return SMatrix