#ifndef DTSummaryClients_H
#define DTSummaryClients_H

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

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"

#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Framework/interface/Run.h"

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

#include <memory>
#include <string>

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

  /// Destructor
  ~DTSummaryClients() override;

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

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

private:
  int nevents;

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

  bool bookingdone;
};

#endif
