#ifndef BaseBTagPlotter_H
#define BaseBTagPlotter_H

#include "DQMOffline/RecoB/interface/EtaPtBin.h"
#include "DQMOffline/RecoB/interface/EffPurFromHistos.h"

#include <string>

class BaseBTagPlotter {
public:
  typedef dqm::legacy::DQMStore DQMStore;
  typedef dqm::legacy::MonitorElement MonitorElement;

  BaseBTagPlotter(const std::string& tagName, const EtaPtBin& etaPtBin)
      : etaPtBin_(etaPtBin), tagName_(tagName), theExtensionString("_" + tagName + etaPtBin.getDescriptionString()){};

  virtual ~BaseBTagPlotter(){};

  const EtaPtBin& etaPtBin() { return etaPtBin_; }

  // final computation, plotting, printing .......
  virtual void finalize(DQMStore::IBooker& ibook_, DQMStore::IGetter& igetter_) = 0;

  virtual void epsPlot(const std::string& name) = 0;

  virtual void psPlot(const std::string& name) = 0;

protected:
  // the extension string to be used in histograms etc.
  const EtaPtBin etaPtBin_;
  const std::string tagName_, theExtensionString;
};

#endif
