Belle II Software  release-08-01-10
SelectorCut Class Reference

Simple cut based selector for curl tracks taken from Belle note 1079. More...

#include <SelectorCut.h>

Inheritance diagram for SelectorCut:
Collaboration diagram for SelectorCut:

Public Member Functions

 SelectorCut (bool belleFlag)
 Constructor.
 
 ~SelectorCut ()
 Destructor.
 
virtual float getResponse (Particle *iPart, Particle *jPart) override
 Selector response that this pair of particles come from the same mc/actual particle.
 
virtual std::vector< float > getVariables (Particle *iPart, Particle *jPart) override
 returns vector of variables used by this selector. More...
 
virtual float getOptimalResponseCut ()
 returns optimal cut to use with selector
 
virtual void initialize ()
 initialise selector if needed
 
virtual void finalize ()
 finalise selector if needed
 
virtual void collectTrainingInfo (Particle *, Particle *)
 collect information for training for mva or other selectors
 

Private Attributes

double m_magDiffPCut
 cut for momentum magnitude difference
 
double m_sameChargePhiCut
 cut for angle between momenta of the two particles when they have the same charge
 
double m_oppositeChargePhiCut
 cut for angle between momenta of the two particles when they have the opposite charge
 

Detailed Description

Simple cut based selector for curl tracks taken from Belle note 1079.

Definition at line 24 of file SelectorCut.h.

Member Function Documentation

◆ getVariables()

std::vector< float > getVariables ( Particle iPart,
Particle jPart 
)
overridevirtual

returns vector of variables used by this selector.

Not really useful here but included to be consistent with eventual MVA method.

Implements Selector.

Definition at line 35 of file SelectorCut.cc.

36 {
37  float chargeProduct = iPart -> getCharge() * jPart -> getCharge();
38  float magDiffP = (iPart->getMomentum() - jPart->getMomentum()).R();
39  float phi = acos(iPart->getMomentum().Unit().Dot(jPart->getMomentum().Unit()));
40  return {chargeProduct, magDiffP, phi};
41 }
double R
typedef autogenerated by FFTW
ROOT::Math::XYZVector getMomentum() const
Returns momentum vector.
Definition: Particle.h:526

The documentation for this class was generated from the following files: