41 for (
int i = 0;
i < 36;
i++) {
66 name =
"CertificationSummary";
70 name =
"CertificationSummaryMap";
77 for (
int i = 0;
i < 36;
i++) {
105 for (
int i = 0;
i < 36;
i++) {
112 me =
dqmStore_->
get(
prefixME_ +
"/EBStatusFlagsTask/FEStatus/EBSFT weighted frontend errors by lumi");
120 float integrityErrSum = 0.;
121 float integrityQual = 1.0;
122 float frontendErrSum = 0.;
123 float frontendQual = 1.0;
124 float synchronizationErrSum = 0.;
125 float synchronizationQual = 1.0;
127 for (
int i=0;
i<36;
i++) {
128 float ismIntegrityQual = 1.0;
132 integrityErrSum +=
errors;
134 float ismFrontendQual = 1.0;
140 float ismSynchronizationQual = 1.0;
144 synchronizationErrSum +=
errors;
146 float minVal=
std::min(ismIntegrityQual,ismFrontendQual);
147 DQMVal[
i] =
std::min(minVal,ismSynchronizationQual);
153 float minVal =
std::min(integrityQual,frontendQual);
154 float totDQMVal =
std::min(minVal,synchronizationQual);
157 if( me ) me->
Fill(totDQMVal);
158 for (
int i=0;
i<36;
i++) {
160 if( me ) me->
Fill(DQMVal[
i]);
164 for (
int iett = 0; iett < 34; iett++ ) {
165 for (
int iptt = 0; iptt < 72; iptt++ ) {
166 int ism = ( iett<17 ) ? iptt/4+1 : 18+iptt/4+1;
167 if( i == (ism-1) ) me->setBinContent(iptt+1, iett+1, DQMVal[ism-1]);
184 int nValidChannels = 0;
185 int nValidChannelsEB[36];
187 for (
int i = 0;
i < 36;
i++) {
189 nValidChannelsEB[
i] = 0;
192 for (
int iett = 0; iett < 34; iett++ ) {
193 for (
int iptt = 0; iptt < 72; iptt++ ) {
195 int ism = ( iett<17 ) ? iptt/4+1 : 18+iptt/4+1;
197 float xvalDQM = DQMVal[ism-1];
199 float xvalDAQ, xvalDCS;
200 xvalDAQ = xvalDCS = -1.;
203 if (
hDAQ_ ) xvalDAQ =
hDAQ_->GetBinContent( iptt+1, iett+1 );
204 if (
hDCS_ ) xvalDCS =
hDCS_->GetBinContent( iptt+1, iett+1 );
206 if ( xvalDQM == -1 || ( xvalDAQ == -1 && xvalDCS == -1 ) ) {
216 sumCertEB[ism-1] += xcert;
217 nValidChannelsEB[ism-1]++;
230 for (
int i = 0;
i < 36;
i++) {
262 int nValidChannels = 0;
263 int nValidChannelsEB[36];
265 for (
int i = 0;
i < 36;
i++) {
267 nValidChannelsEB[
i] = 0;
270 for (
int iett = 0; iett < 34; iett++ ) {
271 for (
int iptt = 0; iptt < 72; iptt++ ) {
273 float xvalDQM, xvalDAQ, xvalDCS;
274 xvalDQM = xvalDAQ = xvalDCS = -1.;
277 if (
hDQM_ ) xvalDQM =
hDQM_->GetBinContent( iptt+1, iett+1 );
278 if (
hDAQ_ ) xvalDAQ =
hDAQ_->GetBinContent( iptt+1, iett+1 );
279 if (
hDCS_ ) xvalDCS =
hDCS_->GetBinContent( iptt+1, iett+1 );
281 if ( xvalDQM == -1 || ( xvalDAQ == -1 && xvalDCS == -1 ) ) {
291 int ism = ( iett<17 ) ? iptt/4+1 : 18+iptt/4+1;
293 sumCertEB[ism-1] += xcert;
294 nValidChannelsEB[ism-1]++;
303 if( nValidChannels>0 ) {
310 for (
int i = 0;
i < 36;
i++) {
312 if( nValidChannelsEB[i]>0 ) {
326 for (
int i = 0;
i < 36;
i++) {
358 for (
int i = 0;
i < 36;
i++) {
T getUntrackedParameter(std::string const &, T const &) const
const std::string & getName(void) const
get name of ME
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
void setBinContent(int binx, double content)
set content of bin (1-D)
Some "id" conversions.
static std::string sEB(const unsigned ism)
MonitorElement * meEBDataCertificationSummary_
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
MonitorElement * bookFloat(const char *name)
Book float.
TH1F * hSynchronizationByLumi_
void cleanup(void)
Cleanup.
MonitorElement * meEBDataCertificationSummaryMap_
void removeElement(const std::string &name)
void endRun(const edm::Run &r, const edm::EventSetup &c)
EndRun.
Abs< T >::type abs(const T &t)
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
Ecal Monitor Utils for Client.
MonitorElement * meEBDataCertification_[36]
void beginJob(void)
BeginJob.
virtual ~EBDataCertificationTask()
Destructor.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
int ism(int ieta, int iphi)
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void Reset(void)
reset ME (ie. contents, errors, etc)
void setCurrentFolder(const std::string &fullpath)
EBDataCertificationTask(const edm::ParameterSet &ps)
Constructor.