46 static const double HMatrixContent[5] = {0, 0, 0,
cosPhi_,
sinPhi_};
48 static const TMatrixD HMatrix(1,5, HMatrixContent);
55 assert (v.GetNrows() == 5);
57 double* retValArray =(
double *)alloca(
sizeof(
double) * 1);
61 return TVectorD(1, retValArray);
66 assert (M.GetNcols() == 5);
68 double* retValArray =(
double *)alloca(
sizeof(
double) * 5);
69 const double* MatArray = M.GetMatrixArray();
71 for (
unsigned int i=0; i<5; ++i) {
72 retValArray[i] =
cosPhi_*MatArray[i*5 + 3] +
sinPhi_*MatArray[i*5 + 4];
75 return TMatrixD(5,1, retValArray);
80 assert (M.GetNcols() == 5);
82 double* retValArray =(
double *)alloca(
sizeof(
double) * M.GetNrows());
83 const double* MatArray = M.GetMatrixArray();
85 for (
int i = 0; i < M.GetNrows(); ++i) {
86 retValArray[i] =
cosPhi_*MatArray[i*5 + 3] +
sinPhi_*MatArray[i*5 + 4];
89 return TMatrixD(M.GetNrows(),1, retValArray);
94 assert (M.GetNrows() == 5);
104 if (dynamic_cast<const HMatrixPhi*>(&other) ==
nullptr)
107 return (phi_ == static_cast<const HMatrixPhi*>(&other)->phi_);
112 printOut <<
"phi = " << phi_ << std::endl;
115 void HMatrixPhi::Streamer(TBuffer &R__b) {
120 if (R__b.IsReading()) {
121 R__b.ReadClassBuffer(genfit::HMatrixPhi::Class(),
this);
125 R__b.WriteClassBuffer(genfit::HMatrixPhi::Class(),
this);