#include <calib_endcap_sigma.h>
◆ calib_endcap_sigma() [1/2]
calib_endcap_sigma::calib_endcap_sigma |
( |
const unsigned int |
nrbin | ) |
|
Definition at line 4 of file calib_endcap_sigma.cxx.
5
8
13
16
19
20 int numGraphs = 0;
23 numGraphs = numGraphs + (*iter);
24 }
26 cout << "tofcalgsec::calib_endcap_sigma: the number of Graphs is NOT reasonable!!!" << endl;
27 exit(0);
28 }
29
30 m_name = string(
"calib_endcap_sigma");
31
32 const int tbin = 150;
33 const double tbegin = -1.5;
34 const double tend = 1.5;
35
36
37 char hname[256];
38 for(
unsigned int i=0; i<
NEndcap; i++ ) {
40 for(
unsigned int j=0; j<
nKind; j++ ) {
42 sprintf( hname, "tleft-tofid%i-r%i", i, k);
43 m_histograms.push_back(
new TH1F( hname, hname, tbin, tbegin, tend ) );
44
46 }
47 }
48 }
49
54 rpos[i] =
rbegin + ( i+0.5 )*rstep;
55 rposerr[i] = 0.5*rstep;
56 }
57
58}
const unsigned int NEndcap
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
◆ ~calib_endcap_sigma() [1/2]
calib_endcap_sigma::~calib_endcap_sigma |
( |
| ) |
|
Definition at line 61 of file calib_endcap_sigma.cxx.
61 {
62 m_fitresult.clear();
63 rpos.clear();
64 rposerr.clear();
65}
◆ calib_endcap_sigma() [2/2]
calib_endcap_sigma::calib_endcap_sigma |
( |
const unsigned int |
nrbin | ) |
|
◆ ~calib_endcap_sigma() [2/2]
calib_endcap_sigma::~calib_endcap_sigma |
( |
| ) |
|
◆ calculate() [1/2]
void calib_endcap_sigma::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
Implements TofCalibFit.
Definition at line 68 of file calib_endcap_sigma.cxx.
68 {
69
70 std::cout << setiosflags(ios::left) << setw(10) << icounter << setw(8) <<
data->size() << setw(30) <<
name() << std::endl;
71
72 if(
data->size() > 0 ) {
73 std::vector<Record*>::iterator
iter =
data->begin();
75 fillRecord( (*
iter), icounter );
76 }
77 }
78 fitHistogram( icounter );
79 fillGraph( icounter );
80 fitGraph( icounter );
81
82 return;
83}
const string & name() const
◆ calculate() [2/2]
void calib_endcap_sigma::calculate |
( |
RecordSet *& |
data, |
|
|
unsigned int |
icounter |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: