![]() |
Belle II Software development
|
representation of the neutral particle constraint More...
#include <RecoNeutral.h>
Public Types | |
enum | TFParticleType { kInteractionPoint , kOrigin , kComposite , kRecoResonance , kInternalParticle , kRecoTrack , kResonance , kRecoNeutral , kMissingParticle } |
particle types More... | |
typedef std::vector< Constraint > | constraintlist |
alias | |
typedef std::vector< std::pair< const ParticleBase *, int > > | indexmap |
alias | |
Public Member Functions | |
RecoNeutral (Belle2::Particle *bc, const ParticleBase *mother) | |
constructor | |
virtual | ~RecoNeutral () |
destructor | |
virtual ErrCode | initParticleWithMother (FitParams &fitparams) override |
init particle with mother | |
virtual ErrCode | initMotherlessParticle (FitParams &fitparams) override |
init particle without mother | |
ErrCode | initCovariance (FitParams &fitparams) const override |
init covariance | |
ErrCode | initParams () |
update or init params | |
ErrCode | projectRecoConstraint (const FitParams &fitparams, Projection &p) const override |
project neutral particle constraint | |
virtual int | dimM () const override |
sets the size of the corresponding residual projection | |
virtual bool | hasEnergy () const override |
how should the energy be calculated ? | |
virtual int | dim () const override |
set the size of the particle in the statevector | |
virtual int | type () const override |
type | |
virtual void | addToConstraintList (constraintlist &alist, int depth) const override |
add to list | |
virtual std::string | parname (int index) const override |
name | |
virtual int | momIndex () const override |
get momentum index | |
virtual ErrCode | projectConstraint (Constraint::Type, const FitParams &, Projection &) const override |
abstract abstract projection | |
virtual void | updateIndex (int &offset) |
this sets the index for momentum, position, etc. | |
const ParticleBase * | locate (Belle2::Particle *particle) const |
get particle base from basf2 particle | |
Belle2::Particle * | particle () const |
get basf2 particle | |
int | index () const |
get index | |
const ParticleBase * | mother () const |
getMother() / hasMother() | |
virtual ErrCode | projectGeoConstraint (const FitParams &, Projection &) const |
project geometrical constraint | |
virtual ErrCode | projectMassConstraintParticle (const FitParams &, Projection &) const |
project mass constraint using the particles parameters | |
virtual ErrCode | projectMassConstraintDaughters (const FitParams &, Projection &) const |
project mass constraint using the parameters of the daughters | |
virtual ErrCode | projectMassConstraint (const FitParams &, Projection &) const |
project mass constraint abstract | |
virtual void | forceP4Sum (FitParams &) const |
force p4 sum conservation all along the tree | |
virtual int | posIndex () const |
get vertex index (in statevector!) | |
virtual int | tauIndex () const |
get tau index | |
virtual bool | hasPosition () const |
get false | |
int | eneIndex () const |
get energy index | |
virtual double | chiSquare (const FitParams &) const |
get chi2 | |
int | charge () const |
get charge | |
virtual ParticleBase * | addDaughter (Belle2::Particle *, const ConstraintConfiguration &config, bool forceFitAll=false) |
add daughter | |
virtual void | removeDaughter (const ParticleBase *pb) |
remove daughter | |
virtual void | retrieveIndexMap (indexmap &anindexmap) const |
get index map | |
void | setMother (const ParticleBase *m) |
set mother | |
void | collectVertexDaughters (std::vector< ParticleBase * > &particles, int posindex) |
get vertex daughters | |
virtual int | nFinalChargedCandidates () const |
number of charged candidates | |
Static Public Member Functions | |
static ParticleBase * | createParticle (Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll=false) |
create the according treeFitter particle obj for a basf2 particle type | |
static ParticleBase * | createOrigin (Belle2::Particle *daughter, const ConstraintConfiguration &config, bool forceFitAll) |
create a custom origin particle or a beamspot | |
Protected Types | |
typedef std::vector< ParticleBase * > | ParticleContainer |
just an alias | |
Protected Member Functions | |
ErrCode | initTau (FitParams &par) const |
initialises tau as a length | |
void | setIndex (int i) |
set Index (in statevector) | |
Static Protected Member Functions | |
static bool | isAResonance (Belle2::Particle *particle) |
controls if a particle is treated as a resonance(lifetime=0) or a particle that has a finite lifetime. | |
Protected Attributes | |
Belle2::Particle * | m_particle |
pointer to framework type | |
const ParticleBase * | m_mother |
motherparticle | |
std::vector< ParticleBase * > | m_daughters |
daughter container | |
bool | m_isStronglyDecayingResonance |
decay length less than 1 micron | |
const ConstraintConfiguration * | m_config |
has all the constraint config | |
Private Attributes | |
const int | m_dim |
dimension of residuals and 'width' of H | |
bool | m_init |
was initialized | |
Eigen::Matrix< double, 1, 4 > | m_clusterPars |
constrains measured params (x_c, y_c, z_c, E_c) | |
Eigen::Matrix< double, 4, 4 > | m_covariance |
covariance (x_c,y_c,z_c,E_c) of measured pars | |
int | m_i1 |
index with the highest momentum. | |
int | m_i2 |
random other index | |
int | m_i3 |
another random index | |
const float | m_momentumScalingFactor |
scale the momentum / energy by this correction factor | |
const double | m_mass |
invariant mass | |
const Belle2::Particle::EParticleSourceObject | m_particleSource |
(mdst) source of particle | |
int | m_index |
index | |
std::string | m_name |
name | |
representation of the neutral particle constraint
Definition at line 18 of file RecoNeutral.h.
|
inherited |
alias
Definition at line 48 of file ParticleBase.h.
|
inherited |
alias
Definition at line 51 of file ParticleBase.h.
|
protectedinherited |
just an alias
Definition at line 174 of file ParticleBase.h.
|
inherited |
particle types
Definition at line 27 of file ParticleBase.h.
RecoNeutral | ( | Belle2::Particle * | bc, |
const ParticleBase * | mother ) |
constructor
Definition at line 27 of file RecoNeutral.cc.
|
inlinevirtual |
|
virtualinherited |
add daughter
Definition at line 63 of file ParticleBase.cc.
|
inlineoverridevirtual |
add to list
Implements ParticleBase.
Definition at line 55 of file RecoNeutral.h.
|
inlineinherited |
get charge
Definition at line 140 of file ParticleBase.h.
|
virtualinherited |
get chi2
Definition at line 229 of file ParticleBase.cc.
|
inherited |
get vertex daughters
Definition at line 154 of file ParticleBase.cc.
|
staticinherited |
create a custom origin particle or a beamspot
Definition at line 91 of file ParticleBase.cc.
|
staticinherited |
create the according treeFitter particle obj for a basf2 particle type
Definition at line 100 of file ParticleBase.cc.
|
inlineoverridevirtual |
set the size of the particle in the statevector
Reimplemented from RecoParticle.
Definition at line 49 of file RecoNeutral.h.
|
inlineoverridevirtual |
sets the size of the corresponding residual projection
Implements RecoParticle.
Definition at line 43 of file RecoNeutral.h.
|
inlineinherited |
get energy index
Definition at line 134 of file ParticleBase.h.
|
inlinevirtualinherited |
force p4 sum conservation all along the tree
Reimplemented in InternalParticle.
Definition at line 112 of file ParticleBase.h.
|
inlineoverridevirtual |
how should the energy be calculated ?
from momentum or from E ?
Reimplemented from RecoParticle.
Definition at line 46 of file RecoNeutral.h.
|
inlinevirtualinherited |
get false
Reimplemented in Composite, InternalParticle, and Resonance.
Definition at line 131 of file ParticleBase.h.
|
inlineinherited |
init covariance
Reimplemented from ParticleBase.
Definition at line 66 of file RecoNeutral.cc.
init particle without mother
Reimplemented from RecoParticle.
Definition at line 61 of file RecoNeutral.cc.
ErrCode initParams | ( | ) |
update or init params
currently the energy in KLM is calculated as n2dHits in cluster times 0.214 GeV at time of writing - 8.3.18 - the KLMCluster returns 0 for the E covariance
Definition at line 83 of file RecoNeutral.cc.
init particle with mother
Implements ParticleBase.
Definition at line 39 of file RecoNeutral.cc.
initialises tau as a length
Definition at line 428 of file ParticleBase.cc.
|
staticprotectedinherited |
controls if a particle is treated as a resonance(lifetime=0) or a particle that has a finite lifetime.
A finite life time means it will register a geo constraint for this particle
Definition at line 132 of file ParticleBase.cc.
|
inherited |
get particle base from basf2 particle
Definition at line 209 of file ParticleBase.cc.
|
inlineoverridevirtualinherited |
get momentum index
Reimplemented from ParticleBase.
Definition at line 42 of file RecoParticle.h.
|
inlineinherited |
|
virtualinherited |
number of charged candidates
Reimplemented in RecoTrack.
Definition at line 238 of file ParticleBase.cc.
|
overridevirtualinherited |
name
Reimplemented from ParticleBase.
Definition at line 23 of file RecoParticle.cc.
|
inlineinherited |
|
inlinevirtualinherited |
get vertex index (in statevector!)
Reimplemented in Composite, InternalParticle, Origin, RecoResonance, and Resonance.
Definition at line 118 of file ParticleBase.h.
|
overridevirtualinherited |
abstract abstract projection
Reimplemented from ParticleBase.
Definition at line 28 of file RecoParticle.cc.
|
virtualinherited |
project geometrical constraint
the direction of the momentum is very well known from the kinematic constraints that is why we do not extract the distance as a vector here
Definition at line 247 of file ParticleBase.cc.
|
virtualinherited |
project mass constraint abstract
Definition at line 407 of file ParticleBase.cc.
|
virtualinherited |
project mass constraint using the parameters of the daughters
be aware that the signs here are important E-|p|-m extracts a negative mass and messes with the momentum !
Definition at line 310 of file ParticleBase.cc.
|
virtualinherited |
project mass constraint using the particles parameters
be aware that the signs here are important E-|p|-m extracts a negative mass and messes with the momentum !
Definition at line 375 of file ParticleBase.cc.
|
overridevirtual |
project neutral particle constraint
m : decay vertex mother p : momentum vector c : position cluster so: m + p = c thus (tau converts p to the correct units): 0 = c - m - tau * p we have 3 geometric equations and eliminate tau using the dimension with the highest momentum (because we have to divide by that momentum) only downside is we have to figure out which dimension this is the 4th equation is the energy which we keep as: 0 = E - |p|
Implements RecoParticle.
Definition at line 179 of file RecoNeutral.cc.
|
virtualinherited |
remove daughter
Definition at line 71 of file ParticleBase.cc.
|
virtualinherited |
get index map
Definition at line 221 of file ParticleBase.cc.
|
inlineprotectedinherited |
|
inlineinherited |
|
inlinevirtualinherited |
get tau index
Reimplemented in Composite, InternalParticle, Origin, RecoResonance, and Resonance.
Definition at line 121 of file ParticleBase.h.
|
inlineoverridevirtual |
type
Implements ParticleBase.
Definition at line 52 of file RecoNeutral.h.
|
virtualinherited |
this sets the index for momentum, position, etc.
in the statevector
Definition at line 82 of file ParticleBase.cc.
|
private |
constrains measured params (x_c, y_c, z_c, E_c)
Definition at line 69 of file RecoNeutral.h.
|
protectedinherited |
has all the constraint config
Definition at line 200 of file ParticleBase.h.
|
private |
covariance (x_c,y_c,z_c,E_c) of measured pars
Definition at line 72 of file RecoNeutral.h.
|
protectedinherited |
daughter container
Definition at line 194 of file ParticleBase.h.
|
private |
dimension of residuals and 'width' of H
Definition at line 63 of file RecoNeutral.h.
|
private |
index with the highest momentum.
We have to make sure this does not change during the fit.
Definition at line 75 of file RecoNeutral.h.
|
private |
random other index
Definition at line 77 of file RecoNeutral.h.
|
private |
another random index
Definition at line 79 of file RecoNeutral.h.
|
privateinherited |
index
Definition at line 204 of file ParticleBase.h.
|
private |
was initialized
Definition at line 66 of file RecoNeutral.h.
|
protectedinherited |
decay length less than 1 micron
Definition at line 197 of file ParticleBase.h.
|
private |
invariant mass
Definition at line 85 of file RecoNeutral.h.
|
private |
scale the momentum / energy by this correction factor
Definition at line 82 of file RecoNeutral.h.
|
protectedinherited |
motherparticle
Definition at line 191 of file ParticleBase.h.
|
privateinherited |
name
Definition at line 207 of file ParticleBase.h.
|
protectedinherited |
pointer to framework type
Definition at line 188 of file ParticleBase.h.
|
private |
(mdst) source of particle
Definition at line 88 of file RecoNeutral.h.