SND@LHC Software
Loading...
Searching...
No Matches
HMatrixUnit.cc
Go to the documentation of this file.
1/* Copyright 2013, Technische Universitaet Muenchen, Ludwig-Maximilians-Universität München
2 Authors: Johannes Rauch, Tobias Schlüter
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#include "HMatrixUnit.h"
21#include <cassert>
22#include <alloca.h>
23
24
25namespace genfit {
26
27
28// 1, 0, 0, 0, 0,
29// 0, 1, 0, 0, 0,
30// 0, 0, 1, 0, 0,
31// 0, 0, 0, 1, 0,
32// 0, 0, 0, 0, 1
33
34const TMatrixD& HMatrixUnit::getMatrix() const {
35 static const double HMatrixContent[5*5] = {1, 0, 0, 0, 0,
36 0, 1, 0, 0, 0,
37 0, 0, 1, 0, 0,
38 0, 0, 0, 1, 0,
39 0, 0, 0, 0, 1};
40
41 static const TMatrixD HMatrix(5,5, HMatrixContent);
42
43 return HMatrix;
44}
45
46
47} /* End of namespace genfit */
const TMatrixD & getMatrix() const
Get the actual matrix representation.
Matrix inversion tools.
Definition AbsBField.h:29