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
 

Additional Inherited Members

- Public Types inherited from BPHVertexSelect
using AcceptArg = BPHDecayVertex
 

Detailed Description

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

Author
Paolo Ronchese INFN Padova

Definition at line 31 of file BPHChi2Select.h.

Constructor & Destructor Documentation

BPHChi2Select::BPHChi2Select ( double  prob)
inline

Constructor

Definition at line 35 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 44 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().

44  {
45  const reco::Vertex& v = cand.vertex();
46  if (v.isFake())
47  return false;
48  if (!v.isValid())
49  return false;
50  return (TMath::Prob(v.chi2(), lround(v.ndof())) > probMin);
51  }
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:71
double chi2() const
chi-squares
Definition: Vertex.h:102
double ndof() const
Definition: Vertex.h:109
bool isFake() const
Definition: Vertex.h:75
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 67 of file BPHChi2Select.h.

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