PandaRoot
PndMvdIdealPidAlgo.h
Go to the documentation of this file.
1 #ifndef PndMvdIdealPidAlgo_h
2 #define PndMvdIdealPidAlgo_h
3 
4 #include <math.h>
5 #include <map>
6 #include "Rtypes.h"
7 
8 class PndMvdPidCand;
9 
11  public:
12  // Write likelihoods to PndMvdPidCand
13  static void CalcLikelihood(PndMvdPidCand *cand);
14 
15  private:
16  // Lower boundary of energy loss distribution, as given by Bethe-Bloch formula
17  static double LowerBoundary(double p, double m);
18 
19  // These functions represent the lower boundary of the energy loss distribution
20  // at a given momentum. The offset numbers in both momentum and energy loss
21  // axis are adjusted that at least 99% of all events have are gathered.
22  static double LowerProtonBoundary(double momentum);
23 
24  static double LowerKaonBoundary(double momentum);
25 
26  static double LowerPionBoundary(double momentum);
27 
28  // Naive approximation of the Landau distribution, integrated from -inf to x
29  static double LandauIntegral(double x);
30 
31  // Constants
32  static float fpiMass;
33  static float fkMass;
34  static float fpMass;
35  static float feMass;
36  static float fc;
37  static float feb;
38 
39  // Landau distribution parameters
40  static double fkShift;
41  static double fkScale;
42 
43  static double fpiShift;
44  static double fpiScale;
45 
46  // Integral remainders
47  static double fPRemainder;
48  static double fKRemainder;
49  static double fPiRemainder;
50 };
51 
52 #endif
__m128 m
Definition: P4_F32vec4.h:26
static void CalcLikelihood(PndMvdPidCand *cand)