BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-17/CalibData/Dedx/DedxSimData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxSimData.h,v 1.4 2016/06/16 03:16:14 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 gethistNo() const{return m_histNo;}
41 TH1F getHist(int i) const{return *((m_hist->begin())+i);}
42
43 void setVersion(const int ver) { m_ver = ver; }
44 void setHistNo(const int No) {m_histNo=No;}
45 void setHist(const vector<TH1F>* hist);
46 // void setHist(TH1F hist){m_hist->push_back(hist);}
47 void setRange(const vector<double>* hRange);
48 void setRangeNo(const int No) { m_bgNo = No; }
49
50 private:
51 int m_ver;
52 int m_histNo;
53 int m_bgNo;
54 vector<TH1F>* m_hist;
55 vector<double>* m_hRange;
56 };
57}
58
59
60#endif
void setRange(const vector< double > *hRange)
Definition: DedxSimData.cxx:43
void setHist(const vector< TH1F > *hist)
Definition: DedxSimData.cxx:38