Belle II Software  release-08-01-10
HMatrixUnit.cc
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 
22 #include "IO.h"
23 
24 #include <cassert>
25 #include <alloca.h>
26 
27 namespace genfit {
28 
29 
30 // 1, 0, 0, 0, 0,
31 // 0, 1, 0, 0, 0,
32 // 0, 0, 1, 0, 0,
33 // 0, 0, 0, 1, 0,
34 // 0, 0, 0, 0, 1
35 
36 const TMatrixD& HMatrixUnit::getMatrix() const {
37  static const double HMatrixContent[5*5] = {1, 0, 0, 0, 0,
38  0, 1, 0, 0, 0,
39  0, 0, 1, 0, 0,
40  0, 0, 0, 1, 0,
41  0, 0, 0, 0, 1};
42 
43  static const TMatrixD HMatrix(5,5, HMatrixContent);
44 
45  return HMatrix;
46 }
47 
48 void HMatrixUnit::Print(const Option_t*) const {
49  printOut << "Unit" << std::endl;
50 }
51 
52 } /* End of namespace genfit */
const TMatrixD & getMatrix() const
Get the actual matrix representation.
Definition: HMatrixUnit.cc:36
Defines for I/O streams used for error and debug printing.
std::ostream printOut
Default stream for output of Print calls.