#include <calib_etf_bunch.h>
◆ calib_etf_bunch() [1/2]
calib_etf_bunch::calib_etf_bunch |
( |
const unsigned int |
nbunch | ) |
|
Definition at line 4 of file calib_etf_bunch.cxx.
5
8
13 CanvasName.push_back(
static_cast<string>(
"Offset-bunch0") );
14 CanvasName.push_back(
static_cast<string>(
"Offset-bunch1") );
15 CanvasName.push_back(
static_cast<string>(
"Offset-bunch2") );
16 CanvasName.push_back(
static_cast<string>(
"Offset-bunch3") );
17 CanvasName.push_back(
static_cast<string>(
"Sigma-bunch0") );
18 CanvasName.push_back(
static_cast<string>(
"Sigma-bunch1") );
19 CanvasName.push_back(
static_cast<string>(
"Sigma-bunch2") );
20 CanvasName.push_back(
static_cast<string>(
"Sigma-bunch3") );
21
30
31 int numGraphs = 0;
34 numGraphs = numGraphs + (*iter);
35 }
37 cout << "tofcalgsec::calib_barrel_common: the number of Graphs is NOT reasonable!!!" << endl;
38 exit(0);
39 }
40
41 m_name = string(
"calib_etf_bunch");
42
43 const int tbin = 160;
44 const double tbegin = -0.8;
45 const double tend = 0.8;
46
47 char hname[256];
48
49 for( unsigned int j=0; j<4; j++ ) {
51 if( k==0 ) {
sprintf( hname,
"tleft-bunch%i", j); }
52 else if( k==1 ) {
sprintf( hname,
"tright-bunch%i", j); }
53 else if( k==2 ) {
sprintf( hname,
"tcombine-bunch%i", j); }
55 m_histograms.push_back(
new TH1F( hname, hname, tbin, tbegin, tend ) );
56 }
57 }
59
63 modpos[i] = 1.0*i;
64 modposerr[i] = 0.5;
65 }
66
67 return;
68}
const int nGraphTotalBunch
std::vector< TH1F * > m_histograms
unsigned int nBinPerCounter
std::vector< unsigned int > nGraphPerCanvas
std::vector< string > CanvasName
unsigned int nCanvasPerCounter
unsigned int nHistPerCounter
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_etf_bunch() [1/2]
calib_etf_bunch::~calib_etf_bunch |
( |
| ) |
|
Definition at line 71 of file calib_etf_bunch.cxx.
71 {
72 m_fitresult.clear();
73 modpos.clear();
74 modposerr.clear();
75}
◆ calib_etf_bunch() [2/2]
calib_etf_bunch::calib_etf_bunch |
( |
const unsigned int |
nbunch | ) |
|
◆ ~calib_etf_bunch() [2/2]
calib_etf_bunch::~calib_etf_bunch |
( |
| ) |
|
◆ calculate() [1/2]
void calib_etf_bunch::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
ibunch |
|
) |
| |
|
virtual |
Implements TofCalibFit.
Definition at line 78 of file calib_etf_bunch.cxx.
78 {
79
80 std::cout << setiosflags(ios::left) << setw(10) << icounter << setw(8) <<
data->size() << setw(30) <<
name() << std::endl;
81
82 if(
data->size() > 0 ) {
83 std::vector<Record*>::iterator
iter =
data->begin();
85 fillRecord( (*
iter) );
86 }
87 }
88
90 fitHistogram();
91 fillGraph();
92 fitGraph();
93 }
94
95 return;
96}
const unsigned int NStrip
const string & name() const
◆ calculate() [2/2]
void calib_etf_bunch::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
ibunch |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: