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<
nKind; 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