61 init(pini, theCovMatrix);
65 TLorentzVector* pini,
const TMatrixD* theCovMatrix)
68 init(pini, theCovMatrix);
75 if ( newname.Length() > 0 ) myclone->SetName(newname);
110 _u1.SetXYZ(0., 0., 0.);
111 _u3.SetXYZ(0., 0., 0.);
112 _u2.SetXYZ(0., 0., 0.);
113 _pini.SetXYZT(0., 0., 0., 0.);
128 TVector3 uz(0., 0., 1.);
150 if ( params->GetNcols() != 1 || params->GetNrows() !=
_nPar ) {
152 << GetName() <<
"::calc4Vec - Parameter matrix has wrong size.";
156 Double_t
X =
_pini.P() * (*params)(0,0) *
_u1.X() +
157 (*params)(1,0) *
_u2.X()+
158 (*params)(2,0) *
_u3.X();
159 Double_t
Y =
_pini.P() * (*params)(0,0) *
_u1.Y() +
160 (*params)(1,0) *
_u2.Y()+
161 (*params)(2,0) *
_u3.Y();
162 Double_t
Z =
_pini.P() * (*params)(0,0) *
_u1.Z() +
163 (*params)(1,0) *
_u2.Z()+
164 (*params)(2,0) *
_u3.Z();
165 Double_t E =
_pini.E()*(*params)(3,0);
167 TLorentzVector* vec =
new TLorentzVector( X, Y, Z, E );
177 TMatrixD* DerivativeMatrix =
new TMatrixD(4,4);
178 (*DerivativeMatrix) *= 0.;
181 (*DerivativeMatrix)(0,0)=
_pini.P()*
_u1.X();
182 (*DerivativeMatrix)(1,0)=
_pini.P()*
_u1.Y();
183 (*DerivativeMatrix)(2,0)=
_pini.P()*
_u1.Z();
184 (*DerivativeMatrix)(3,0)=0.;
187 (*DerivativeMatrix)(0,1)=
_u2.X();
188 (*DerivativeMatrix)(1,1)=
_u2.Y();
189 (*DerivativeMatrix)(2,1)=
_u2.Z();
190 (*DerivativeMatrix)(3,1)=0.;
193 (*DerivativeMatrix)(0,2)=
_u3.X();
194 (*DerivativeMatrix)(1,2)=
_u3.Y();
195 (*DerivativeMatrix)(2,2)=
_u3.Z();
196 (*DerivativeMatrix)(3,2)=0.;
199 (*DerivativeMatrix)(0,3)=0.;
200 (*DerivativeMatrix)(1,3)=0.;
201 (*DerivativeMatrix)(2,3)=0.;
202 (*DerivativeMatrix)(3,3)=
_pini.E();
204 return DerivativeMatrix;
217 TVector3
vec3( vec.Vect() );
218 vec3.Transform( rot );
221 TMatrixD* tparams =
new TMatrixD(
_nPar, 1 );
223 (*tparams)(1,0) =
vec3.y();
224 (*tparams)(2,0) =
vec3.z();
225 (*tparams)(3,0) = vec.E()/
_pini.E();
virtual void setIni4Vec(const TLorentzVector *pini)
virtual TAbsFitParticle * clone(const TString &newname="") const
virtual TMatrixD * getDerivative()
virtual void setCovMatrix(const TMatrixD *theCovMatrix)
virtual ~TFitParticleEMomDev()
virtual TMatrixD * transform(const TLorentzVector &vec)
virtual TLorentzVector * calc4Vec(const TMatrixD *params)
void init(TLorentzVector *pini, const TMatrixD *theCovMatrix)