Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:27

0001 /* Copyright 2013, Technische Universitaet Muenchen, Ludwig-Maximilians-Universität München
0002    Authors: Johannes Rauch, Tobias Schlüter
0003 
0004    This file is part of GENFIT.
0005 
0006    GENFIT is free software: you can redistribute it and/or modify
0007    it under the terms of the GNU Lesser General Public License as published
0008    by the Free Software Foundation, either version 3 of the License, or
0009    (at your option) any later version.
0010 
0011    GENFIT is distributed in the hope that it will be useful,
0012    but WITHOUT ANY WARRANTY; without even the implied warranty of
0013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014    GNU Lesser General Public License for more details.
0015 
0016    You should have received a copy of the GNU Lesser General Public License
0017    along with GENFIT.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 #include "HMatrixUnit.h"
0021 
0022 #include "IO.h"
0023 
0024 #include <cassert>
0025 #include <alloca.h>
0026 
0027 namespace genfit {
0028 
0029 
0030 // 1, 0, 0, 0, 0,
0031 // 0, 1, 0, 0, 0,
0032 // 0, 0, 1, 0, 0,
0033 // 0, 0, 0, 1, 0,
0034 // 0, 0, 0, 0, 1
0035 
0036 const TMatrixD& HMatrixUnit::getMatrix() const {
0037   static const double HMatrixContent[5*5] = {1, 0, 0, 0, 0,
0038                                                0, 1, 0, 0, 0,
0039                                                0, 0, 1, 0, 0,
0040                                                0, 0, 0, 1, 0,
0041                                                0, 0, 0, 0, 1};
0042 
0043   static const TMatrixD HMatrix(5,5, HMatrixContent);
0044 
0045   return HMatrix;
0046 }
0047 
0048 void HMatrixUnit::Print(const Option_t*) const {
0049   printOut << "Unit" << std::endl;
0050 }
0051 
0052 } /* End of namespace genfit */