Skip to content

Commit f750a33

Browse files
committed
Apply code-format patch
1 parent 7d85734 commit f750a33

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

DQMServices/Core/interface/DQMStore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace dqm {
3636
virtual ~NavigatorBase() {}
3737

3838
protected:
39-
NavigatorBase(){};
39+
NavigatorBase() {};
4040
std::string cwd_ = "";
4141
};
4242

DQMServices/Core/interface/MonitorElement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ namespace dqm {
5757
static const int STATUS_OK = 100; //< Test was succesful.
5858
static const int WARNING = 200; //< Test had some problems.
5959
static const int ERROR = 300; //< Test has failed.
60-
} // namespace qstatus
60+
} // namespace qstatus
6161

6262
namespace me_util {
6363
using Channel = DQMChannel;

DQMServices/Demo/test/TestDQMEDAnalyzer.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class BookerFiller {
3434
mes_2D.push_back(ibooker.book2D("th2f" + num, "2D Float Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
3535
mes_2D.push_back(ibooker.book2S("th2s" + num, "2D Short Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
3636
mes_2D.push_back(ibooker.book2DD("th2d" + num, "2D Double Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
37-
mes_2D.push_back(ibooker.book2DPoly("th2poly" + num, "2D Polygonal Double Histogram " + num, -0.5, 100.5, -0.5, 10.5));
37+
mes_2D.push_back(
38+
ibooker.book2DPoly("th2poly" + num, "2D Polygonal Double Histogram " + num, -0.5, 100.5, -0.5, 10.5));
3839
mes_2D.push_back(ibooker.book2I("th2i" + num, "2D Integer Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
3940
mes_2D.push_back(
4041
ibooker.bookProfile("tprofile" + num, "1D Profile Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
@@ -58,7 +59,8 @@ class BookerFiller {
5859
mes_2D.push_back(ibooker.book2D("th2f" + num, "2D Float Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
5960
mes_2D.push_back(ibooker.book2S("th2s" + num, "2D Short Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
6061
mes_2D.push_back(ibooker.book2DD("th2d" + num, "2D Double Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
61-
mes_2D.push_back(ibooker.book2DPoly("th2poly" + num, "2D Polygonal Double Histogram " + num, -0.5, 100.5, -0.5, 10.5));
62+
mes_2D.push_back(
63+
ibooker.book2DPoly("th2poly" + num, "2D Polygonal Double Histogram " + num, -0.5, 100.5, -0.5, 10.5));
6264
mes_2D.push_back(ibooker.book2I("th2i" + num, "2D Integer Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));
6365
mes_2D.push_back(
6466
ibooker.bookProfile("tprofile" + num, "1D Profile Histogram " + num, 101, -0.5, 100.5, 11, -0.5, 10.5));

DataFormats/Histograms/interface/MEtoEDMFormat.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ class MEtoEDM {
122122
if (MEtoEdmObject[j].object.Merge(&list) == -1) {
123123
std::cout << "ERROR MEtoEDM::mergeProducts(): merge failed for '" << name << "'" << std::endl;
124124
}
125-
// } else if (MEtoEdmObject[j].object.IsA()->InheritsFrom("TH2Poly")) {
126-
// // ad-hoc addition because no matching function for call to 'TH2Poly::Add(const TH2Poly*)'
127-
// int nbins = MEtoEdmObject[j].object.GetNcells() - 9;
128-
// for(int ibin=1; ibin<nbins+1; ++ibin) {
129-
// double value1 = MEtoEdmObject[j].object.GetBinContent(ibin);
130-
// double value2 = newMEtoEDMObject[i].object.GetBinContent(ibin);
131-
// double total = value1 + value2;
132-
// MEtoEdmObject[j].object.SetBinContent(ibin, total);
133-
// }
125+
// } else if (MEtoEdmObject[j].object.IsA()->InheritsFrom("TH2Poly")) {
126+
// // ad-hoc addition because no matching function for call to 'TH2Poly::Add(const TH2Poly*)'
127+
// int nbins = MEtoEdmObject[j].object.GetNcells() - 9;
128+
// for(int ibin=1; ibin<nbins+1; ++ibin) {
129+
// double value1 = MEtoEdmObject[j].object.GetBinContent(ibin);
130+
// double value2 = newMEtoEDMObject[i].object.GetBinContent(ibin);
131+
// double total = value1 + value2;
132+
// MEtoEdmObject[j].object.SetBinContent(ibin, total);
133+
// }
134134
} else {
135135
// this value is also in the new container: add the two
136136
if (MEtoEdmObject[j].object.GetNbinsX() == newMEtoEDMObject[i].object.GetNbinsX() &&
@@ -394,11 +394,11 @@ inline bool MEtoEDM<TH2Poly>::mergeProduct(const MEtoEDM<TH2Poly> &newMEtoEDM) {
394394

395395
// ad-hoc addition because no matching function for call to 'TH2Poly::Add(const TH2Poly*)'
396396
int nbins = MEtoEdmObject[j].object.GetNcells() - 9;
397-
for(int ibin=1; ibin<nbins+1; ++ibin) {
398-
double value1 = MEtoEdmObject[j].object.GetBinContent(ibin);
399-
double value2 = newMEtoEDMObject[i].object.GetBinContent(ibin);
400-
double total = value1 + value2;
401-
MEtoEdmObject[j].object.SetBinContent(ibin, total);
397+
for (int ibin = 1; ibin < nbins + 1; ++ibin) {
398+
double value1 = MEtoEdmObject[j].object.GetBinContent(ibin);
399+
double value2 = newMEtoEDMObject[i].object.GetBinContent(ibin);
400+
double total = value1 + value2;
401+
MEtoEdmObject[j].object.SetBinContent(ibin, total);
402402
}
403403
}
404404
}

0 commit comments

Comments
 (0)