MESetProjection

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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
#ifndef MESetProjection_H
#define MESetProjection_H

#include "MESetEcal.h"

namespace ecaldqm {

  /* class MESetProjection
   MonitorElement wrapper for projection type 1D MEs
*/

  class MESetProjection : public MESetEcal {
  public:
    MESetProjection(std::string const &,
                    binning::ObjectType,
                    binning::BinningType,
                    MonitorElement::Kind,
                    binning::AxisSpecs const * = nullptr);
    MESetProjection(MESetProjection const &);
    ~MESetProjection() override;

    MESet *clone(std::string const & = "") const override;

    void fill(EcalDQMSetupObjects const, DetId const &, double = 1., double = 0., double = 0.) override;
    void fill(EcalDQMSetupObjects const, int, double = 1., double = 1., double = 0.) override;
    void fill(EcalDQMSetupObjects const, double, double = 1., double = 0.) override;

    using MESetEcal::setBinContent;
    void setBinContent(EcalDQMSetupObjects const, DetId const &, double) override;

    using MESetEcal::setBinError;
    void setBinError(EcalDQMSetupObjects const, DetId const &, double) override;

    using MESetEcal::setBinEntries;
    void setBinEntries(EcalDQMSetupObjects const, DetId const &, double) override;

    using MESetEcal::getBinContent;
    double getBinContent(EcalDQMSetupObjects const, DetId const &, int = 0) const override;

    using MESetEcal::getBinError;
    double getBinError(EcalDQMSetupObjects const, DetId const &, int = 0) const override;

    using MESetEcal::getBinEntries;
    double getBinEntries(EcalDQMSetupObjects const, DetId const &, int = 0) const override;

  private:
    using ecaldqm::MESetEcal::operator=;
  };
}  // namespace ecaldqm

#endif