FitInterface.h
Go to the documentation of this file.
1 #ifndef _SdHorizontalReconstruction_FitInterface_h_
2 #define _SdHorizontalReconstruction_FitInterface_h_
3 
4 #include <utl/Point.h>
5 #include <utl/Vector.h>
6 #include <utl/CovarianceMatrix.h>
7 #include <vector>
8 
9 namespace SdHorizontalReconstructionNS {
10 
11  // (corex,corey) in barycenter CS
12  // (theta, phi) wrt barycenter
13  // (distance, ctime) of origin wrt barycenter
14  // (coreXExt,coreYExt) in Barycenter CS
15  // (thetaExt, phiExt) in Barycenter CS
16 
18  eN19 = 0, eCoreX = 1, eCoreY = 2
19  };
20 
22  eTheta = 0, ePhi = 1, eDistance = 2, eCTime = 3
23  };
24 
26  eCoreXExt = 0, eCoreYExt = 1,
27  eThetaExt = 2, ePhiExt = 3
28  };
29 
30  struct SizeData {
31 
32  static const std::size_t size = 3;
33 
35  : fCov(size),
36  fRecStage(0),
37  fNFree(0),
38  fNLogLike(0)
39  {}
40 
41  double fPar[size];
43  double fRecStage;
44  int fNFree;
45  double fNLogLike;
46  };
47 
48  struct AxisData {
49 
50  static const std::size_t size = 4;
51 
53  : fCov(size),
54  fNFree(0),
55  fChi2(0)
56  {}
57 
58  double fPar[size];
60  int fNFree;
61  double fChi2;
62  };
63 
65  int fId;
67  };
68 
69  struct StationData : public SilentStationData {
70  bool fRejected;
71 
72  double fSignal;
73  double fT50;
74  double fCTime; // relative to barycenter time
75  bool fSaturated;
76  double fRecoveryErr;
77  };
78 
79  typedef std::vector<SilentStationData> SilentStationList;
80  typedef std::vector<StationData> StationList;
81 
83 
84  static const std::size_t size = 4;
85 
87  {
88  for (size_t i = 0; i < 4; ++i)
89  {
90  fPar[i] = 0;
91  for (size_t j = 0; j < 4; ++j)
92  fInvCov[i][j] = 0;
93  }
94  }
95 
96  double fPar[size];
97  double fInvCov[size][size];
98  };
99 
100 } // SdHorizontalReconstructionNS
101 
102 #endif
static const std::size_t size
Definition: FitInterface.h:32
Point object.
Definition: Point.h:32
static const std::size_t size
Definition: FitInterface.h:50
std::vector< StationData > StationList
Definition: FitInterface.h:80
std::vector< SilentStationData > SilentStationList
Definition: FitInterface.h:79

, generated on Tue Sep 26 2023.