Skip to content

Commit f75b859

Browse files
committed
Fix code format
1 parent f15d302 commit f75b859

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

DQM/HcalTasks/plugins/ZDCQIE10Task.cc

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
213213

214214
histoname = "EM_P_" + std::to_string(channel);
215215
ib.setCurrentFolder("Hcal/ZDCQIE10Task/TDC_perChannel");
216-
_cTDC_EChannel[didp()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150,0,150);
216+
_cTDC_EChannel[didp()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150, 0, 150);
217217
_cTDC_EChannel[didp()]->setAxisTitle("TDC", 1);
218218
_cTDC_EChannel[didp()]->setAxisTitle("N", 2);
219219

@@ -242,7 +242,7 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
242242

243243
histoname = "EM_M_" + std::to_string(channel);
244244
ib.setCurrentFolder("Hcal/ZDCQIE10Task/TDC_perChannel");
245-
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150,0,150);
245+
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150, 0, 150);
246246
_cTDC_EChannel[didm()]->setAxisTitle("TDC", 1);
247247
_cTDC_EChannel[didm()]->setAxisTitle("N", 2);
248248
}
@@ -252,9 +252,14 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
252252
// EM Minus
253253
HcalZDCDetId didm(HcalZDCDetId::EM, false, channel);
254254

255-
std::vector<std::string> stationString = {"Station2_Top", "Station2_Bottom", "Station3_BottomLeft","Station3_BottomRight", "Station3_TopLeft", "Station3_TopRight"};
256-
257-
histoname = "FSC_M_" + stationString.at(channel-7);
255+
std::vector<std::string> stationString = {"Station2_Top",
256+
"Station2_Bottom",
257+
"Station3_BottomLeft",
258+
"Station3_BottomRight",
259+
"Station3_TopLeft",
260+
"Station3_TopRight"};
261+
262+
histoname = "FSC_M_" + stationString.at(channel - 7);
258263
ib.setCurrentFolder("Hcal/ZDCQIE10Task/ADC_perChannel");
259264
_cADC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 256, 0, 256);
260265
_cADC_EChannel[didm()]->setAxisTitle("ADC", 1);
@@ -264,7 +269,7 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
264269
_cADC_vs_TS_EChannel[didm()]->setAxisTitle("TS", 1);
265270
_cADC_vs_TS_EChannel[didm()]->setAxisTitle("sum ADC", 2);
266271

267-
histoname = "FSC_M_" + stationString.at(channel-7);
272+
histoname = "FSC_M_" + stationString.at(channel - 7);
268273
ib.setCurrentFolder("Hcal/ZDCQIE10Task/fC_perChannel");
269274
_cfC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 100, 0, 8000);
270275
_cfC_EChannel[didm()]->setAxisTitle("fC", 1);
@@ -274,9 +279,9 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
274279
_cfC_vs_TS_EChannel[didm()]->setAxisTitle("TS", 1);
275280
_cfC_vs_TS_EChannel[didm()]->setAxisTitle("sum fC", 2);
276281

277-
histoname = "FSC_M_" + stationString.at(channel-7);
282+
histoname = "FSC_M_" + stationString.at(channel - 7);
278283
ib.setCurrentFolder("Hcal/ZDCQIE10Task/TDC_perChannel");
279-
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150,0,150);
284+
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150, 0, 150);
280285
_cTDC_EChannel[didm()]->setAxisTitle("TDC", 1);
281286
_cTDC_EChannel[didm()]->setAxisTitle("N", 2);
282287
}
@@ -307,7 +312,7 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
307312

308313
histoname = "HAD_P_" + std::to_string(channel);
309314
ib.setCurrentFolder("Hcal/ZDCQIE10Task/TDC_perChannel");
310-
_cTDC_EChannel[didp()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150,0,150);
315+
_cTDC_EChannel[didp()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150, 0, 150);
311316
_cTDC_EChannel[didp()]->setAxisTitle("TDC", 1);
312317
_cTDC_EChannel[didp()]->setAxisTitle("N", 2);
313318

@@ -335,7 +340,7 @@ ZDCQIE10Task::ZDCQIE10Task(edm::ParameterSet const& ps)
335340
_cfC_vs_TS_EChannel[didm()]->setAxisTitle("sum fC", 2);
336341

337342
histoname = "HAD_M_" + std::to_string(channel);
338-
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150,0,150);
343+
_cTDC_EChannel[didm()] = ib.book1DD(histoname.c_str(), histoname.c_str(), 150, 0, 150);
339344
_cTDC_EChannel[didm()]->setAxisTitle("TDC", 1);
340345
_cTDC_EChannel[didm()]->setAxisTitle("N", 2);
341346
}
@@ -500,8 +505,10 @@ void ZDCQIE10Task::_process(edm::Event const& e, edm::EventSetup const& es) {
500505
float tmp_tdctime = 0;
501506
// TDC error codes will be 60=-1, 61 = -2, 62 = -3, 63 = -4
502507
// assume max amplitude should occur in TS2
503-
if (digi[i].le_tdc() >= 60) tmp_tdctime = -1 * (digi[i].le_tdc() - 59);
504-
else tmp_tdctime = 50. + (digi[i].le_tdc() / 2);
508+
if (digi[i].le_tdc() >= 60)
509+
tmp_tdctime = -1 * (digi[i].le_tdc() - 59);
510+
else
511+
tmp_tdctime = 50. + (digi[i].le_tdc() / 2);
505512
_cTDC_EChannel[did()]->Fill(tmp_tdctime);
506513
}
507514
if (_cADC_vs_TS_EChannel.find(did()) != _cADC_vs_TS_EChannel.end()) {

0 commit comments

Comments
 (0)