15 fitPedestal_(ps.getUntrackedParameter<
bool>(
"fitPedestal")),
16 fg_(new
TF1(
"fg",
"gaus")),
21 for (
int i = 0;
i < 2;
i++)
22 for (
int j = 0;
j < 2;
j++)
23 for (
int k = 0;
k < 40;
k++)
24 for (
int m = 0;
m < 40;
m++) {
32 int nLines, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
33 ifstream
file(lutPath);
39 file >> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
49 cout <<
"ESPedestalClient : Look up table file can not be found in " << lutPath << endl;
57 cout <<
"ESPedestalClient: endJob" << endl;
64 cout <<
"ESPedestalClient: Fit Pedestal" << endl;
66 for (
unsigned i = 0;
i <
senZ_.size(); ++
i) {
67 iz = (
senZ_[
i] == 1) ? 0 : 1;
69 for (
int is = 0; is < 32; ++is) {
76 TH1F *rootHisto = meFit->
getTH1F();
78 rootHisto->Fit(
fg_,
"Q",
"", 500, 1800);
82 fg_->GetParameter(1) - 2. *
fg_->GetParameter(2),
83 fg_->GetParameter(1) + 2. *
fg_->GetParameter(2));
91 cout <<
"ESPedestalClient: Use Histogram Mean" << endl;
93 for (
unsigned i = 0;
i <
senZ_.size(); ++
i) {
94 iz = (
senZ_[
i] == 1) ? 0 : 1;
96 for (
int is = 0; is < 32; ++is) {
101 if (meMean ==
nullptr)
103 TH1F *rootHisto = meMean->
getTH1F();
117 for (
unsigned i = 0;
i <
senZ_.size(); ++
i) {
118 int iz = (
senZ_[
i] == 1) ? 0 : 1;