14
17
24
27 CanvasName.push_back(
static_cast<string>(
"Pulse Height Most Probable Value vs TOF Counter Number") );
28 CanvasName.push_back(
static_cast<string>(
"Pulse Height Sigma vs TOF Counter Number") );
31
32 int numGraphs1 = 0;
35 numGraphs1 = numGraphs1 + (*iter);
36 }
38 cout << "tofcalgsec::calib_endcap_atten: the number of Graphs is NOT reasonable!!!" << endl;
39 exit(0);
40 }
41 int numGraphs2 = 0;
44 numGraphs2 = numGraphs2 + (*iter);
45 }
47 cout << "tofcalgsec::calib_endcap_atten: the number of Graphs is NOT reasonable!!!" << endl;
48 exit(0);
49 }
50
51 m_name = string(
"calib_endcap_atten");
52
53 const int qbin = 100;
54 const double qbegin = 0.0;
55 const double qend = 5000.0;
56
57
58 char hname[256];
59 for(
unsigned int i=0; i<
NEndcap; i++ ) {
61 for( unsigned int k=0; k<nrbin; k++ ) {
62 sprintf( hname, "Q-id%i-r%i", i, k);
63 m_histograms.push_back(
new TH1F( hname, hname, qbin, qbegin, qend ) );
65 }
66 sprintf( hname, "Q0-id%i", i );
67 m_histograms.push_back(
new TH1F( hname, hname, qbin, qbegin, qend ) );
69 }
70
71 rpos.resize( nrbin );
72 rposerr.resize( nrbin );
74 for( unsigned int i=0; i<nrbin; i++ ) {
75 rpos[i] =
rbegin + ( i+0.5 )*rstep;
76 rposerr[i] = 0.5*rstep;
77 }
80 itofidstep = 1.0;
81 for(
unsigned int i=0; i<
NEndcap; i++ ) {
82 itofid[i] = i*1.0;
83 itofiderr[i] = 0.5;
84 }
85
86}
const unsigned int NEndcap
std::vector< string > CanvasPerCounterName
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
std::vector< unsigned int > nGraphPerCanvasPerCounter