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  #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
13 namespace 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};
64  float Residual[NLAYER];
65  float SlopeCand[NCAND]; //
66  float InterceptCand[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 */
TrigL2MuonSA::PBFitResult::NPOI
int NPOI
Definition: SuperPointData.h:27
TrigL2MuonSA::PBFitResult::ALIN
float ALIN
Definition: SuperPointData.h:28
TrigL2MuonSA::PBFitResult::XILIN
std::array< float, NMEAMX > XILIN
Definition: SuperPointData.h:19
TrigL2MuonSA::PBFitResult::InterceptCand
std::array< float, NCAND > InterceptCand
Definition: SuperPointData.h:31
TrigL2MuonSA::SuperPoint::SuperPoint
SuperPoint()
Definition: SuperPointData.h:40
TrigL2MuonSA::SuperPoint::Blin
float Blin
Definition: SuperPointData.h:59
TrigL2MuonSA::SuperPoint::R
float R
Definition: SuperPointData.h:55
TrigL2MuonSA::SuperPoint::Phim
float Phim
Definition: SuperPointData.h:57
TrigL2MuonSA::PBFitResult::Chi2Cand
std::array< float, NCAND > Chi2Cand
Definition: SuperPointData.h:32
TrigL2MuonSA::SuperPoint::Yor
float Yor
Definition: SuperPointData.h:61
TrigL2MuonSA::PBFitResult::SlopeCand
std::array< float, NCAND > SlopeCand
Definition: SuperPointData.h:30
TrigL2MuonSA::SuperPoint::Chi2
float Chi2
Definition: SuperPointData.h:62
lumiFormat.i
int i
Definition: lumiFormat.py:85
TrigL2MuonSA::SuperPoint::PChi2
float PChi2
Definition: SuperPointData.h:63
Residual
Residual is a class that stores the residual, error, and type of residual.
TrigL2MuonSA::PBFitResult::YILIN
std::array< float, NMEAMX > YILIN
Definition: SuperPointData.h:20
TrigL2MuonSA::PBFitResult::RESI
std::array< float, NMEAMX > RESI
Definition: SuperPointData.h:23
TrigL2MuonSA::SuperPoint::Ndigi
int Ndigi
Definition: SuperPointData.h:54
TrigL2MuonSA::PBFitResult::BLIN
float BLIN
Definition: SuperPointData.h:29
TrigL2MuonSA::SuperPoint::SlopeCand
float SlopeCand[NCAND]
Definition: SuperPointData.h:65
TrigL2MuonSA::PBFitResult::PCHI2
float PCHI2
Definition: SuperPointData.h:26
TrigL2MuonSA::SuperPoint::InterceptCand
float InterceptCand[NCAND]
Definition: SuperPointData.h:66
TrigL2MuonSA::SuperPoint::Xor
float Xor
Definition: SuperPointData.h:60
TrigL2MuonSA::SuperPoint::Npoint
int Npoint
Definition: SuperPointData.h:53
TrigL2MuonSA::PBFitResult::WILIN
std::array< float, NMEAMX > WILIN
Definition: SuperPointData.h:22
TrigL2MuonSA::SuperPoint::Chi2Cand
float Chi2Cand[NCAND]
Definition: SuperPointData.h:67
TrigL2MuonSA::PBFitResult::CHI2
float CHI2
Definition: SuperPointData.h:25
TrigL2MuonSA::SuperPoint::Z
float Z
Definition: SuperPointData.h:56
TrigL2MuonSA::SuperPoint
Definition: SuperPointData.h:38
NLAYER
#define NLAYER
Definition: SuperPointData.h:11
TrigL2MuonSA::SuperPoint::Alin
float Alin
Definition: SuperPointData.h:58
TrigL2MuonSA::PBFitResult
Definition: SuperPointData.h:16
NCAND
#define NCAND
Definition: SuperPointData.h:12
TrigL2MuonSA
Definition: AlignmentBarrelLUT.h:13
TrigL2MuonSA::PBFitResult::RILIN
std::array< float, NMEAMX > RILIN
Definition: SuperPointData.h:21