19 #define HomogeneousField 21 #ifndef KFPARTICLESIMD_H 22 #define KFPARTICLESIMD_H 26 #ifdef HomogeneousField 31 #ifdef NonhomogeneousField 32 class CbmKFTrackInterface;
33 class CbmKFVertexInterface;
47 #ifdef HomogeneousField 50 #ifdef NonhomogeneousField 80 #ifdef HomogeneousField 86 void Create(
KFPTrack *Track[],
int NTracks, Int_t *qHypo =
nullptr,
const Int_t *pdg =
nullptr);
93 #ifdef NonhomogeneousField 94 KFParticleSIMD(CbmKFTrackInterface *Track[],
int NTracks, Int_t *qHypo = 0,
const Int_t *pdg = 0);
95 KFParticleSIMD(CbmKFTrackInterface &Track, Int_t *qHypo = 0,
const Int_t *pdg = 0);
97 void Create(CbmKFTrackInterface *Track[],
int NTracks, Int_t *qHypo = 0,
const Int_t *pdg = 0);
268 #ifdef HomogeneousField 299 #ifdef HomogeneousField 309 #ifdef HomogeneousField 319 #ifdef HomogeneousField 325 #ifdef HomogeneousField 335 #ifdef HomogeneousField 369 #ifdef HomogeneousField 381 #ifdef HomogeneousField 384 #ifdef NonhomogeneousField 395 #ifdef HomogeneousField 505 return ((!mask) & par);
512 return ((!mask) & par);
519 return ((!mask) & par);
526 return ((!mask) & par);
533 return ((!mask) & par);
540 return ((!mask) & par);
547 return ((!mask) & par);
554 return ((!mask) & par);
561 return ((!mask) & par);
568 return ((!mask) & par);
616 ret = (mask & ret) + ((!mask) & err);
625 ret = (mask & ret) + ((!mask) & err);
634 ret = (mask & ret) + ((!mask) & err);
643 ret = (mask & ret) + ((!mask) & err);
652 ret = (mask & ret) + ((!mask) & err);
661 ret = (mask & ret) + ((!mask) & err);
670 ret = (mask & ret) + ((!mask) & err);
679 ret = (mask & ret) + ((!mask) & err);
688 ret = (mask & ret) + ((!mask) & err);
697 ret = (mask & ret) + ((!mask) & err);
860 #ifdef NonhomogeneousField 862 L1FieldValue field[3];
863 fvec zField[3] = {0,
fP[2] / 2,
fP[2]};
865 for (
int iPoint = 0; iPoint < 3; iPoint++) {
866 for (
int iD = 0; iD < nDaughters; ++iD) {
867 L1FieldValue b =
const_cast<KFParticleSIMD *
>(vDaughters[iD])->fField.Get(zField[iPoint]);
868 field[iPoint].x += b.x;
869 field[iPoint].y += b.y;
870 field[iPoint].z += b.z;
872 field[iPoint].x /= nDaughters;
873 field[iPoint].y /= nDaughters;
874 field[iPoint].z /= nDaughters;
877 fField.Set(field[2], zField[2], field[1], zField[1], field[0], zField[0]);
895 #ifdef HomogeneousField 915 #ifdef HomogeneousField 918 #ifdef NonhomogeneousField 947 #ifdef HomogeneousField 978 #ifdef HomogeneousField 985 #ifdef HomogeneousField 993 #ifdef NonhomogeneousField 996 L1FieldValue mB =
const_cast<L1FieldRegion &
>(fField).Get(xyz[2]);
1010 #ifdef HomogeneousField 1013 #ifdef NonhomogeneousField 1021 #ifdef HomogeneousField 1024 #ifdef NonhomogeneousField 1031 #ifdef HomogeneousField
static void GetExternalTrackParam(const KFParticleBaseSIMD &p, Double_t X[fvecLen], Double_t Alpha[fvecLen], Double_t P[5][fvecLen])
fvec GetEta(fvec &Eta, fvec &SigmaEta) const
void TransportToDecayVertex()
fvec GetDeviationFromVertexXY(const fvec v[], const fvec Cv[]=0) const
fvec GetMass(fvec &M, fvec &SigmaM) const
fvec GetDistanceFromParticleXY(const KFParticleSIMD &p) const
static void SetField(fvec Bz)
fvec GetCovariance(int i) const
fvec GetDistanceFromParticle(const KFParticleBaseSIMD &p) const
friend F32vec4 sqrt(const F32vec4 &a)
fvec GetPhi(fvec &Phi, fvec &SigmaPhi) const
void TransportCBM(fvec dS, fvec P[], fvec C[]) const
fvec GetErrDecayLength() const
void TransportToDS(fvec dS)
void TransportToProductionVertex()
void GetDStoParticleBz(fvec Bz, const KFParticleBaseSIMD &p, fvec &dS, fvec &dS1) const
void ConstructGammaBz(const KFParticleBaseSIMD &daughter1, const KFParticleBaseSIMD &daughter2, fvec Bz)
void SetVtxGuess(fvec x, fvec y, fvec z)
void TransportToProductionVertex()
void operator+=(const KFParticleBaseSIMD &Daughter)
void TransportBz(fvec Bz, fvec dS, fvec P[], fvec C[]) const
fvec GetMomentum(fvec &P, fvec &SigmaP) const
fvec GetDeviationFromParticle(const KFParticleSIMD &p) const
void SubtractFromVertex(KFParticleBaseSIMD &Vtx) const
fvec GetDecayLengthXY() const
void SubtractFromParticle(KFParticleSIMD &v) const
void Construct(const KFParticleBaseSIMD *vDaughters[], Int_t nDaughters, const KFParticleBaseSIMD *ProdVtx=nullptr, Float_t Mass=-1, Bool_t IsConstrained=0, Bool_t isAtVtxGuess=0)
void TransportToParticle(const KFParticleSIMD &p)
fvec GetPseudoProperDecayTime(const KFParticleSIMD &primVertex, const fvec &mass, fvec *timeErr2=0) const
void GetFieldValue(const fvec xyz[], fvec B[]) const
fvec GetAngle(const KFParticleSIMD &p) const
fvec GetDeviationFromVertex(const fvec v[], const fvec Cv[]=0) const
fvec GetErrLifeTime() const
fvec GetDistanceFromVertexXY(const fvec vtx[], fvec &val, fvec &err) const
fvec GetCovariance(Int_t i) const
fvec GetDStoPoint(const fvec xyz[]) const
const fvec & Chi2() const
const fvec & Chi2() const
Bool_t GetAtProductionVertex() const
fvec * CovarianceMatrix()
void Construct(const KFParticleSIMD *vDaughters[], int nDaughters, const KFParticleSIMD *ProdVtx=nullptr, Float_t Mass=-1, Bool_t IsConstrained=0, Bool_t isAtVtxGuess=0)
fvec & Covariance(Int_t i)
void SubtractFromVertex(KFParticleSIMD &v) const
static fvec GetFieldAlice()
fvec GetDecayLength() const
fvec GetParameter(int i) const
fvec GetErrDecayLengthXY() const
void GetDStoParticle(const KFParticleSIMD &p, fvec &DS, fvec &DSp) const
fvec GetDeviationFromParticle(const KFParticleBaseSIMD &p) const
void TransportToPoint(const fvec xyz[])
fvec GetDistanceFromParticle(const KFParticleSIMD &p) const
friend F32vec4 fabs(const F32vec4 &a)
void TransportToDS(fvec dS)
fvec GetErrMomentum() const
void ConstructGamma(const KFParticleSIMD &daughter1, const KFParticleSIMD &daughter2)
void GetDStoParticleXY(const KFParticleBaseSIMD &p, fvec &DS, fvec &DSp) const
fvec GetDeviationFromParticleXY(const KFParticleSIMD &p) const
void SubtractFromParticle(KFParticleBaseSIMD &Vtx) const
void SetMassConstraint(fvec Mass, fvec SigmaMass=0)
void AddDaughter(const KFParticleBaseSIMD &Daughter, Bool_t isAtVtxGuess=0)
fvec GetDStoPointCBM(const fvec xyz[]) const
void TransportToVertex(const KFPVertex &v)
Bool_t fAtProductionVertex
fvec GetDistanceFromVertex(const fvec vtx[]) const
void AddDaughter(const KFParticleSIMD &Daughter)
fvec GetAngleXY(const KFParticleSIMD &p) const
void operator+=(const KFParticleSIMD &Daughter)
fvec GetLifeTime(fvec &T, fvec &SigmaT) const
void TransportToDecayVertex()
fvec GetPt(fvec &Pt, fvec &SigmaPt) const
void GetKFParticle(KFParticle &Part, int iPart=0)
fvec GetDistanceFromVertex(const fvec vtx[]) const
fvec GetR(fvec &R, fvec &SigmaR) const
void SetProductionVertex(const KFParticleBaseSIMD &Vtx)
fvec GetDStoPointBz(fvec Bz, const fvec xyz[]) const
void SetVtxGuess(fvec x, fvec y, fvec z)
void Create(const fvec Param[], const fvec Cov[], fvec Charge, fvec mass)
void GetDStoParticleCBM(const KFParticleBaseSIMD &p, fvec &dS, fvec &dS1) const
fvec & Parameter(Int_t i)
fvec GetParameter(Int_t i) const
fvec GetDecayLengthXY(fvec &L, fvec &SigmaL) const
fvec GetAngleRZ(const KFParticleSIMD &p) const
void SetMassConstraint(fvec Mass, fvec SigmaMass=0)
void SetOneEntry(const int i0, const L1FieldRegion &f1, const int i1)
fvec GetDeviationFromVertex(const fvec v[], const fvec Cv[]=0) const
fvec GetDecayLength(fvec &L, fvec &SigmaL) const
void Transport(fvec dS, fvec P[], fvec C[]) const
void SetProductionVertex(const KFParticleSIMD &Vtx)