22
25
36
39
40 int numGraphs = 0;
43 numGraphs = numGraphs + (*iter);
44 }
46 cout << "tofcalgsec::calib_barrel_sigma: the number of Graphs is NOT reasonable!!!" << endl;
47 exit(0);
48 }
49
50 m_name = string(
"calib_barrel_sigma");
51
52 const int tbin = 150;
53 const double tbegin = -1.5;
54 const double tend = 1.5;
55
56
57 char hname[256];
58 for(
unsigned int i=0; i<
NBarrel; i++ ) {
60 for(
unsigned int j=0; j<
nKind; j++ ) {
62 if( j==0 ) { sprintf( hname, "tleft-id%i-z%i", i, k); }
63 else if( j==1 ) { sprintf( hname, "tright-id%i-z%i", i, k); }
64 else if( j==2 ) { sprintf( hname, "t0-id%i-z%i", i, k); }
65 else if( j==3 ) { sprintf( hname, "tplus-id%i-z%i", i, k); }
66 else if( j==4 ) { sprintf( hname, "tminus-id%i-z%i", i, k); }
67 m_histograms.push_back(
new TH1F( hname, hname, tbin, tbegin, tend ) );
68
69 m_fitresult.push_back( HepVector(
nParSigma,0) );
70 }
71 }
72 }
73
78 zpos[i] =
zbegin + ( i+0.5 )*zstep;
79 zposerr[i] = 0.5*zstep;
80 }
81
82}
const unsigned int NBarrel
const int nGraphTotalSigma
std::vector< string > CanvasPerCounterName
std::vector< TH1F * > m_histograms
unsigned int nBinPerCounter
unsigned int nCanvasPerCounter
unsigned int nHistPerCounter
std::vector< HepVector > m_result
std::vector< unsigned int > nGraphPerCanvasPerCounter