CGEM BOSS 6.6.5.f
BESIII Offline Software System
Loading...
Searching...
No Matches
Calibration/CalibData/CalibData-00-01-09/CalibData/Dedx/DedxSimData.h
Go to the documentation of this file.
1// $Header: /bes/bes/BossCvs/Calibration/CalibData/CalibData/Dedx/DedxSimData.h,v 1.3 2011/02/17 05:10:16 maqm 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 getRangeNo() const { return m_bgNo; }
38 double getRange(int i) const{return *((m_hRange->begin())+i);}
39 int gethistNo() const{return m_histNo;}
40 TH1F getHist(int i) const{return *((m_hist->begin())+i);}
41
42 void setHistNo(const int No) {m_histNo=No;}
43 void setHist(const vector<TH1F>* hist);
44 // void setHist(TH1F hist){m_hist->push_back(hist);}
45 void setRange(const vector<double>* hRange);
46 void setRangeNo(const int No) { m_bgNo = No; }
47
48 private:
49 int m_histNo;
50 int m_bgNo;
51 vector<TH1F>* m_hist;
52 vector<double>* m_hRange;
53 };
54}
55
56
57#endif
void setRange(const vector< double > *hRange)
Definition: DedxSimData.cxx:42
void setHist(const vector< TH1F > *hist)
Definition: DedxSimData.cxx:37