CMS 3D CMS Logo

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

#include <BPHKinFitChi2Select.h>

Inheritance diagram for BPHKinFitChi2Select:
BPHFitSelect

Public Member Functions

bool accept (const BPHKinematicFit &cand) const override
 select vertex More...
 
 BPHKinFitChi2Select (const BPHKinFitChi2Select &x)=delete
 
 BPHKinFitChi2Select (double prob)
 
double getProbMin () const
 get current prob min More...
 
BPHKinFitChi2Selectoperator= (const BPHKinFitChi2Select &x)=delete
 
void setProbMin (double p)
 set prob min More...
 
 ~BPHKinFitChi2Select () override
 
- Public Member Functions inherited from BPHFitSelect
 BPHFitSelect ()
 
 BPHFitSelect (const BPHFitSelect &x)=delete
 
BPHFitSelectoperator= (const BPHFitSelect &x)=delete
 
virtual ~BPHFitSelect ()
 

Private Attributes

double probMin
 

Additional Inherited Members

- Public Types inherited from BPHFitSelect
using AcceptArg = BPHKinematicFit
 

Detailed Description

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

Author
Paolo Ronchese INFN Padova

Definition at line 31 of file BPHKinFitChi2Select.h.

Constructor & Destructor Documentation

◆ BPHKinFitChi2Select() [1/2]

BPHKinFitChi2Select::BPHKinFitChi2Select ( double  prob)
inline

Constructor

Definition at line 35 of file BPHKinFitChi2Select.h.

35 : probMin(prob) {}

◆ BPHKinFitChi2Select() [2/2]

BPHKinFitChi2Select::BPHKinFitChi2Select ( const BPHKinFitChi2Select x)
delete

◆ ~BPHKinFitChi2Select()

BPHKinFitChi2Select::~BPHKinFitChi2Select ( )
inlineoverride

Destructor

Definition at line 43 of file BPHKinFitChi2Select.h.

43 {}

Member Function Documentation

◆ accept()

bool BPHKinFitChi2Select::accept ( const BPHKinematicFit cand) const
inlineoverridevirtual

select vertex

Operations

Implements BPHFitSelect.

Definition at line 48 of file BPHKinFitChi2Select.h.

48  {
49  if (probMin < 0.0)
50  return true;
51  const RefCountedKinematicVertex tdv = cand.topDecayVertex();
52  if (tdv.get() == nullptr)
53  return false;
54  if (!tdv->vertexIsValid())
55  return false;
56  reco::Vertex v(*tdv);
57  if (v.isFake())
58  return false;
59  if (!v.isValid())
60  return false;
61  return (TMath::Prob(v.chi2(), lround(v.ndof())) >= probMin);
62  }

Referenced by BPHDecayToResFlyingBuilder::build(), and esMonitoring.FDJsonServer::handle_accept().

◆ getProbMin()

double BPHKinFitChi2Select::getProbMin ( ) const
inline

get current prob min

Definition at line 71 of file BPHKinFitChi2Select.h.

71 { return probMin; }

References probMin.

Referenced by BPHDecayToResFlyingBuilder::build(), and BPHDecayToResFlyingBuilder::getKinFitProbMin().

◆ operator=()

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

◆ setProbMin()

void BPHKinFitChi2Select::setProbMin ( double  p)
inline

set prob min

Definition at line 65 of file BPHKinFitChi2Select.h.

65  {
66  probMin = p;
67  return;
68  }

References AlCaHLTBitMon_ParallelJobs::p, and probMin.

Referenced by BPHDecayToResFlyingBuilder::setKinFitProbMin().

Member Data Documentation

◆ probMin

double BPHKinFitChi2Select::probMin
private

Definition at line 74 of file BPHKinFitChi2Select.h.

Referenced by getProbMin(), and setProbMin().

AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ReferenceCountingPointer< KinematicVertex >
findQualityFiles.v
v
Definition: findQualityFiles.py:179
BPHKinFitChi2Select::probMin
double probMin
Definition: BPHKinFitChi2Select.h:74
cand
Definition: decayParser.h:34
TtFullHadEvtBuilder_cfi.prob
prob
Definition: TtFullHadEvtBuilder_cfi.py:33
reco::Vertex
Definition: Vertex.h:35