Belle II Software  release-05-01-25
FeedthroughParticle Class Reference

mediates 1->1 transition, that actually is the same particle More...

#include <FeedthroughParticle.h>

Inheritance diagram for FeedthroughParticle:
Collaboration diagram for FeedthroughParticle:

Public Types

enum  TFParticleType {
  kInteractionPoint,
  kOrigin,
  kRecoComposite,
  kRecoResonance,
  kInternalParticle,
  kRecoTrack,
  kResonance,
  kRecoPhoton,
  kRecoKlong,
  kMissingParticle,
  kFeedthroughParticle,
  kInternalTrack
}
 particle types

 
typedef std::vector< Constraintconstraintlist
 alias
 
typedef std::vector< std::pair< const ParticleBase *, int > > indexmap
 alias
 

Public Member Functions

 FeedthroughParticle (Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll)
 Constructor.
 
 ~FeedthroughParticle ()
 Destructor.
 
virtual ErrCode initMotherlessParticle (FitParams &) override
 init particle that does not need a mother vertex

 
virtual ErrCode initParticleWithMother (FitParams &) override
 init particle that does need a mother vertex

 
virtual ErrCode initCovariance (FitParams &) const override
 init covariance matrix, do nothing, since the particle is just a feedthrough
 
virtual int dim () const override
 get dimension of constraint
 
virtual void addToConstraintList (constraintlist &alist, int depth) const override
 add to constraint list

 
int type () const override
 get particle type
 
int posIndex () const override
 take posIndex from daughter
 
int momIndex () const override
 take momIndex from daughter
 
virtual void updateIndex (int &offset)
 this sets the index for momentum, position, etc. More...
 
virtual std::string parname (int index) const
 get name of parameter i
 
const ParticleBaselocate (Belle2::Particle *particle) const
 get particle base from basf2 particle
 
Belle2::Particleparticle () const
 get basf2 particle

 
int index () const
 get index

 
const ParticleBasemother () const
 getMother() / hasMother()
 
const std::string & name () const
 get name of the particle
 
virtual ErrCode projectGeoConstraint (const FitParams &, Projection &) const
 project geometrical constraint More...
 
virtual ErrCode projectMassConstraintParticle (const FitParams &, Projection &) const
 project mass constraint using the particles parameters More...
 
virtual ErrCode projectMassConstraintDaughters (const FitParams &, Projection &) const
 project mass constraint using the parameters of the daughters More...
 
virtual ErrCode projectMassConstraint (const FitParams &, Projection &) const
 project mass constraint abstract
 
virtual ErrCode projectConstraint (Constraint::Type, const FitParams &, Projection &) const
 project constraint. More...
 
virtual void forceP4Sum (FitParams &) const
 force p4 sum conservation all allong the tree
 
virtual int tauIndex () const
 get tau index
 
virtual bool hasEnergy () const
 get momentum dimension
 
virtual bool hasPosition () const
 get false

 
int eneIndex () const
 get energy index

 
virtual double chiSquare (const FitParams &) const
 get chi2
 
double pdgMass () const
 get pdg mass

 
double pdgWidth () const
 get pdg width
 
double pdgLifeTime () const
 get pdg lifetime
 
double pdgTime () const
 get Tau
 
int charge () const
 get charge
 
virtual ParticleBaseaddDaughter (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
 
void setParticle (Belle2::Particle *particle)
 set the relation to basf2 particle type
 

Static Public Member Functions

static ParticleBasecreateParticle (Belle2::Particle *particle, const ParticleBase *mother, const ConstraintConfiguration &config, bool forceFitAll=false)
 create the according treeFitter particle obj for a basf2 particle type

 
static ParticleBasecreateOrigin (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 double pdgLifeTime (Belle2::Particle *particle)
 get pdg lifetime
 
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. More...
 
static double bFieldOverC ()
 Bz/c

 

Protected Attributes

Belle2::Particlem_particle
 pointer to framework type

 
const ParticleBasem_mother
 motherparticle
 
std::vector< ParticleBase * > m_daughters
 daughter container

 
bool m_isStronglyDecayingResonance
 decay length less than 1 micron

 
const ConstraintConfigurationm_config
 has all the constraint config
 

Private Attributes

int m_index
 index
 
const double m_pdgMass
 pdg mass

 
double m_pdgWidth
 particle width
 
const double m_pdgLifeTime
 lifetime in cm

 
int m_charge
 charge

 
std::string m_name
 name

 

Detailed Description

mediates 1->1 transition, that actually is the same particle

Definition at line 24 of file FeedthroughParticle.h.

Member Function Documentation

◆ isAResonance()

bool isAResonance ( Belle2::Particle particle)
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 235 of file ParticleBase.cc.

238  : //bremsstrahlung
239  case 11:
240  rc = true ;
241  break ;
242  default: //everything with boosted flight length less than 1 micrometer
243  rc = (pdgcode && pdgLifeTime(particle) < 1e-5);
244  }
245  }
246  return rc ;
247  }
248 
249  void ParticleBase::collectVertexDaughters(std::vector<ParticleBase*>& particles, int posindex)
250  {
251  if (mother() && mother()->posIndex() == posindex) {
252  particles.push_back(this);
253  }
254 
255  for (auto* daughter : m_daughters) {

◆ projectConstraint()

ErrCode projectConstraint ( Constraint::Type  type,
const FitParams fitparams,
Projection p 
) const
virtualinherited

project constraint.


Reimplemented in Origin, RecoParticle, RecoComposite, RecoResonance, InternalParticle, and InternalTrack.

Definition at line 537 of file ParticleBase.cc.

◆ projectGeoConstraint()

ErrCode projectGeoConstraint ( const FitParams fitparams,
Projection p 
) const
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 359 of file ParticleBase.cc.

◆ projectMassConstraintDaughters()

ErrCode projectMassConstraintDaughters ( const FitParams fitparams,
Projection p 
) const
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 435 of file ParticleBase.cc.

◆ projectMassConstraintParticle()

ErrCode projectMassConstraintParticle ( const FitParams fitparams,
Projection p 
) const
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 496 of file ParticleBase.cc.

◆ updateIndex()

void updateIndex ( int &  offset)
virtualinherited

this sets the index for momentum, position, etc.

in the statevector

Definition at line 138 of file ParticleBase.cc.


The documentation for this class was generated from the following files:
prepareAsicCrosstalkSimDB.e
e
aux.
Definition: prepareAsicCrosstalkSimDB.py:53
TreeFitter::ParticleBase::posIndex
virtual int posIndex() const
get vertex index (in statevector!)
Definition: ParticleBase.h:142
TreeFitter::ParticleBase::mother
const ParticleBase * mother() const
getMother() / hasMother()
Definition: ParticleBase.cc:295
TreeFitter::ParticleBase::collectVertexDaughters
void collectVertexDaughters(std::vector< ParticleBase * > &particles, int posindex)
get vertex daughters
Definition: ParticleBase.cc:257
TreeFitter::ParticleBase::pdgLifeTime
double pdgLifeTime() const
get pdg lifetime
Definition: ParticleBase.h:170
TreeFitter::ParticleBase::particle
Belle2::Particle * particle() const
get basf2 particle
Definition: ParticleBase.h:109
TreeFitter::ParticleBase::m_daughters
std::vector< ParticleBase * > m_daughters
daughter container
Definition: ParticleBase.h:231