CMS 3D CMS Logo

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=default
 
- Public Member Functions inherited from BPHVertexSelect
virtual bool accept (const BPHDecayVertex &cand, const BPHRecoBuilder *builder) const
 
 BPHVertexSelect ()
 
 BPHVertexSelect (const BPHVertexSelect &x)=delete
 
BPHVertexSelectoperator= (const BPHVertexSelect &x)=delete
 
virtual ~BPHVertexSelect ()=default
 

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() [1/2]

BPHChi2Select::BPHChi2Select ( double  prob)
inline

Constructor

Definition at line 35 of file BPHChi2Select.h.

◆ BPHChi2Select() [2/2]

BPHChi2Select::BPHChi2Select ( const BPHChi2Select x)
delete

◆ ~BPHChi2Select()

BPHChi2Select::~BPHChi2Select ( )
overridedefault

Destructor

Member Function Documentation

◆ accept()

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

select vertex

Operations

Implements BPHVertexSelect.

Definition at line 48 of file BPHChi2Select.h.

Referenced by BPHDecayToV0Builder::buildFromV0(), BPHOniaToMuMuBuilder::extractList(), BPHDecayToChargedXXbarBuilder::fillRecList(), BPHDecayToResTrkTrkSameMassBuilder< BPHRecoCandidate, BPHPlusMinusCandidate >::fillRecList(), BPHDecayToTkpTknSymChargeBuilder::fillRecList(), 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  }

◆ getProbMin()

double BPHChi2Select::getProbMin ( ) const
inline

◆ operator=()

BPHChi2Select& BPHChi2Select::operator= ( const BPHChi2Select x)
delete

◆ setProbMin()

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 BPHDecayGenericBuilderBase::setProbMin(), and BPHOniaToMuMuBuilder::setProbMin().

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

Member Data Documentation

◆ probMin

double BPHChi2Select::probMin
private

Definition at line 69 of file BPHChi2Select.h.

Referenced by getProbMin(), and setProbMin().