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 (const BPHChi2Select &x)=delete
 
 BPHChi2Select (double prob)
 
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() [1/2]

BPHChi2Select::BPHChi2Select ( double  prob)
inline

Constructor

Definition at line 35 of file BPHChi2Select.h.

35 : probMin(prob) {}

◆ BPHChi2Select() [2/2]

BPHChi2Select::BPHChi2Select ( const BPHChi2Select x)
delete

◆ ~BPHChi2Select()

BPHChi2Select::~BPHChi2Select ( )
inlineoverride

Destructor

Definition at line 43 of file BPHChi2Select.h.

43 {}

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.

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  }

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

◆ 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.

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

References AlCaHLTBitMon_ParallelJobs::p, and probMin.

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

Member Data Documentation

◆ probMin

double BPHChi2Select::probMin
private

Definition at line 69 of file BPHChi2Select.h.

Referenced by getProbMin(), and setProbMin().

findQualityFiles.v
v
Definition: findQualityFiles.py:179
BPHChi2Select::probMin
double probMin
Definition: BPHChi2Select.h:69
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
cand
Definition: decayParser.h:32
TtFullHadEvtBuilder_cfi.prob
prob
Definition: TtFullHadEvtBuilder_cfi.py:33
reco::Vertex
Definition: Vertex.h:35