Belle II Software development
|
representation of the beamspot as a particle More...
#include <Origin.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 | |
Origin (Belle2::Particle *particle, const ConstraintConfiguration &config, const bool forceFitAll) | |
Constructor. | |
Origin (Belle2::Particle *daughter) | |
Constructor. | |
virtual | ~Origin () |
destructor | |
virtual ErrCode | initParticleWithMother (FitParams &fitparams) override |
init particle, used if it has a mother | |
virtual ErrCode | initMotherlessParticle (FitParams &fitparams) override |
init particle, used if it has no mother | |
ErrCode | initOrigin () |
init the origin "particle" | |
virtual int | dim () const override |
space reserved in fit pars | |
virtual ErrCode | initCovariance (FitParams &fitpar) const override |
init covariance matrix of the constraint | |
virtual int | type () const override |
get particle type | |
ErrCode | projectOriginConstraint (const FitParams &fitpar, Projection &) const |
the actual constraint projection | |
virtual ErrCode | projectConstraint (Constraint::Type, const FitParams &, Projection &) const override |
the abstract projection | |
virtual void | addToConstraintList (constraintlist &list, int depth) const override |
adds the origin as a particle to the constraint list | |
virtual int | posIndex () const override |
vertex position index in the statevector | |
virtual int | momIndex () const override |
momentum index in the statevector. | |
virtual int | tauIndex () const override |
the lifetime index. | |
virtual bool | hasEnergy () const override |
has energy | |
virtual std::string | name () const |
get name | |
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 | |
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_constraintDimension |
dimension of the constraint | |
const std::vector< double > | m_customOriginVertex |
vertex coordinates | |
const std::vector< double > | m_customOriginCovariance |
vertex covariance | |
Eigen::Matrix< double, Eigen::Dynamic, 1, Eigen::ColMajor, 3, 1 > | m_posVec |
vertex position of the origin | |
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor, 3, 3 > | m_covariance |
covariance of the origin dont know size but I know the max size | |
const bool | m_isBeamSpot |
is this the beam constraint? | |
Belle2::DBObjPtr< Belle2::BeamSpot > | m_beamSpot |
the parameters are initialize elsewhere this is just a pointer to that | |
const int | m_inflationFactorCovZ |
inflated the covariance matrix in z by this number | |
int | m_index |
index | |
std::string | m_name |
name | |
|
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.
Origin | ( | Belle2::Particle * | particle, |
const ConstraintConfiguration & | config, | ||
const bool | forceFitAll | ||
) |
Constructor.
Definition at line 18 of file Origin.cc.
|
virtualinherited |
add daughter
Definition at line 65 of file ParticleBase.cc.
|
overridevirtual |
adds the origin as a particle to the constraint list
Implements ParticleBase.
Definition at line 155 of file Origin.cc.
|
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 |
|
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 |
has energy
Reimplemented from ParticleBase.
Definition at line 72 of file Origin.h.
|
inlinevirtualinherited |
get false
Reimplemented in Composite, InternalParticle, and Resonance.
Definition at line 135 of file ParticleBase.h.
|
inlineinherited |
init covariance matrix of the constraint
Reimplemented from ParticleBase.
Definition at line 110 of file Origin.cc.
init particle, used if it has no mother
Implements ParticleBase.
Definition at line 40 of file Origin.cc.
ErrCode initOrigin | ( | ) |
init the origin "particle"
Definition at line 54 of file Origin.cc.
init particle, used if it has a mother
Implements ParticleBase.
Definition at line 35 of file Origin.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 |
momentum index in the statevector.
no value for beamspot as a particle
Reimplemented from ParticleBase.
Definition at line 66 of file Origin.h.
|
inlineinherited |
getMother() / hasMother()
Definition at line 98 of file ParticleBase.h.
|
inlinevirtual |
|
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 |
vertex position index in the statevector
Reimplemented from ParticleBase.
Definition at line 63 of file Origin.h.
|
overridevirtual |
the abstract projection
Reimplemented from ParticleBase.
Definition at line 142 of file Origin.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.
ErrCode projectOriginConstraint | ( | const FitParams & | fitpar, |
Projection & | p | ||
) | const |
the actual constraint projection
Definition at line 123 of file Origin.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 |
the lifetime index.
the origin does not have a lifetime
Reimplemented from ParticleBase.
Definition at line 69 of file Origin.h.
|
inlineoverridevirtual |
get particle type
Implements ParticleBase.
Definition at line 51 of file Origin.h.
|
virtualinherited |
this sets the index for momentum, position, etc.
in the statevector
Definition at line 84 of file ParticleBase.cc.
|
private |
|
protectedinherited |
has all the constraint config
Definition at line 204 of file ParticleBase.h.
|
private |
|
private |
|
private |
|
private |
|
protectedinherited |
daughter container
Definition at line 198 of file ParticleBase.h.
|
privateinherited |
index
Definition at line 208 of file ParticleBase.h.
|
private |
|
private |
|
protectedinherited |
decay length less than 1 micron
Definition at line 201 of file ParticleBase.h.
|
protectedinherited |
motherparticle
Definition at line 195 of file ParticleBase.h.
|
privateinherited |
name
Definition at line 211 of file ParticleBase.h.
|
protectedinherited |
pointer to framework type
Definition at line 192 of file ParticleBase.h.
|
private |