17 throw_(
"Unsupported MonitorElement kind");
25 throw_(
"Unsupported binning");
67 unsigned nIds(ids.size());
69 for (
unsigned iId(0); iId < nIds; iId++)
72 for (
unsigned iId(0); iId < nIds; iId++)
78 int ieta(ttid.
ieta());
79 if (ieta < 18 && ieta > 0)
81 else if (ieta > -18 && ieta < 0)
98 mes_[iME]->Fill(_x, _w);
120 mes_[iME]->Fill(_x, _w);
135 unsigned nIds(ids.size());
138 for (
unsigned iId(0); iId < nIds; iId++) {
140 if (bins.find(
bin) != bins.end())
145 for (
unsigned iId(0); iId < nIds; iId++) {
147 if (bins.find(
bin) != bins.end())
171 int ieta(ttid.
ieta());
172 if (ieta < 18 && ieta > 0)
174 else if (ieta > -18 && ieta < 0)
196 unsigned nIds(ids.size());
199 for (
unsigned iId(0); iId < nIds; iId++) {
201 if (bins.find(
bin) != bins.end())
206 for (
unsigned iId(0); iId < nIds; iId++) {
208 if (bins.find(
bin) != bins.end())
232 int ieta(ttid.
ieta());
233 if (ieta < 18 && ieta > 0)
235 else if (ieta > -18 && ieta < 0)
257 unsigned nIds(ids.size());
260 for (
unsigned iId(0); iId < nIds; iId++) {
262 if (bins.find(
bin) != bins.end())
267 for (
unsigned iId(0); iId < nIds; iId++) {
269 if (bins.find(
bin) != bins.end())
293 int ieta(ttid.
ieta());
294 if (ieta < 18 && ieta > 0)
296 else if (ieta > -18 && ieta < 0)
344 int ieta(ttid.
ieta());
345 if (ieta < 18 && ieta > 0)
347 else if (ieta > -18 && ieta < 0)
395 int ieta(ttid.
ieta());
396 if (ieta < 18 && ieta > 0)
398 else if (ieta > -18 && ieta < 0)
446 int ieta(ttid.
ieta());
447 if (ieta < 18 && ieta > 0)
449 else if (ieta > -18 && ieta < 0)
MonitorElement::Kind kind_
void setBinEntries(DetId const &, double) override
void setBinContent(int binx, double content)
set content of bin (1-D)
void setBinError(DetId const &, double) override
virtual void checkME_(unsigned _iME) const
int ieta() const
get the tower ieta
bool isEndcapTTId(DetId const &)
~MESetProjection() override
double getBinError(DetId const &, int=0) const override
double getBinEntries(DetId const &, int=0) const override
void throw_(std::string const &_message) const
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const float crystalUnitToEta
void setBinError(int binx, double error)
set uncertainty on content of bin (1-D)
virtual void fill_(unsigned, int, double)
bin
set the eta bin as selection string.
unsigned findPlotIndex(ObjectType, DetId const &)
double getBinError(int binx) const
get uncertainty on content of bin (1-D) - See TH1::GetBinError for details
void fill(DetId const &, double=1., double=0., double=0.) override
double getBinContent(int binx) const
get content of bin (1-D)
MESet * clone(std::string const &="") const override
double getBinEntries(int bin) const
get # of bin entries (for profiles)
binning::ObjectType otype_
double getBinContent(DetId const &, int=0) const override
binning::BinningType btype_
MESetProjection(std::string const &, binning::ObjectType, binning::BinningType, MonitorElement::Kind, binning::AxisSpecs const *=0)
double eta(EBDetId const &)
double phi(EBDetId const &)
void setBinEntries(int bin, double nentries)
set # of bin entries (to be used for profiles)
void setBinContent(DetId const &, double) override
std::vector< MonitorElement * > mes_