ATLAS Offline Software
Loading...
Searching...
No Matches
SuperPointData.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4 #include <array>
5
6#ifndef TRIGL2MUONSA_SUPERPOINTDATA_H
7#define TRIGL2MUONSA_SUPERPOINTDATA_H
8
9#define NMEAMX 50
10#define MNLINE 14
11#define NLAYER 8
12#define NCAND 6 //segment candidate
13namespace TrigL2MuonSA {
14
16{
17
18 public:
19 std::array<float, NMEAMX> XILIN{};
20 std::array<float, NMEAMX> YILIN{};
21 std::array<float, NMEAMX> RILIN{};
22 std::array<float, NMEAMX> WILIN{};
23 std::array<float, NMEAMX> RESI{};
24
25 float CHI2 {0};
26 float PCHI2 {0};
27 int NPOI {0};
28 float ALIN {0};
29 float BLIN {0};
30 std::array<float, NCAND> SlopeCand{}; //segment candidate
31 std::array<float, NCAND> InterceptCand{}; //
32 std::array<float, NCAND> Chi2Cand{}; //
33
34}; // See description at the bottom
35
36
38{
39 public:
41 {
42 for (int i=0; i<NLAYER; i++) Residual[i]=0;
44 for (int i=0; i<NCAND; i++){
45 SlopeCand[i] = 0;
46 InterceptCand[i] = 0;
47 Chi2Cand[i] = 0;
48 }
50 };
51
52 public:
53 int Npoint {0};
54 int Ndigi {0};
55 float R {0};
56 float Z {0};
57 float Phim {0};
58 float Alin {0};
59 float Blin {0};
60 float Xor{0};
61 float Yor {0};
62 float Chi2 {0};
63 float PChi2 {0};
65 float SlopeCand[NCAND]; //
67 float Chi2Cand[NCAND]; //
68
69};
70
71// --------------------------------------------------------------------------------
72// --------------------------------------------------------------------------------
73
74}
75
76#endif // TRIGL2MUONSA_SUPERPOINTDATA_H
77
78
79/*
80 XILIN(j) : x of point j (for tubes, x of tube center)
81 YILIN(j) : y of point j (for tubes, y of tube center)
82 RILIN(j) : for tubes, drift distance;
83 WILIN(j) : 1/sigma**2 (i.e. the weight of point j);
84 RESI(j) : signed residual (meas - line);
85 CHI2 : chi square of the fit;
86 PCHI2 : prob (chi2, degrees of freedom);
87 NPOI : totsl number of meas (including not used);
88 ALIN : line coefficient 1 --> y = ALIN * x + BLIN
89 BLIN : line coefficient 2 --> y = ALIN * x + BLIN
90 DABLIN(2,2): error matrix
91*/
#define NLAYER
#define NCAND
std::array< float, NMEAMX > YILIN
std::array< float, NMEAMX > RESI
std::array< float, NMEAMX > RILIN
std::array< float, NMEAMX > XILIN
std::array< float, NCAND > Chi2Cand
std::array< float, NCAND > InterceptCand
std::array< float, NMEAMX > WILIN
std::array< float, NCAND > SlopeCand