CbmRoot
L1Track.h
Go to the documentation of this file.
1
/*
2
*====================================================================
3
*
4
* CBM Level 1 Reconstruction
5
*
6
* Authors: I.Kisel, S.Gorbunov
7
*
8
* e-mail : ikisel@kip.uni-heidelberg.de
9
*
10
*====================================================================
11
*
12
* L1 track class
13
*
14
*====================================================================
15
*/
16
17
#ifndef L1Track_H
18
#define L1Track_H
19
20
class
L1Track
{
21
public
:
22
unsigned
char
NHits
;
23
unsigned
char
n
;
24
float
Momentum
,
fTrackTime
;
25
fscal
TFirst
[7],
CFirst
[21],
TLast
[7],
CLast
[21],
Tpv
[7],
Cpv
[21],
chi2
;
26
short
int
NDF
;
27
28
int
FirstHitIndex
,
LastHitIndex
;
29
int
index
;
30
int
ista
;
31
32
33
static
bool
compareCand
(
const
L1Track
& a,
const
L1Track
& b) {
34
35
if
(a.
NHits
!= b.
NHits
)
return
(a.
NHits
> b.
NHits
);
36
37
if
(a.
ista
!= b.
ista
)
38
return
(a.
ista
< b.
ista
);
39
40
else
41
return
(a.
chi2
< b.
chi2
);
42
}
43
44
45
static
bool
compare
(
const
L1Track
& a,
const
L1Track
& b) {
46
47
return
(a.
Cpv
[20] <= b.
Cpv
[20]);
48
}
49
};
50
51
// #include "cmath"
52
// bool operator==(const L1Track &other) const {
53
// cout<<int(NHits)<<" NHits"<<endl;
54
// if ((other.NHits==NHits)&&(fabs(other.Momentum-Momentum)<1.e-6)) return true;
55
// else return false;
56
// }
57
58
#endif
fscal
float fscal
Definition:
L1/vectors/P4_F32vec4.h:250
L1Track::fTrackTime
float fTrackTime
Definition:
L1Track.h:24
L1Track::ista
int ista
Definition:
L1Track.h:30
L1Track::compareCand
static bool compareCand(const L1Track &a, const L1Track &b)
Definition:
L1Track.h:33
L1Track::compare
static bool compare(const L1Track &a, const L1Track &b)
Definition:
L1Track.h:45
L1Track::FirstHitIndex
int FirstHitIndex
Definition:
L1Track.h:28
L1Track::CFirst
fscal CFirst[21]
Definition:
L1Track.h:25
L1Track::NDF
short int NDF
Definition:
L1Track.h:26
L1Track::Cpv
fscal Cpv[21]
Definition:
L1Track.h:25
L1Track::Tpv
fscal Tpv[7]
Definition:
L1Track.h:25
L1Track::NHits
unsigned char NHits
Definition:
L1Track.h:22
L1Track::LastHitIndex
int LastHitIndex
Definition:
L1Track.h:28
L1Track::CLast
fscal CLast[21]
Definition:
L1Track.h:25
L1Track::chi2
fscal chi2
Definition:
L1Track.h:25
L1Track
Definition:
L1Track.h:20
L1Track::index
int index
Definition:
L1Track.h:29
L1Track::TLast
fscal TLast[7]
Definition:
L1Track.h:25
L1Track::TFirst
fscal TFirst[7]
Definition:
L1Track.h:25
L1Track::Momentum
float Momentum
Definition:
L1Track.h:24
L1Track::n
unsigned char n
Definition:
L1Track.h:23
reco
L1
L1Algo
L1Track.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18