Skip to content

Commit 5a36cdf

Browse files
committed
[L1] apply code-format
1 parent 068c41b commit 5a36cdf

File tree

5 files changed

+26
-16
lines changed

5 files changed

+26
-16
lines changed

L1Trigger/GlobalMuonTrigger/src/L1MuGMTMIAUPhiPro1LUT.cc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,25 @@ unsigned L1MuGMTMIAUPhiPro1LUT::TheLookupFunction(
115115
if (charge == 0 && calophi < 0.) { // plus charge
116116
edm::LogWarning("LUTMismatch")
117117
<< "warning: calo offset goes into wrong direction. charge is plus and calophi < 0deg" << endl
118-
<< "SYS=" << (isys == 0 ? "DT" : isys == 1 ? "CSC" : isys == 2 ? "BRPC" : "FRPC") << " ISO = " << isISO
119-
<< " etabin = " << eta << " pval = "
118+
<< "SYS="
119+
<< (isys == 0 ? "DT"
120+
: isys == 1 ? "CSC"
121+
: isys == 2 ? "BRPC"
122+
: "FRPC")
123+
<< " ISO = " << isISO << " etabin = " << eta << " pval = "
120124
<< theTriggerPtScale->getPtScale()->getLowEdge(pt)
121125
// << " pval = " << theTriggerScales->getPtScale()->getLowEdge(pt)
122126
<< " charge = " << (charge == 0 ? "pos" : "neg") << " phi_fine = " << phi_fine
123127
<< " calophi(deg) = " << calophi * 180. / M_PI << endl;
124128
} else if (charge == 1 && calophi > 20. / 180. * M_PI) { // neg charge
125129
edm::LogWarning("LUTMismatch")
126130
<< "warning: calo offset goes into wrong direction. charge is minus and calophi > 20deg" << endl
127-
<< "SYS=" << (isys == 0 ? "DT" : isys == 1 ? "CSC" : isys == 2 ? "BRPC" : "FRPC") << " ISO = " << isISO
128-
<< " etabin = " << eta << " pval = "
131+
<< "SYS="
132+
<< (isys == 0 ? "DT"
133+
: isys == 1 ? "CSC"
134+
: isys == 2 ? "BRPC"
135+
: "FRPC")
136+
<< " ISO = " << isISO << " etabin = " << eta << " pval = "
129137
<< theTriggerPtScale->getPtScale()->getLowEdge(pt)
130138
// << " pval = " << theTriggerScales->getPtScale()->getLowEdge(pt)
131139
<< " charge = " << (charge == 0 ? "pos" : "neg") << " phi_fine = " << phi_fine

L1Trigger/GlobalTriggerAnalyzer/interface/L1GtUtils.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,12 @@ L1GtUtils::L1GtUtils(edm::ParameterSet const& pset,
540540
UseEventSetupIn useEventSetupIn)
541541
: L1GtUtils(iC, useEventSetupIn) {
542542
m_l1GtUtilsHelper = std::make_unique<L1GtUtilsHelper>(pset,
543-
iC,
544-
useL1GtTriggerMenuLite,
545-
module,
546-
l1GtRecordInputTag,
547-
l1GtReadoutRecordInputTag,
548-
l1GtTriggerMenuLiteInputTag);
543+
iC,
544+
useL1GtTriggerMenuLite,
545+
module,
546+
l1GtRecordInputTag,
547+
l1GtReadoutRecordInputTag,
548+
l1GtTriggerMenuLiteInputTag);
549549
}
550550

551551
#endif /*GlobalTriggerAnalyzer_L1GtUtils_h*/

L1Trigger/L1TCalorimeter/interface/CaloParamsHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ namespace l1t {
495495
if (pnode_[hiCentrality].version_ == 1 && pnode_[hiCentrality].iparams_.size() == 5) {
496496
std::vector<int> newVec;
497497
newVec.reserve(4);
498-
for (int i = 0; i < 4; i++) {
498+
for (int i = 0; i < 4; i++) {
499499
newVec.push_back(pnode_[hiCentrality].iparams_.at(i + 1));
500500
}
501501
return newVec;

L1Trigger/L1TGlobal/src/GlobalDefinitions.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ namespace {
3333

3434
template <class T>
3535
constexpr T keyToValue(char const *label, entry<T> const *entries) {
36-
return !entries->label ? entries->value
37-
: same(entries->label, label) ? entries->value : /*default*/ keyToValue(label, entries + 1);
36+
return !entries->label ? entries->value
37+
: same(entries->label, label) ? entries->value
38+
: /*default*/ keyToValue(label, entries + 1);
3839
}
3940

4041
template <class T>
4142
constexpr char const *valueToKey(T value, entry<T> const *entries) {
42-
return !entries->label ? entries->label
43-
: entries->value == value ? entries->label : /*default*/ valueToKey(value, entries + 1);
43+
return !entries->label ? entries->label
44+
: entries->value == value ? entries->label
45+
: /*default*/ valueToKey(value, entries + 1);
4446
}
4547
constexpr entry<l1t::L1GtBoardType> l1GtBoardTypeStringToEnumMap[] = {
4648
{"l1t::MP7", l1t::MP7}, {"l1t::BoardNull", l1t::BoardNull}, {nullptr, (l1t::L1GtBoardType)-1}};

L1TriggerConfig/L1TConfigProducers/src/CaloParamsHelperO2O.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ namespace l1t {
517517
if (pnode_[hiCentrality].version_ == 1 && pnode_[hiCentrality].iparams_.size() == 5) {
518518
std::vector<int> newVec;
519519
newVec.reserve(4);
520-
for (int i = 0; i < 4; i++) {
520+
for (int i = 0; i < 4; i++) {
521521
newVec.push_back(pnode_[hiCentrality].iparams_.at(i + 1));
522522
}
523523
return newVec;

0 commit comments

Comments
 (0)