BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-18/CalibData/Dedx/DedxSimData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxSimData.h,v 1.5 2016/09/14 05:26:18 zhaog 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
13#include "CalibData/CalibModel.h"
14#include "CalibData/CalibBase1.h"
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
44 void setVersion(const int ver) { m_ver = ver; }
45 void setHistNo(const int No) {m_histNo=No;}
46 void setHist(const vector<TH1F>* hist);
47 // void setHist(TH1F hist){m_hist->push_back(hist);}
48 void setRange(const vector<double>* hRange);
49 void setRangeNo(const int No) { m_bgNo = No; }
50 void setThetaNo(const int No) { m_thetaNo = No; }
51
52 private:
53 int m_ver;
54 int m_histNo;
55 int m_bgNo;
56 int m_thetaNo;
57 vector<TH1F>* m_hist;
58 vector<double>* m_hRange;
59 };
60}
61
62
63#endif
void setRange(const vector< double > *hRange)
Definition: DedxSimData.cxx:43
void setHist(const vector< TH1F > *hist)
Definition: DedxSimData.cxx:38