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;
virtual void setCurrentFolder(std::string const &fullpath)
MonitorElement * hTotN_[2][2][40][40]
~ESPedestalClient() override
T getUntrackedParameter(std::string const &, T const &) const
void endJobAnalyze(DQMStore::IGetter &) override
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
virtual TH1F * getTH1F() const
virtual MonitorElement * get(std::string const &fullpath) const
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
void book(DQMStore::IBooker &) override
const std::string & fullPath() const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
ESPedestalClient(const edm::ParameterSet &)
MonitorElement * hPed_[2][2][40][40]