23
26
37
40
41 int numGraphs = 0;
44 numGraphs = numGraphs + (*iter);
45 }
47 cout << "tofcalgsec::calib_barrel_sigma: the number of Graphs is NOT reasonable!!!" << endl;
48 exit(0);
49 }
50
51 m_name = string(
"calib_barrel_sigma");
52
53 const int tbin = 150;
54 const double tbegin = -1.5;
55 const double tend = 1.5;
56
57
58 char hname[256];
59 for(
unsigned int i=0; i<
NBarrel; i++ ) {
61 for(
unsigned int j=0; j<
nKind; j++ ) {
63 if( j==0 ) { sprintf( hname, "tleft-id%i-z%i", i, k); }
64 else if( j==1 ) { sprintf( hname, "tright-id%i-z%i", i, k); }
65 else if( j==2 ) { sprintf( hname, "t0-id%i-z%i", i, k); }
66 else if( j==3 ) { sprintf( hname, "tplus-id%i-z%i", i, k); }
67 else if( j==4 ) { sprintf( hname, "tminus-id%i-z%i", i, k); }
68 m_histograms.push_back(
new TH1F( hname, hname, tbin, tbegin, tend ) );
69
70 m_fitresult.push_back( HepVector(
nParSigma,0) );
71 }
72 }
73 }
74
79 zpos[i] =
zbegin + ( i+0.5 )*zstep;
80 zposerr[i] = 0.5*zstep;
81 }
82
83}
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