PandaRoot
PndEmcErrorMatrix.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //--------------------------------------------------------------------------
14 // Description:
15 // Class PndEmcErrorMatrix
16 // Calculate Error Matrix for the given EmcCluster
17 // with parametrization defined by the given parameter PndEmcErrorMatrixPar
18 //
19 //------------------------------------------------------------------------
20 
21 //#pragma once
22 #ifndef PNDEMCERRORMATRIX_H
23 #define PNDEMCERRORMATRIX_H
24 
25 #include "TMatrixD.h"
26 #include "PndEmcCluster.h"
27 #include "TString.h"
28 #include <cstdlib>
29 
32 
39  public:
40  // Constructors
42  // Destructor
44 
46  void InitFromFile(Int_t geomVersion);
48 
49  // Error Matrix for Cluster
50  // 4x4 matrix in E, theta, phi, R
51  TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const;
52 
53  // 4x4 matrix in (px, py, pz, E)
54  TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const;
55 
56  // 7x7 matrix in (x, y, z, px, py, pz, E)
57  TMatrixD GetErrorP7(const PndEmcCluster &cluster) const;
58 
59  private:
60  PndEmcErrorMatrixParObject *fErrorMatrixParObject;
61 
63  PndEmcErrorMatrix &operator=(const PndEmcErrorMatrix &) { return *this; };
64 };
65 
66 // helper function to convert error matrix
67 // copied from BbrGeom/BbrError.cc
68 TMatrixD similarityWith(const TMatrixD &mat, const TMatrixD &m1);
69 
70 #endif
TMatrixD similarityWith(const TMatrixD &mat, const TMatrixD &m1)
void Init(PndEmcErrorMatrixParObject *par)
TMatrixD Get4MomentumErrorMatrix(const PndEmcCluster &cluster) const
Container class for EMC error matrix parameter class is inherited from FairParGenericSet.
TMatrixD GetErrorMatrix(const PndEmcCluster &cluster) const
void InitFromFile(Int_t geomVersion)
TMatrixD GetErrorP7(const PndEmcCluster &cluster) const
PndEmcErrorMatrixParObject * GetParObject()
Calculate Error Matrix for the given EmcCluster with parametrization defined by the given parameter P...
TMatrixT< double > TMatrixD
Definition: PndLmdDim.h:64