#include <calib_barrel_sigma.h>
◆ calib_barrel_sigma() [1/2]
calib_barrel_sigma::calib_barrel_sigma |
( |
const unsigned int |
nzbin | ) |
|
Definition at line 22 of file calib_barrel_sigma.cxx.
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
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_barrel_sigma() [1/2]
calib_barrel_sigma::~calib_barrel_sigma |
( |
| ) |
|
Definition at line 86 of file calib_barrel_sigma.cxx.
86 {
87 m_fitresult.clear();
88 zpos.clear();
89 zposerr.clear();
90}
◆ calib_barrel_sigma() [2/2]
calib_barrel_sigma::calib_barrel_sigma |
( |
const unsigned int |
nzbin | ) |
|
◆ ~calib_barrel_sigma() [2/2]
calib_barrel_sigma::~calib_barrel_sigma |
( |
| ) |
|
◆ calculate() [1/2]
void calib_barrel_sigma::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
Implements TofCalibFit.
Definition at line 93 of file calib_barrel_sigma.cxx.
93 {
94
95 std::cout << setiosflags(ios::left) << setw(10) << icounter << setw(8) <<
data->size() << setw(30) <<
name() << std::endl;
96
97 if(
data->size() > 0 ) {
98 std::vector<Record*>::iterator
iter =
data->begin();
100 fillRecord( (*
iter), icounter );
101 }
102 }
103 fitHistogram( icounter );
104 fillGraph( icounter );
105 fitGraph( icounter );
106
107 if(
data->size() > 0 ) {
108 std::vector<Record*>::iterator
iter =
data->begin();
110 updateData( (*
iter), icounter );
111 fillRecordT0( (*
iter), icounter );
112 }
113 }
114 fitHistogramT0( icounter );
115 fillGraphT0( icounter );
116 fitGraphT0( icounter );
117
118 return;
119}
const string & name() const
◆ calculate() [2/2]
void calib_barrel_sigma::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: