#include <ESPedestalClient.h>
Definition at line 20 of file ESPedestalClient.h.
ESPedestalClient::~ESPedestalClient |
( |
| ) |
|
|
virtual |
void ESPedestalClient::analyze |
( |
void |
| ) |
|
|
virtual |
void ESPedestalClient::beginJob |
( |
DQMStore * |
dqmStore | ) |
|
|
virtual |
void ESPedestalClient::beginRun |
( |
void |
| ) |
|
|
virtual |
void ESPedestalClient::cleanup |
( |
void |
| ) |
|
|
virtual |
void ESPedestalClient::endJob |
( |
void |
| ) |
|
|
virtual |
Implements ESClient.
Definition at line 59 of file ESPedestalClient.cc.
References edm::cleanup(), gather_cfg::cout, MonitorElement::getTH1F(), and i.
61 if (
debug_ )
cout <<
"ESPedestalClient: endJob, ievt = " <<
ievt_ << endl;
68 if (
verbose_ )
cout<<
"ESPedestalClient: Fit Pedestal"<<endl;
74 for (
int is=0; is<32; ++is) {
76 string dirname =
prefixME_ +
"/ESPedestalTask/";
80 if (meFit==0)
continue;
81 TH1F *rootHisto = meFit->
getTH1F();
82 rootHisto->Fit(
"fg",
"Q",
"", 500, 1800);
83 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;
98 for (
int is=0; is<32; ++is) {
100 string dirname =
prefixME_ +
"/ESPedestalTask/";
104 if (meMean==0)
continue;
105 TH1F *rootHisto = meMean->
getTH1F();
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * hTotN_[2][2][40][40]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
TH1F * getTH1F(void) const
MonitorElement * hPed_[2][2][40][40]
void ESPedestalClient::endLumiAnalyze |
( |
void |
| ) |
|
|
inlinevirtual |
void ESPedestalClient::endRun |
( |
void |
| ) |
|
|
virtual |
int ESPedestalClient::getEvtPerJob |
( |
| ) |
|
|
inline |
int ESPedestalClient::getEvtPerRun |
( |
| ) |
|
|
inline |
void ESPedestalClient::setup |
( |
void |
| ) |
|
|
virtual |
Implements ESClient.
Definition at line 124 of file ESPedestalClient.cc.
References gather_cfg::cout, rpc-layouts::fed, mergeVDriftHistosByStation::file, and i.
127 int iz, ip, ix, iy,
fed, kchip, pace, bundle, fiber, optorx;
131 if( file.is_open() ) {
136 file>> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
145 cout<<
"ESPedestalClient : Look up table file can not be found in "<<
lookup_.
fullPath().c_str()<<endl;
159 sprintf(hname,
"Total Noise Z %d P %d X %d Y %d",
senZ_[
i],
senP_[i],
senX_[i], senY_[i]);
163 fg =
new TF1(
"fg",
"gaus");
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * hTotN_[2][2][40][40]
std::string fullPath() const
void setCurrentFolder(const std::string &fullpath)
MonitorElement * hPed_[2][2][40][40]
bool ESPedestalClient::debug_ |
|
private |
bool ESPedestalClient::enableCleanup_ |
|
private |
TF1* ESPedestalClient::fg |
|
private |
bool ESPedestalClient::fitPedestal_ |
|
private |
int ESPedestalClient::ievt_ |
|
private |
int ESPedestalClient::jevt_ |
|
private |
int ESPedestalClient::nLines_ |
|
private |
std::string ESPedestalClient::prefixME_ |
|
private |
int ESPedestalClient::senP_[4288] |
|
private |
int ESPedestalClient::senX_[4288] |
|
private |
int ESPedestalClient::senY_[4288] |
|
private |
int ESPedestalClient::senZ_[4288] |
|
private |
bool ESPedestalClient::verbose_ |
|
private |