CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
BPHChi2Select Class Reference

#include <BPHChi2Select.h>

Inheritance diagram for BPHChi2Select:
BPHVertexSelect

Public Member Functions

bool accept (const BPHDecayVertex &cand) const override
 select vertex More...
 
 BPHChi2Select (double prob)
 
double getProbMin () const
 get current prob min More...
 
void setProbMin (double p)
 set prob min More...
 
 ~BPHChi2Select () override
 
- Public Member Functions inherited from BPHVertexSelect
 BPHVertexSelect ()
 
virtual ~BPHVertexSelect ()
 

Private Member Functions

 BPHChi2Select (const BPHChi2Select &x)=delete
 
BPHChi2Selectoperator= (const BPHChi2Select &x)=delete
 

Private Attributes

double probMin
 

Detailed Description

Description: Class for candidate selection by chisquare (at vertex fit level)

Author
Paolo Ronchese INFN Padova

Definition at line 32 of file BPHChi2Select.h.

Constructor & Destructor Documentation

BPHChi2Select::BPHChi2Select ( double  prob)
inline

Constructor

Definition at line 38 of file BPHChi2Select.h.

Referenced by getProbMin().

BPHChi2Select::~BPHChi2Select ( )
inlineoverride
BPHChi2Select::BPHChi2Select ( const BPHChi2Select x)
privatedelete

Member Function Documentation

bool BPHChi2Select::accept ( const BPHDecayVertex cand) const
inlineoverridevirtual

select vertex

Operations

Implements BPHVertexSelect.

Definition at line 47 of file BPHChi2Select.h.

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), BPHKx0ToKPiBuilder::build(), BPHOniaToMuMuBuilder::extractList(), esMonitoring.FDJsonServer::handle_accept(), and ~BPHChi2Select().

47  {
48  const reco::Vertex& v = cand.vertex();
49  if ( v.isFake() ) return false;
50  if ( !v.isValid() ) return false;
51  return ( TMath::Prob( v.chi2(), lround( v.ndof() ) ) > probMin );
52  }
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:68
double chi2() const
chi-squares
Definition: Vertex.h:98
double ndof() const
Definition: Vertex.h:105
bool isFake() const
Definition: Vertex.h:72
virtual const reco::Vertex & vertex() const
get reconstructed vertex
double BPHChi2Select::getProbMin ( ) const
inline
BPHChi2Select& BPHChi2Select::operator= ( const BPHChi2Select x)
privatedelete

Referenced by getProbMin().

void BPHChi2Select::setProbMin ( double  p)
inline

Member Data Documentation

double BPHChi2Select::probMin
private

Definition at line 66 of file BPHChi2Select.h.

Referenced by getProbMin(), setProbMin(), and ~BPHChi2Select().