CbmRoot
Loading...
Searching...
No Matches
CbmLitMath.h
Go to the documentation of this file.
1/* Copyright (C) 2008-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
5#ifndef CBMLITMATH_H_
6#define CBMLITMATH_H_
7
9
10class CbmLitHit;
11class CbmLitStripHit;
12class CbmLitPixelHit;
13class CbmLitTrack;
14
15namespace lit
16{
17
18 /* Calculates chi square
19 * @param par Pointer to the updated or smoothed track parameter
20 * @param hit Pointer to the hit
21 * @return chi square contribution for this hit */
22 litfloat ChiSq(const CbmLitTrackParam* par, const CbmLitHit* hit);
23
24 /* Calculates chi square for strip hits
25 * @param par Pointer to the updated or smoothed track parameter
26 * @param hit Pointer to the strip hit
27 * @return chi square contribution for this strip hit */
28 litfloat ChiSq(const CbmLitTrackParam* par, 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(const CbmLitTrackParam* par, const CbmLitPixelHit* hit);
35
36 /* Calculates number of degrees of freedom
37 * @param track Pointer to the track */
38 int NDF(const CbmLitTrack* track);
39
40} // namespace lit
41#endif /*CBMLITMATH_H_*/
double litfloat
Definition CbmLitFloat.h:19
Data class for track parameters.
Base data class for hits.
Definition CbmLitHit.h:29
Base data class for pixel hits.
Base data class for strip hits.
Data class for track parameters.
Base data class for track.
Definition CbmLitTrack.h:34
Int_t NDF(const CbmLitTrack *track)
litfloat ChiSq(const CbmLitTrackParam *par, const CbmLitHit *hit)