#include <calib_barrel_q0.h>
◆ calib_barrel_q0() [1/2]
calib_barrel_q0::calib_barrel_q0 |
( |
| ) |
|
Definition at line 6 of file calib_barrel_q0.cxx.
7
10
13
18 CanvasName.push_back(
static_cast<string>(
"Most Probable Value of Q0 vs TOF counter Number (Barrel part)") );
19 CanvasName.push_back(
static_cast<string>(
"Sigma of Q0 vs TOF Counter Number (Barrel part)") );
22
23 m_name = string(
"calib_barrel_q0");
24
25 int numGraphs = 0;
28 numGraphs = numGraphs + (*iter);
29 }
31 cout << "tofcalgsec::calib_barrel_q0: the number of Graphs is NOT reasonable!!!" << endl;
32 exit(0);
33 }
34
35 const int qbin = 100;
36 const double qbegin = 0.0;
37 const double qend = 5000.0;
38
39
40 char hname[256];
41 for(
unsigned int i=0; i<
NBarrel; i++ ) {
43
44 sprintf( hname,
"Q0-tofid-%i", i );
45 m_histograms.push_back(
new TH1F( hname, hname, qbin, qbegin, qend ) );
46
47 m_fitresult.push_back( HepVector(
nParQ0,0) );
48 }
49
52 itofidstep = 1.0;
53 for(
unsigned int i=0; i<
NBarrel; i++ ) {
54 itofid[i] = i*1.0;
55 itofiderr[i] = 0.5;
56 }
57}
const unsigned int NBarrel
std::vector< TH1F * > m_histograms
unsigned int nBinPerCounter
std::vector< unsigned int > nGraphPerCanvas
std::vector< string > CanvasName
unsigned int nCanvasPerCounter
unsigned int nHistPerCounter
std::vector< HepVector > m_result
sprintf(cut,"kal_costheta0_em>-0.93&&kal_costheta0_em<0.93&&kal_pxy0_em>=0.05+%d*0.1&&kal_pxy0_em<0.15+%d*0.1&&NGch>=2", j, j)
◆ ~calib_barrel_q0() [1/2]
calib_barrel_q0::~calib_barrel_q0 |
( |
| ) |
|
Definition at line 60 of file calib_barrel_q0.cxx.
60 {
61 m_fitresult.clear();
62 itofid.clear();
63 itofiderr.clear();
64}
◆ calib_barrel_q0() [2/2]
calib_barrel_q0::calib_barrel_q0 |
( |
| ) |
|
◆ ~calib_barrel_q0() [2/2]
calib_barrel_q0::~calib_barrel_q0 |
( |
| ) |
|
◆ calculate() [1/2]
void calib_barrel_q0::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
Implements TofCalibFit.
Definition at line 67 of file calib_barrel_q0.cxx.
67 {
68
69 std::cout << setiosflags(ios::left) << setw(10) << icounter << setw(8) <<
data->size() << setw(30) <<
name() << std::endl;
70
71 if(
data->size() > 0 ) {
72 std::vector<Record*>::iterator
iter =
data->begin();
74 fillRecord( (*
iter), icounter );
75 }
76 }
77 fitHistogram( icounter );
78
80 fillGraph();
81 fitGraph();
82 }
83
84 return;
85}
const string & name() const
◆ calculate() [2/2]
void calib_barrel_q0::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: