PandaRoot
PndMvdSimplePidAlgo.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PndMvdSimplePidAlgo_h
14 #define PndMvdSimplePidAlgo_h
15 
16 #include <math.h>
17 #include <map>
18 #include "Rtypes.h"
19 
20 class PndMvdPidCand;
21 
23  public:
24  // Write likelihoods to PndMvdPidCand
25  static void CalcLikelihood(PndMvdPidCand *cand);
26 
27  private:
28  // Lower boundary of energy loss distribution, as given by Bethe-Bloch formula
29  static double LowerBoundary(double p, double m);
30 
31  // These functions represent the lower boundary of the energy loss distribution
32  // at a given momentum. The offset numbers in both momentum and energy loss
33  // axis are adjusted that at least 99% of all events have are gathered.
34  static double LowerProtonBoundary(double momentum);
35 
36  static double LowerKaonBoundary(double momentum);
37 
38  static double LowerMuonBoundary(double momentum);
39 
40  // Naive approximation of the Landau distribution, integrated from -inf to x
41  static double LandauIntegral(double x);
42 
43  // Constants
44  static float fpiMass;
45  static float fkMass;
46  static float fpMass;
47  static float fmuMass;
48  static float feMass;
49  static float fc;
50  static float feb;
51 
52  // Landau distribution parameters
53  static double fkShift;
54  static double fkScale;
55 
56  static double fpiShift;
57  static double fpiScale;
58 
59  static double feShift;
60  static double feScale;
61 };
62 
63 #endif
__m128 m
Definition: P4_F32vec4.h:38
static void CalcLikelihood(PndMvdPidCand *cand)