EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmLitMath.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CbmLitMath.h
1 #ifndef CBMLITMATH_H_
2 #define CBMLITMATH_H_
3 
4 #include "data/CbmLitTrackParam.h"
5 
6 class CbmLitHit;
7 class CbmLitStripHit;
8 class CbmLitPixelHit;
9 class CbmLitTrack;
10 
11 namespace lit
12 {
13 
14 /* Calculates chi square
15  * @param par Pointer to the updated or smoothed track parameter
16  * @param hit Pointer to the hit
17  * @return chi square contribution for this hit */
18 litfloat ChiSq(
19  const CbmLitTrackParam* par,
20  const CbmLitHit* hit);
21 
22 /* Calculates chi square for strip hits
23  * @param par Pointer to the updated or smoothed track parameter
24  * @param hit Pointer to the strip hit
25  * @return chi square contribution for this strip hit */
26 litfloat ChiSq(
27  const CbmLitTrackParam* par,
28  const CbmLitStripHit* hit);
29 
30 /* Calculates chi square for pixel hits
31  * @param par Pointer to the updated or smoothed track parameter
32  * @param hit Pointer to the pixel hit
33  * @return chi square contribution for this pixel hit */
34 litfloat ChiSq(
35  const CbmLitTrackParam* par,
36  const CbmLitPixelHit* hit);
37 
38 /* Calculates number of degrees of freedom
39  * @param track Pointer to the track */
40 int NDF(
41  const CbmLitTrack* track);
42 
43 }
44 #endif /*CBMLITMATH_H_*/