#include <ESIntegrityClient.h>
Definition at line 18 of file ESIntegrityClient.h.
Constructor.
Definition at line 13 of file ESIntegrityClient.cc.
References gather_cfg::cout, mergeVDriftHistosByStation::file, edm::ParameterSet::getUntrackedParameter(), i, j, gen::k, m, and detailsBasic3DVector::z.
23 for (
int i=0;
i<2; ++
i)
24 for (
int j=0;
j<2; ++
j)
25 for (
int k=0;
k<40; ++
k)
26 for (
int m=0;
m<40; ++
m) {
31 for (
int i=0;
i<56; ++
i) {
35 for (
int j=0;
j<36; ++
j)
39 int nLines_,
z, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
41 file.open(lookup_.fullPath().c_str());
42 if( file.is_open() ) {
46 for (
int i=0;
i<nLines_; ++
i) {
47 file>> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
50 fed_[z-1][ip-1][ix-1][iy-1] = fed;
51 kchip_[z-1][ip-1][ix-1][iy-1] = kchip;
52 fiber_[z-1][ip-1][ix-1][iy-1] = (fiber-1)+(optorx-1)*12;
56 cout<<
"ESIntegrityClient : Look up table file can not be found in "<<lookup_.fullPath().c_str()<<endl;
T getUntrackedParameter(std::string const &, T const &) const
ESIntegrityClient::~ESIntegrityClient |
( |
| ) |
|
|
virtual |
void ESIntegrityClient::analyze |
( |
void |
| ) |
|
|
virtual |
Analyze.
Implements ESClient.
Definition at line 141 of file ESIntegrityClient.cc.
References getHisto(), i, and j.
143 double nDI_FedErr[56];
144 for (
int i=0;
i<56; ++
i) nDI_FedErr[
i] = 0;
163 for (
int i=1;
i<=56; ++
i)
164 if (nevFEDs < hFED_->GetBinContent(
i))
165 nevFEDs = (int)
hFED_->GetBinContent(
i);
169 for (
int i=1;
i<=56; ++
i) {
171 if (
hFED_->GetBinContent(
i) > 0)
178 for (
int j=0;
j<36; ++
j) {
202 for (
int i=1;
i<=56; ++
i) {
226 Int_t kchip_xval[1550];
227 for (
int i=0;
i<1550; ++
i) {
231 for (
int j=1;
j<16; ++
j) {
233 if (
hKF1_->GetBinContent(
i,
j+1)>0) {
239 if (
hKF2_->GetBinContent(
i,
j+1)>0) {
246 if (
hKBC_->GetBinContent(
i)>0) {
252 if (
hKEC_->GetBinContent(
i)>0) {
257 if (kErr>1) xval = 7;
258 kchip_xval[
i] = xval;
262 for (
int iz=0; iz<2; ++iz)
263 for (
int ip=0; ip<2; ++ip)
264 for (
int ix=0; ix<40; ++ix)
265 for (
int iy=0; iy<40; ++iy) {
266 if (
fed_[iz][ip][ix][iy] == -1)
continue;
268 kchip_xval[
kchip_[iz][ip][ix][iy]-1] = 0;
269 if ((kchip_[iz][ip][ix][iy]-2) >= 0)
270 meKCHIP_[iz][ip]->setBinContent(ix+1, iy+1, kchip_xval[kchip_[iz][ip][ix][iy]-2]);
275 for (
int iz=0; iz<2; ++iz)
276 for (
int ip=0; ip<2; ++ip)
277 for (
int ix=0; ix<40; ++ix)
278 for (
int iy=0; iy<40; ++iy) {
280 if (
fed_[iz][ip][ix][iy] == -1)
continue;
286 if (
hFED_->GetBinContent(
fed_[iz][ip][ix][iy]-520+1) == nevFEDs)
301 if (kchip_xval[kchip_[iz][ip][ix][iy]-1] != 3 && kchip_xval[kchip_[iz][ip][ix][iy]-1] != 0) {
313 if (nErr > 1) xval = 7;
MonitorElement * meFED_[2][2]
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * meKCHIP_[2][2]
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
T * getHisto(MonitorElement *, bool=false, T *=0) const
void ESIntegrityClient::beginJob |
( |
DQMStore * |
dqmStore | ) |
|
|
virtual |
void ESIntegrityClient::beginRun |
( |
void |
| ) |
|
|
virtual |
void ESIntegrityClient::cleanup |
( |
void |
| ) |
|
|
virtual |
void ESIntegrityClient::endJob |
( |
void |
| ) |
|
|
virtual |
void ESIntegrityClient::endLumiAnalyze |
( |
void |
| ) |
|
|
inlinevirtual |
void ESIntegrityClient::endRun |
( |
void |
| ) |
|
|
virtual |
int ESIntegrityClient::getEvtPerJob |
( |
| ) |
|
|
inline |
int ESIntegrityClient::getEvtPerRun |
( |
| ) |
|
|
inline |
void ESIntegrityClient::setup |
( |
void |
| ) |
|
|
virtual |
Setup.
Implements ESClient.
Definition at line 114 of file ESIntegrityClient.cc.
References timingPdfMaker::histo, i, and j.
120 for (
int i=0 ;
i<2; ++
i)
121 for (
int j=0 ;
j<2; ++
j) {
122 int iz = (
i==0)? 1:-1;
123 snprintf(histo, 200,
"ES Integrity Summary 1 Z %d P %d", iz,
j+1);
128 snprintf(histo, 200,
"ES Integrity Summary 2 Z %d P %d", iz,
j+1);
MonitorElement * meFED_[2][2]
MonitorElement * meKCHIP_[2][2]
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void setCurrentFolder(const std::string &fullpath)
void ESIntegrityClient::softReset |
( |
bool |
flag | ) |
|
bool ESIntegrityClient::cloneME_ |
|
private |
bool ESIntegrityClient::debug_ |
|
private |
bool ESIntegrityClient::enableCleanup_ |
|
private |
int ESIntegrityClient::fed_[2][2][40][40] |
|
private |
int ESIntegrityClient::fedStatus_[56] |
|
private |
int ESIntegrityClient::fiber_[2][2][40][40] |
|
private |
int ESIntegrityClient::fiberStatus_[56][36] |
|
private |
TH1F* ESIntegrityClient::hBXDiff_ |
|
private |
TH1F* ESIntegrityClient::hFED_ |
|
private |
TH2F* ESIntegrityClient::hFiberBadStatus_ |
|
private |
TH2F* ESIntegrityClient::hFiberOff_ |
|
private |
TH1F* ESIntegrityClient::hKBC_ |
|
private |
TH1F* ESIntegrityClient::hKEC_ |
|
private |
TH2F* ESIntegrityClient::hKF1_ |
|
private |
TH2F* ESIntegrityClient::hKF2_ |
|
private |
TH1F* ESIntegrityClient::hL1ADiff_ |
|
private |
TH1F* ESIntegrityClient::hOrbitNumberDiff_ |
|
private |
TH1F* ESIntegrityClient::hSLinkCRCErr_ |
|
private |
int ESIntegrityClient::ievt_ |
|
private |
int ESIntegrityClient::jevt_ |
|
private |
int ESIntegrityClient::kchip_[2][2][40][40] |
|
private |
std::string ESIntegrityClient::prefixME_ |
|
private |
int ESIntegrityClient::slinkCRCStatus_[56] |
|
private |
int ESIntegrityClient::syncStatus_[56] |
|
private |
bool ESIntegrityClient::verbose_ |
|
private |