BaseBTagPlotter

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
#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