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);
38 for (
int i = 0;
i < nLines; ++
i) {
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;
123 sprintf(hname,
"Total Noise Z %d P %d X %d Y %d",
senZ_[i],
senP_[i],
senX_[i], senY_[i]);
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * hTotN_[2][2][40][40]
~ESPedestalClient() override
void setCurrentFolder(std::string const &fullpath)
void endJobAnalyze(DQMStore::IGetter &) override
MonitorElement * book1D(Args &&...args)
MonitorElement * get(std::string const &path)
std::string fullPath() const
void book(DQMStore::IBooker &) override
ESPedestalClient(const edm::ParameterSet &)
MonitorElement * hPed_[2][2][40][40]