BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCalib.h
Go to the documentation of this file.
1#ifndef DEDXCALIB_H
2#define DEDXCALIB_H
3
4#include "GaudiKernel/Algorithm.h"
5#include "GaudiKernel/ISvcLocator.h"
8
10
11class DedxCalib : public Algorithm
12{
13 public:
14 DedxCalib (const std::string& name, ISvcLocator* pSvcLocator);
16
17 StatusCode initialize();
18 StatusCode execute();
19 StatusCode finalize();
20
21 virtual void genNtuple() = 0;
22 virtual void initializing() = 0;
23 virtual void BookHists() = 0;
24 virtual void FillHists() = 0;
25 virtual void AnalyseHists() = 0;
26 virtual void WriteHists() = 0;
27
28 protected:
31
32 //do trunction to calculate dE/dx for each track
33 float truncate;
34 double cal_dedx_bitrunc(float truncate, std::vector<double> phlist); //do low and high side truncation
35 double cal_dedx(float truncate, std::vector<double> phlist); //no low side truncation
36
37 //calculate chi dE/dx
38 void getCurvePar();
39 vector<double> Curve_Para;
40 vector<double> Sigma_Para;
41 int vFlag[3];//vFlag[0]:dedx curve version; vFlag[1]:dedx sigma version; vFlag[2]: 0:data; 1:MC
42 void set_dEdx( int landau, float dEdx, int trkalg, int runflag, int dedxhit_use, float ptrk, float theta, float pl_rp, int vflag[3] , double t0);
43 double m_dedx_exp[5];
44 double m_ex_sigma[5];
45 double m_pid_prob[5];
46 double m_chi_ex[5];
47
48 vector<string> m_recFileVector;
49 void ReadRecFileList();
50 int ParticleFlag; //particle type flag: 0: electron, 1:muon, 2: pion, 3:kaon, 4:proton
53 std::string m_eventType;
54 std::string m_recFileList;
55 std::string m_rootfile;
56 std::string m_curvefile;
57};
58#endif
int vflag[3]
Curve parameter vars.
std::string m_curvefile
Definition DedxCalib.h:56
double m_chi_ex[5]
Definition DedxCalib.h:46
StatusCode finalize()
Definition DedxCalib.cxx:69
void set_dEdx(int landau, float dEdx, int trkalg, int runflag, int dedxhit_use, float ptrk, float theta, float pl_rp, int vflag[3], double t0)
double cal_dedx(float truncate, std::vector< double > phlist)
DedxCalib(const std::string &name, ISvcLocator *pSvcLocator)
Definition DedxCalib.cxx:12
int ParticleFlag
Definition DedxCalib.h:50
void ReadRecFileList()
Definition DedxCalib.cxx:89
int m_phShapeFlag
Definition DedxCalib.h:52
std::string m_rootfile
Definition DedxCalib.h:55
std::string m_recFileList
Definition DedxCalib.h:54
int vFlag[3]
Definition DedxCalib.h:41
virtual void genNtuple()=0
Definition DedxCalib.cxx:79
vector< double > Sigma_Para
Definition DedxCalib.h:40
virtual void WriteHists()=0
Definition DedxCalib.cxx:87
void getCurvePar()
double m_pid_prob[5]
Definition DedxCalib.h:45
IDedxCorrecSvc * exsvc
Definition DedxCalib.h:30
vector< double > Curve_Para
Definition DedxCalib.h:39
virtual void AnalyseHists()=0
Definition DedxCalib.cxx:85
StatusCode execute()
Definition DedxCalib.cxx:56
double m_dedx_exp[5]
Definition DedxCalib.h:43
virtual void BookHists()=0
Definition DedxCalib.cxx:81
StatusCode initialize()
Definition DedxCalib.cxx:24
double cal_dedx_bitrunc(float truncate, std::vector< double > phlist)
double m_ex_sigma[5]
Definition DedxCalib.h:44
virtual void FillHists()=0
Definition DedxCalib.cxx:83
vector< string > m_recFileVector
Definition DedxCalib.h:48
virtual void initializing()=0
Definition DedxCalib.cxx:77
IMdcGeomSvc * geosvc
Definition DedxCalib.h:29
int m_calibflag
Definition DedxCalib.h:51
std::string m_eventType
Definition DedxCalib.h:53
float truncate
Definition DedxCalib.h:33
float ptrk