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