EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RKTools.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file RKTools.h
1 /* Copyright 2008-2009, Technische Universitaet Muenchen,
2  Authors: Christian Hoeppner & Sebastian Neubert
3 
4  This file is part of GENFIT.
5 
6  GENFIT is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  GENFIT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*
21  */
22 
28 #ifndef RKTOOLS_H
29 #define RKTOOLS_H
30 
31 
32 // Array Matrix typedefs. They are needed for SSE optimization:
33 // gcc can vectorize loops only if the array sizes are known.
34 typedef double M1x3[1*3];
35 typedef double M1x4[1*4];
36 typedef double M1x6[1*6];
37 typedef double M1x7[1*7];
38 typedef double M5x5[5*5];
39 typedef double M6x6[6*6];
40 typedef double M7x7[7*7];
41 typedef double M8x7[8*7];
42 typedef double M6x5[6*5];
43 typedef double M7x5[7*5];
44 typedef double M5x6[5*6];
45 typedef double M5x7[5*7];
46 
47 namespace RKTools {
48 
49  void J_pMTxcov5xJ_pM(const M5x7& J_pM, const M5x5& cov5, M7x7& out7);
50  void J_pMTxcov5xJ_pM(const M5x6& J_pM, const M5x5& cov5, M6x6& out6);
51 
52  void J_MpTxcov7xJ_Mp(const M7x5& J_Mp, const M7x7& cov7, M5x5& out5);
53  void J_MpTxcov6xJ_Mp(const M6x5& J_Mp, const M6x6& cov6, M5x5& out5);
54 
55  void J_MMTxcov7xJ_MM(const M7x7& J_MM, const M7x7& cov7, M7x7& out7);
56 
57  void J_MMxJ_MM(M7x7& J_MM, const M7x7& J_MM_old);
58 
59  void printDim(const double* mat, unsigned int dimX, unsigned int dimY);
60 
61 }
62 
63 #endif
64