15 fitPedestal_(ps.getUntrackedParameter<bool>(
"fitPedestal")),
16 fg_(new TF1(
"fg",
"gaus")),
22 for (
int i=0;
i<2;
i++)
23 for (
int j=0; j<2; j++)
24 for (
int k=0;
k<40;
k++)
25 for (
int m=0;
m<40;
m++) {
33 int nLines, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
34 ifstream
file(lutPath);
36 if( file.is_open() ) {
40 for (
int i=0;
i<nLines; ++
i) {
41 file>> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
51 cout<<
"ESPedestalClient : Look up table file can not be found in "<<lutPath<<endl;
61 if (
debug_ )
cout <<
"ESPedestalClient: endJob" << endl;
68 if (
verbose_ )
cout<<
"ESPedestalClient: Fit Pedestal"<<endl;
70 for (
unsigned i=0;
i<
senZ_.size(); ++
i) {
74 for (
int is=0; is<32; ++is) {
80 if (meFit==0)
continue;
81 TH1F *rootHisto = meFit->
getTH1F();
83 rootHisto->Fit(
fg_,
"Q",
"", 500, 1800);
84 rootHisto->Fit(
fg_,
"RQ",
"",
fg_->GetParameter(1)-2.*
fg_->GetParameter(2),
fg_->GetParameter(1)+2.*
fg_->GetParameter(2));
92 if (
verbose_ )
cout<<
"ESPedestalClient: Use Histogram Mean"<<endl;
94 for (
unsigned i=0;
i<
senZ_.size(); ++
i) {
98 for (
int is=0; is<32; ++is) {
104 if (meMean==0)
continue;
105 TH1F *rootHisto = meMean->
getTH1F();
121 for (
unsigned i=0;
i<
senZ_.size(); ++
i) {
123 int iz = (
senZ_[
i]==1) ? 0:1;
128 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]
MonitorElement * get(const std::string &path)
void endJobAnalyze(DQMStore::IGetter &) override
MonitorElement * book1D(Args &&...args)
void setCurrentFolder(const std::string &fullpath)
TH1F * getTH1F(void) const
std::string fullPath() const
void book(DQMStore::IBooker &) override
ESPedestalClient(const edm::ParameterSet &)
MonitorElement * hPed_[2][2][40][40]