BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
TMdcDedx.cxx
Go to the documentation of this file.
2#include <iostream>
3#include <cstdlib>
4
6
7//************************************************
8 //
10 Clear();
11 }
12//************************************************
13//
15 Clear();
16 }
17
18
19Double_t TMdcDedx::chi(int i) const {
20 double chi_ret = 0;
21 switch (i) {
22 case 0: chi_ret = m_chiE;
23 break;
24 case 1: chi_ret = m_chiMu;
25 break;
26 case 2: chi_ret = m_chiPi;
27 break;
28 case 3: chi_ret = m_chiK;
29 break;
30 case 4: chi_ret = m_chiP;
31 break;
32 default: std::cerr << " TMdcDedx::chi: i= " << i << " - out of range"
33 << std::endl;
34 exit(1);
35 }
36
37 return chi_ret;
38}
ClassImp(TMdcDedx) TMdcDedx
Definition: TMdcDedx.cxx:5
~TMdcDedx()
Definition: TMdcDedx.cxx:14
Double_t chi(int i) const
Definition: TMdcDedx.cxx:19