FairRoot/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 
13  //Write likelihoods to PndMvdPidCand
14  static void CalcLikelihood(PndMvdPidCand* cand);
15 
16 private:
17 
18  //Lower boundary of energy loss distribution, as given by Bethe-Bloch formula
19  static double LowerBoundary(double p, double m);
20 
21  //These functions represent the lower boundary of the energy loss distribution
22  //at a given momentum. The offset numbers in both momentum and energy loss
23  //axis are adjusted that at least 99% of all events have are gathered.
24  static double LowerProtonBoundary(double momentum);
25 
26  static double LowerKaonBoundary(double momentum);
27 
28  static double LowerMuonBoundary(double momentum);
29 
30  //Naive approximation of the Landau distribution, integrated from -inf to x
31  static double LandauIntegral(double x);
32 
33  //Constants
34  static float fpiMass;
35  static float fkMass;
36  static float fpMass;
37  static float fmuMass;
38  static float feMass;
39  static float fc;
40  static float feb;
41 
42  //Landau distribution parameters
43  static double fkShift;
44  static double fkScale;
45 
46  static double fpiShift;
47  static double fpiScale;
48 
49  static double feShift;
50  static double feScale;
51 
52 };
53 
54 #endif
Double_t p
Definition: anasim.C:58
static void CalcLikelihood(PndMvdPidCand *cand)
__m128 m
Definition: P4_F32vec4.h:28
static double LowerMuonBoundary(double momentum)
static double LowerKaonBoundary(double momentum)
static double LowerProtonBoundary(double momentum)
static double LandauIntegral(double x)
Double_t x
static double LowerBoundary(double p, double m)