BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxSimData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxSimData.h,v 1.6 2022/07/12 23:03:34 fangwx Exp $
2#ifndef CalibData_DedxSimData_h
3#define CalibData_DedxSimData_h
4
5/* @class CalibData_DedxSimData_h
6
7 calibration data class
8 calibration infrastructure
9
10 @author huangb
11*/
12
15#include "TH1F.h"
16#include <vector>
17using namespace std;
18
19namespace CalibData {
20 class DedxSimData: public CalibBase1{
21
22 public:
24 m_hist=0;
25 m_hRange=0;
26 };
27
28 virtual ~DedxSimData() {}
29
30 // Re-implemented from DataObject
31 inline virtual const CLID& clID() const { return classID(); }
32
33 inline static const CLID& classID() { return CLID_Dedx_Sim; }
34
35 virtual StatusCode update(CalibBase1& other, MsgStream* log);
36
37 int getVersion() const { return m_ver; }
38 int getRangeNo() const { return m_bgNo; }
39 double getRange(int i) const{return *((m_hRange->begin())+i);}
40 int getThetaNo() const { return m_thetaNo; }
41 int gethistNo() const{return m_histNo;}
42 TH1F getHist(int i) const{return *((m_hist->begin())+i);}
43 std::vector<TH1F>* getHist() const{return m_hist;}
44 std::vector<double>* getRange() const{return m_hRange;}
45
46 void setVersion(const int ver) { m_ver = ver; }
47 void setHistNo(const int No) {m_histNo=No;}
48 void setHist(const vector<TH1F>* hist);
49 // void setHist(TH1F hist){m_hist->push_back(hist);}
50 void setRange(const vector<double>* hRange);
51 void setRangeNo(const int No) { m_bgNo = No; }
52 void setThetaNo(const int No) { m_thetaNo = No; }
53
54 private:
55 int m_ver;
56 int m_histNo;
57 int m_bgNo;
58 int m_thetaNo;
59 vector<TH1F>* m_hist;
60 vector<double>* m_hRange;
61 };
62}
63
64
65#endif
const CLID CLID_Dedx_Sim
Definition CalibModel.h:61
void setThetaNo(const int No)
Definition DedxSimData.h:52
double getRange(int i) const
Definition DedxSimData.h:39
void setHistNo(const int No)
Definition DedxSimData.h:47
void setRange(const vector< double > *hRange)
void setHist(const vector< TH1F > *hist)
TH1F getHist(int i) const
Definition DedxSimData.h:42
virtual const CLID & clID() const
Definition DedxSimData.h:31
void setRangeNo(const int No)
Definition DedxSimData.h:51
void setVersion(const int ver)
Definition DedxSimData.h:46
std::vector< TH1F > * getHist() const
Definition DedxSimData.h:43
std::vector< double > * getRange() const
Definition DedxSimData.h:44
static const CLID & classID()
Definition DedxSimData.h:33