CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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)
 
 BPHChi2Select (const BPHChi2Select &x)=delete
 
double getProbMin () const
 get current prob min More...
 
BPHChi2Selectoperator= (const BPHChi2Select &x)=delete
 
void setProbMin (double p)
 set prob min More...
 
 ~BPHChi2Select () override
 
- Public Member Functions inherited from BPHVertexSelect
 BPHVertexSelect ()
 
 BPHVertexSelect (const BPHVertexSelect &x)=delete
 
BPHVertexSelectoperator= (const BPHVertexSelect &x)=delete
 
virtual ~BPHVertexSelect ()
 

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.

35 : probMin(prob) {}
BPHChi2Select::BPHChi2Select ( const BPHChi2Select x)
delete
BPHChi2Select::~BPHChi2Select ( )
inlineoverride

Destructor

Definition at line 43 of file BPHChi2Select.h.

43 {}

Member Function Documentation

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

select vertex

Operations

Implements BPHVertexSelect.

Definition at line 48 of file BPHChi2Select.h.

Referenced by BPHX3872ToJPsiPiPiBuilder::build(), BPHDecayToChargedXXbarBuilder::build(), BPHDecayToTkpTknSymChargeBuilder::build(), BPHDecayToV0Builder::buildFromV0(), BPHOniaToMuMuBuilder::extractList(), and esMonitoring.FDJsonServer::handle_accept().

48  {
49  if (probMin < 0.0)
50  return true;
51  const reco::Vertex& v = cand.vertex();
52  if (v.isFake())
53  return false;
54  if (!v.isValid())
55  return false;
56  return (TMath::Prob(v.chi2(), lround(v.ndof())) >= probMin);
57  }
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:72
double chi2() const
chi-squares
Definition: Vertex.h:116
virtual const reco::Vertex & vertex(VertexFitter< 5 > *fitter=nullptr, const reco::BeamSpot *bs=nullptr, const GlobalPoint *priorPos=nullptr, const GlobalError *priorError=nullptr) const
get reconstructed vertex
double ndof() const
Definition: Vertex.h:123
bool isFake() const
Definition: Vertex.h:76
double BPHChi2Select::getProbMin ( ) const
inline
BPHChi2Select& BPHChi2Select::operator= ( const BPHChi2Select x)
delete
void BPHChi2Select::setProbMin ( double  p)
inline

set prob min

Definition at line 60 of file BPHChi2Select.h.

References AlCaHLTBitMon_ParallelJobs::p, and probMin.

Referenced by BPHDecayGenericBuilder::setProbMin(), and BPHOniaToMuMuBuilder::setProbMin().

60  {
61  probMin = p;
62  return;
63  }

Member Data Documentation

double BPHChi2Select::probMin
private

Definition at line 69 of file BPHChi2Select.h.

Referenced by getProbMin(), and setProbMin().