ATLAS Offline Software
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 
5 #ifndef TRIGL2MUONSA_SUPERPOINTDATA_H
6 #define TRIGL2MUONSA_SUPERPOINTDATA_H
7 
8 #define NMEAMX 50
9 #define MNLINE 14
10 #define NLAYER 8
11 #define NCAND 6 //segment candidate
12 namespace TrigL2MuonSA {
13 
15 {
16  public:
18  CHI2(0),
19  PCHI2(0),
20  NPOI(0),
21  NDOF(0),
22  ALIN(0),
23  BLIN(0)
24  {
25  for (int i=0; i<NMEAMX; i++) {
26  IDMEA[i] = 0;
27  XILIN[i] = 0;
28  YILIN[i] = 0;
29  IGLIN[i] = 0;
30  RILIN[i] = 0;
31  WILIN[i] = 0;
32  DISTJ[i] = 0;
33  JLINE[i] = 0;
34  RESI[i] = 0;
35  }
37  for (int i=0; i<NCAND; i++){
38  SlopeCand[i] = 0;
39  InterceptCand[i] = 0;
40  Chi2Cand[i] = 0;
41  }
42  for (int i=0; i<MNLINE; i++) NLINE[i] = 0;
43  for (int i=0; i<2; i++)
44  for (int j=0; j<2; j++)
45  DABLIN[i][j] = 0;
46  };
47 
48  public:
49  int IDMEA[NMEAMX];
50  float XILIN[NMEAMX];
51  float YILIN[NMEAMX];
52  int IGLIN[NMEAMX];
53  float RILIN[NMEAMX];
54  float WILIN[NMEAMX];
55  float DISTJ[NMEAMX];
56  int JLINE[NMEAMX];
57  float RESI[NMEAMX];
58  int NLINE[MNLINE];
59  float CHI2;
60  float PCHI2;
61  int NPOI;
62  int NDOF;
63  float ALIN;
64  float BLIN;
65  float DABLIN[2][2];
66  float SlopeCand[NCAND]; //segment candidate
67  float InterceptCand[NCAND]; //
68  float Chi2Cand[NCAND]; //
69 
70 }; // See description at the bottom
71 
72 
74 {
75  public:
77  Npoint(0),
78  Ndigi(0),
79  R(0),
80  Z(0),
81  Phim(0),
82  Alin(0),
83  Blin(0),
84  Xor(0),
85  Yor(0),
86  Chi2(0),
87  PChi2(0)
88  {
89  for (int i=0; i<NLAYER; i++) Residual[i]=0;
91  for (int i=0; i<NCAND; i++){
92  SlopeCand[i] = 0;
93  InterceptCand[i] = 0;
94  Chi2Cand[i] = 0;
95  }
97  };
98 
99  public:
100  int Npoint;
101  int Ndigi;
102  float R;
103  float Z;
104  float Phim;
105  float Alin;
106  float Blin;
107  float Xor;
108  float Yor;
109  float Chi2;
110  float PChi2;
111  float Residual[NLAYER];
112  float SlopeCand[NCAND]; //
113  float InterceptCand[NCAND]; //
114  float Chi2Cand[NCAND]; //
115 
116 };
117 
118 // --------------------------------------------------------------------------------
119 // --------------------------------------------------------------------------------
120 
121 }
122 
123 #endif // TRIGL2MUONSA_SUPERPOINTDATA_H
124 
125 
126 /*
127  IDMEA(j) : 10,000 * detector + 10 * channel + time
128  (ex. first hit of TRK 3 is 40031)
129  XILIN(j) : x of point j (for tubes, x of tube center)
130  YILIN(j) : y of point j (for tubes, y of tube center)
131  IGLIN(j) : flag of point j (see CIRCLES);
132  if point not to be used, flag is -ve
133  if point has been discarded, flag is .lt.-100;
134  RILIN(j) : for tubes, drift distance;
135  WILIN(j) : 1/sigma**2 (i.e. the weight of point j);
136  DISTJ(j) : signed distance line <--> (x,y)
137  for tubes, this is NOT the residual;
138  JLINE(j) : to which line the channels belongs
139  (e.g. tubes at the same x have the same JLINE);
140  RESI(j) : signed residual (meas - line);
141  CHI2 : chi square of the fit;
142  PCHI2 : prob (chi2, degrees of freedom);
143  NPOI : totsl number of meas (including not used);
144  NDOF : number of degrees of freedom (i.e. used meas - 2);
145  ALIN : line coefficient 1 --> y = ALIN * x + BLIN
146  BLIN : line coefficient 2 --> y = ALIN * x + BLIN
147  DABLIN(2,2): error matrix
148 */
TrigL2MuonSA::PBFitResult::NPOI
int NPOI
Definition: SuperPointData.h:61
TrigL2MuonSA::PBFitResult::RILIN
float RILIN[NMEAMX]
Definition: SuperPointData.h:53
TrigL2MuonSA::PBFitResult::ALIN
float ALIN
Definition: SuperPointData.h:63
TrigL2MuonSA::PBFitResult::PBFitResult
PBFitResult()
Definition: SuperPointData.h:17
TrigL2MuonSA::PBFitResult::Chi2Cand
float Chi2Cand[NCAND]
Definition: SuperPointData.h:68
TrigL2MuonSA::PBFitResult::DABLIN
float DABLIN[2][2]
Definition: SuperPointData.h:65
TrigL2MuonSA::PBFitResult::IGLIN
int IGLIN[NMEAMX]
Definition: SuperPointData.h:52
TrigL2MuonSA::PBFitResult::YILIN
float YILIN[NMEAMX]
Definition: SuperPointData.h:51
TrigL2MuonSA::SuperPoint::SuperPoint
SuperPoint()
Definition: SuperPointData.h:76
TrigL2MuonSA::SuperPoint::Blin
float Blin
Definition: SuperPointData.h:106
NMEAMX
#define NMEAMX
Definition: SuperPointData.h:8
TrigL2MuonSA::SuperPoint::R
float R
Definition: SuperPointData.h:102
TrigL2MuonSA::SuperPoint::Phim
float Phim
Definition: SuperPointData.h:104
TrigL2MuonSA::PBFitResult::NDOF
int NDOF
Definition: SuperPointData.h:62
TrigL2MuonSA::SuperPoint::Yor
float Yor
Definition: SuperPointData.h:108
TrigL2MuonSA::SuperPoint::Chi2
float Chi2
Definition: SuperPointData.h:109
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigL2MuonSA::SuperPoint::PChi2
float PChi2
Definition: SuperPointData.h:110
Residual
Residual is a class that stores the residual, error, and type of residual.
TrigL2MuonSA::PBFitResult::IDMEA
int IDMEA[NMEAMX]
Definition: SuperPointData.h:46
TrigL2MuonSA::PBFitResult::XILIN
float XILIN[NMEAMX]
Definition: SuperPointData.h:50
TrigL2MuonSA::PBFitResult::InterceptCand
float InterceptCand[NCAND]
Definition: SuperPointData.h:67
TrigL2MuonSA::PBFitResult::JLINE
int JLINE[NMEAMX]
Definition: SuperPointData.h:56
TrigL2MuonSA::SuperPoint::Ndigi
int Ndigi
Definition: SuperPointData.h:101
TrigL2MuonSA::PBFitResult::BLIN
float BLIN
Definition: SuperPointData.h:64
TrigL2MuonSA::SuperPoint::SlopeCand
float SlopeCand[NCAND]
Definition: SuperPointData.h:112
TrigL2MuonSA::PBFitResult::PCHI2
float PCHI2
Definition: SuperPointData.h:60
TrigL2MuonSA::SuperPoint::InterceptCand
float InterceptCand[NCAND]
Definition: SuperPointData.h:113
TrigL2MuonSA::PBFitResult::NLINE
int NLINE[MNLINE]
Definition: SuperPointData.h:58
TrigL2MuonSA::SuperPoint::Xor
float Xor
Definition: SuperPointData.h:107
TrigL2MuonSA::SuperPoint::Npoint
int Npoint
Definition: SuperPointData.h:97
TrigL2MuonSA::SuperPoint::Chi2Cand
float Chi2Cand[NCAND]
Definition: SuperPointData.h:114
TrigL2MuonSA::PBFitResult::CHI2
float CHI2
Definition: SuperPointData.h:59
TrigL2MuonSA::PBFitResult::SlopeCand
float SlopeCand[NCAND]
Definition: SuperPointData.h:66
TrigL2MuonSA::SuperPoint::Z
float Z
Definition: SuperPointData.h:103
TrigL2MuonSA::SuperPoint
Definition: SuperPointData.h:74
NLAYER
#define NLAYER
Definition: SuperPointData.h:10
TrigL2MuonSA::SuperPoint::Alin
float Alin
Definition: SuperPointData.h:105
TrigL2MuonSA::PBFitResult::WILIN
float WILIN[NMEAMX]
Definition: SuperPointData.h:54
TrigL2MuonSA::PBFitResult
Definition: SuperPointData.h:15
NCAND
#define NCAND
Definition: SuperPointData.h:11
MNLINE
#define MNLINE
Definition: SuperPointData.h:9
TrigL2MuonSA::PBFitResult::DISTJ
float DISTJ[NMEAMX]
Definition: SuperPointData.h:55
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13
TrigL2MuonSA::PBFitResult::RESI
float RESI[NMEAMX]
Definition: SuperPointData.h:57