#ifndef DTOfflineSummaryClients_H
#define DTOfflineSummaryClients_H

/** \class DTOfflineSummaryClients
 * *
 *  DQM Client for global summary
 *
 *  \author  M. Pelliccioni - INFN Torino
 *
 *  threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my
 *
 *   
 */

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "DQMServices/Core/interface/DQMStore.h"

#include "DQMServices/Core/interface/DQMEDHarvester.h"

class DTOfflineSummaryClients : public DQMEDHarvester {
public:
  /// Constructor
  DTOfflineSummaryClients(const edm::ParameterSet &ps);

  /// Destructor
  ~DTOfflineSummaryClients() override;

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

  /// EndLumi
  void dqmEndLuminosityBlock(DQMStore::IBooker &,
                             DQMStore::IGetter &,
                             edm::LuminosityBlock const &,
                             edm::EventSetup const &) override;

  /// EndJob
  void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;

protected:
private:
  int nevents;

  bool bookingdone;

  MonitorElement *summaryReport;
  MonitorElement *summaryReportMap;
  std::vector<MonitorElement *> theSummaryContents;
};

#endif
