ContainerI

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
#ifndef ContainerI_h
#define ContainerI_h

#include "DQM/HcalCommon/interface/Container.h"

namespace hcaldqm {
  class ContainerI : public Container {
  public:
    ContainerI() : Container() {}
    ContainerI(std::string const &folder, std::string const &name) : Container(folder, name) {}
    ~ContainerI() override {}

    void initialize(std::string const &folder, std::string const &name, int debug = 0) override {
      _folder = folder;
      _qname = name;
      _logger.set(_qname, debug);
    }

    virtual void fill(int x) { _me->Fill(x); }

    virtual void book(DQMStore::IBooker &ib, std::string subsystem = "Hcal", std::string aux = "") {
      ib.setCurrentFolder(subsystem + "/" + _folder + aux);
      _me = ib.bookInt(_qname);
    }

  protected:
    MonitorElement *_me;
  };
}  // namespace hcaldqm

#endif