Skip to content

Commit

Permalink
Merge pull request #8665 from BetterWang/ZDC_onlineDQM_75X
Browse files Browse the repository at this point in the history
ZDC DQM update for 75X
  • Loading branch information
cmsbuild committed Apr 13, 2015
2 parents c214e66 + c96a0f1 commit 117e6df
Show file tree
Hide file tree
Showing 11 changed files with 2,032 additions and 969 deletions.
102 changes: 102 additions & 0 deletions DQM/HcalMonitorClient/interface/ZDCMonitorClient.h
@@ -0,0 +1,102 @@
#ifndef ZDCMonitorClient_H
#define ZDCMonitorClient_H

// Update on September 21, 2012 to match HcalMonitorClient
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "CalibFormats/HcalObjects/interface/HcalDbService.h"

#include "DQM/HcalMonitorClient/interface/HcalBaseDQClient.h"
#include "DQM/HcalMonitorTasks/interface/HcalEtaPhiHists.h"
#include "DQM/HcalMonitorClient/interface/HcalSummaryClient.h"

class DQMStore;
//class TH2F;
//class TH1F;
//class TFile;

class ZDCMonitorClient : public HcalBaseDQClient {

public:

/// Constructors
//ZDCMonitorClient();
ZDCMonitorClient(std::string myname, const edm::ParameterSet& ps);

/// Destructor
virtual ~ZDCMonitorClient();

/// Analyze
virtual void analyze(DQMStore::IBooker &, DQMStore::IGetter &) override; // fill new histograms

/// BeginJob
// void beginJob();

/// EndJob
void endJob(void) override;

/// BeginRun
void beginRun() override;
// void beginRun(const edm::Run& r, const edm::EventSetup & c);

/// EndRun
// void endRun();
// void endRun(const edm::Run & r, const edm::EventSetup & c);

/// BeginLumiBlock
// void beginLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);

/// EndLumiBlock
// void endLuminosityBlock(const edm::LuminosityBlock & l, const edm::EventSetup & c);

/// Reset
void reset(void);

/// Setup
// void setup(void) override;

/// Cleanup
// void cleanup(void) override;

/// SoftReset
void softReset(bool flag);

// Write channelStatus info
void writeChannelStatus();

// Write html output
void writeHtml();

private:

int ievt_; // all events
int jevt_; // events in current run
int run_;
int evt_;
bool begin_run_;
bool end_run_;

// parameter set inputs

std::vector<double> ZDCGoodLumi_;
std::string ZDCsubdir_;

///////////////////New plots as of Fall 2012/////////////
int LumiCounter;
int PZDC_GoodLumiCounter;
int NZDC_GoodLumiCounter;
double PZDC_LumiRatio;
double NZDC_LumiRatio;

MonitorElement* ZDCChannelSummary_;
MonitorElement* ZDCHotChannelFraction_;
MonitorElement* ZDCColdChannelFraction_;
MonitorElement* ZDCDeadChannelFraction_;
MonitorElement* ZDCDigiErrorFraction_;
MonitorElement* ZDCReportSummary_;
/////////////new plots as of Fall 2012//////////////////
};

#endif
5 changes: 4 additions & 1 deletion DQM/HcalMonitorClient/src/HcalMonitorClient.cc
Expand Up @@ -21,6 +21,7 @@
#include "DQM/HcalMonitorClient/interface/HcalDetDiagNoiseMonitorClient.h"
#include "DQM/HcalMonitorClient/interface/HcalDetDiagTimingClient.h"
#include "DQM/HcalMonitorClient/interface/HcalCoarsePedestalClient.h"
#include "DQM/HcalMonitorClient/interface/ZDCMonitorClient.h"

#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
Expand Down Expand Up @@ -96,7 +97,7 @@ HcalMonitorClient::HcalMonitorClient(const edm::ParameterSet& ps)

// Add all relevant clients
clients_.clear();
clients_.reserve(14); // any reason to reserve ahead of time?
clients_.reserve(15); // any reason to reserve ahead of time?
summaryClient_=0;

clients_.push_back(new HcalBaseDQClient((std::string)"HcalMonitorModule",ps));
Expand Down Expand Up @@ -128,6 +129,8 @@ HcalMonitorClient::HcalMonitorClient(const edm::ParameterSet& ps)
clients_.push_back(new HcalDetDiagTimingClient((std::string)"DetDiagTimingMonitor",ps));
if (find(enabledClients_.begin(), enabledClients_.end(),"CoarsePedestalMonitor")!=enabledClients_.end())
clients_.push_back(new HcalCoarsePedestalClient((std::string)"CoarsePedestalMonitor",ps));
if (find(enabledClients_.begin(), enabledClients_.end(),"ZDCMonitor")!=enabledClients_.end())
clients_.push_back(new ZDCMonitorClient((std::string)"ZDCMonitor",ps));

if (find(enabledClients_.begin(), enabledClients_.end(),"Summary")!=enabledClients_.end())
summaryClient_ = new HcalSummaryClient((std::string)"ReportSummaryClient",ps);
Expand Down

0 comments on commit 117e6df

Please sign in to comment.