PandaRoot
PndMvdSimplePidAlgo.h
Go to the documentation of this file.
1 #ifndef PndMvdSimplePidAlgo_h
2 #define PndMvdSimplePidAlgo_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 LowerMuonBoundary(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 fmuMass;
36  static float feMass;
37  static float fc;
38  static float feb;
39 
40  // Landau distribution parameters
41  static double fkShift;
42  static double fkScale;
43 
44  static double fpiShift;
45  static double fpiScale;
46 
47  static double feShift;
48  static double feScale;
49 };
50 
51 #endif
__m128 m
Definition: P4_F32vec4.h:26
static void CalcLikelihood(PndMvdPidCand *cand)