Belle II Software light-2406-ragdoll
|
A class for composite particles, where the daughters must be ignored by the fitter. More...
#include <Composite.h>
Public Types | |
enum | TFParticleType { kInteractionPoint , kOrigin , kComposite , kRecoResonance , kInternalParticle , kRecoTrack , kResonance , kRecoPhoton , kRecoKlong , kMissingParticle } |
particle types More... | |
typedef std::vector< Constraint > | constraintlist |
alias | |
typedef std::vector< std::pair< const ParticleBase *, int > > | indexmap |
alias | |
Public Member Functions | |
Composite (Belle2::Particle *bc, const ParticleBase *mother, const ConstraintConfiguration &config, bool massconstraint=false) | |
constructor | |
virtual | ~Composite () |
destructor | |
virtual ErrCode | initParticleWithMother (FitParams &fitparams) override |
init particle in case it has a mother | |
virtual ErrCode | initMotherlessParticle (FitParams &fitparams) override |
init particle in case it has no mother | |
void | updateParams () |
update changed params | |
ErrCode | projectComposite (const FitParams &fitparams, Projection &p) const |
project this particle constraint | |
int | dimMeas () const |
dimension of the measurement vector | |
virtual int | dim () const override |
get dimension of constraint | |
int | dimM () const |
get dimension of measurement | |
virtual ErrCode | projectConstraint (Constraint::Type, const FitParams &, Projection &) const override |
project this constraint | |
virtual int | type () const override |
get ype | |
virtual int | posIndex () const override |
get position index in statevectof x,y,z,tau,px,py,pz | |
virtual int | tauIndex () const override |
get tau (lifetime) index in statevector | |
virtual int | momIndex () const override |
get momentum index in statevector | |
virtual bool | hasEnergy () const override |
return of this constraint/particle has an energy component | |
virtual bool | hasPosition () const override |
return true FIXME | |
virtual void | addToConstraintList (constraintlist &alist, int depth) const override |
add this to list | |
virtual ErrCode | initCovariance (FitParams &) const |
init covariance matrix | |
virtual void | updateIndex (int &offset) |
this sets the index for momentum, position, etc. | |
virtual std::string | parname (int index) const |
get name of parameter i | |
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 | |
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 | |
Eigen::Matrix< double, 7, 1 > | m_params |
column vector to store the measurement | |
Eigen::Matrix< double, -1, -1, 0, 7, 7 > | m_covariance |
only lower triangle filled! | |
bool | m_hasEnergy |
flag | |
bool | m_massconstraint |
flag | |
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 | |
int | m_index |
index | |
std::string | m_name |
name | |
A class for composite particles, where the daughters must be ignored by the fitter.
Currently used for bremsstrahlung correction and dummy invisibles
Definition at line 17 of file Composite.h.
|
inherited |
alias
Definition at line 52 of file ParticleBase.h.
|
inherited |
alias
Definition at line 55 of file ParticleBase.h.
|
protectedinherited |
just an alias
Definition at line 178 of file ParticleBase.h.
|
inherited |
particle types
Definition at line 30 of file ParticleBase.h.
Composite | ( | Belle2::Particle * | bc, |
const ParticleBase * | mother, | ||
const ConstraintConfiguration & | config, | ||
bool | massconstraint = false |
||
) |
constructor
Definition at line 19 of file Composite.cc.
|
inlinevirtual |
|
virtualinherited |
add daughter
Definition at line 65 of file ParticleBase.cc.
|
inlineoverridevirtual |
add this to list
Implements ParticleBase.
Reimplemented in RecoResonance.
Definition at line 70 of file Composite.h.
|
inlineinherited |
get charge
Definition at line 144 of file ParticleBase.h.
|
virtualinherited |
get chi2
Definition at line 231 of file ParticleBase.cc.
|
inherited |
get vertex daughters
Definition at line 156 of file ParticleBase.cc.
|
staticinherited |
create a custom origin particle or a beamspot
Definition at line 93 of file ParticleBase.cc.
|
staticinherited |
create the according treeFitter particle obj for a basf2 particle type
Definition at line 102 of file ParticleBase.cc.
|
inlineoverridevirtual |
get dimension of constraint
Implements ParticleBase.
Reimplemented in RecoResonance.
Definition at line 43 of file Composite.h.
|
inline |
|
inline |
|
inlineinherited |
get energy index
Definition at line 138 of file ParticleBase.h.
|
inlinevirtualinherited |
force p4 sum conservation all along the tree
Reimplemented in InternalParticle.
Definition at line 116 of file ParticleBase.h.
|
inlineoverridevirtual |
return of this constraint/particle has an energy component
Reimplemented from ParticleBase.
Definition at line 64 of file Composite.h.
|
inlineoverridevirtual |
return true FIXME
Reimplemented from ParticleBase.
Definition at line 67 of file Composite.h.
|
inlineinherited |
init covariance matrix
Reimplemented in InternalParticle, Origin, RecoKlong, RecoPhoton, and RecoTrack.
Definition at line 167 of file ParticleBase.cc.
init particle in case it has no mother
Implements ParticleBase.
Reimplemented in RecoResonance.
Definition at line 31 of file Composite.cc.
init particle in case it has a mother
Implements ParticleBase.
Reimplemented in RecoResonance.
Definition at line 26 of file Composite.cc.
initialises tau as a length
Definition at line 426 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 134 of file ParticleBase.cc.
|
inherited |
get particle base from basf2 particle
Definition at line 211 of file ParticleBase.cc.
|
inlineoverridevirtual |
get momentum index in statevector
Reimplemented from ParticleBase.
Reimplemented in RecoResonance.
Definition at line 61 of file Composite.h.
|
inlineinherited |
getMother() / hasMother()
Definition at line 98 of file ParticleBase.h.
|
virtualinherited |
number of charged candidates
Reimplemented in RecoTrack.
Definition at line 240 of file ParticleBase.cc.
|
virtualinherited |
get name of parameter i
Reimplemented in InternalParticle, RecoParticle, RecoResonance, and Resonance.
Definition at line 194 of file ParticleBase.cc.
|
inlineinherited |
|
inlineoverridevirtual |
get position index in statevectof x,y,z,tau,px,py,pz
Reimplemented from ParticleBase.
Reimplemented in RecoResonance.
Definition at line 55 of file Composite.h.
ErrCode projectComposite | ( | const FitParams & | fitparams, |
Projection & | p | ||
) | const |
project this particle constraint
Definition at line 75 of file Composite.cc.
|
overridevirtual |
project this constraint
Reimplemented from ParticleBase.
Reimplemented in RecoResonance.
Definition at line 97 of file Composite.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 249 of file ParticleBase.cc.
|
virtualinherited |
project mass constraint abstract
Definition at line 405 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 314 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.
|
virtualinherited |
remove daughter
Definition at line 73 of file ParticleBase.cc.
|
virtualinherited |
get index map
Definition at line 223 of file ParticleBase.cc.
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineoverridevirtual |
get tau (lifetime) index in statevector
Reimplemented from ParticleBase.
Reimplemented in RecoResonance.
Definition at line 58 of file Composite.h.
|
inlineoverridevirtual |
get ype
Implements ParticleBase.
Reimplemented in RecoResonance.
Definition at line 52 of file Composite.h.
|
virtualinherited |
this sets the index for momentum, position, etc.
in the statevector
Definition at line 84 of file ParticleBase.cc.
void updateParams | ( | ) |
update changed params
Definition at line 43 of file Composite.cc.
|
protectedinherited |
has all the constraint config
Definition at line 204 of file ParticleBase.h.
|
protected |
only lower triangle filled!
Definition at line 85 of file Composite.h.
|
protectedinherited |
daughter container
Definition at line 198 of file ParticleBase.h.
|
protected |
flag
Definition at line 88 of file Composite.h.
|
privateinherited |
index
Definition at line 208 of file ParticleBase.h.
|
protectedinherited |
decay length less than 1 micron
Definition at line 201 of file ParticleBase.h.
|
protected |
flag
Definition at line 91 of file Composite.h.
|
protectedinherited |
motherparticle
Definition at line 195 of file ParticleBase.h.
|
privateinherited |
name
Definition at line 211 of file ParticleBase.h.
|
protected |
column vector to store the measurement
Definition at line 82 of file Composite.h.
|
protectedinherited |
pointer to framework type
Definition at line 192 of file ParticleBase.h.