Skip to content

Commit 865504b

Browse files
authored
Merge pull request #45919 from smuzaffar/alca-db-l1-llvm18-clang-format
[ALCA-DB-L1] Changes suggested by new llvm18 clang-format
2 parents 58c198d + 6a92add commit 865504b

16 files changed

+50
-56
lines changed

CondFormats/L1TObjects/interface/CaloParams.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ namespace l1t {
9494
maskE_(0),
9595
maskSum_(0),
9696
maskRatio_(0),
97-
doEncoding_(false) { /* no-op */
98-
}
97+
doEncoding_(false) { /* no-op */ }
9998

10099
COND_SERIALIZABLE;
101100
};
@@ -150,8 +149,7 @@ namespace l1t {
150149
maxPtHOverEIsolation_(0),
151150
isoAreaNrTowersEta_(0),
152151
isoAreaNrTowersPhi_(0),
153-
isoVetoNrTowersPhi_(0) { /* no-op */
154-
}
152+
isoVetoNrTowersPhi_(0) { /* no-op */ }
155153

156154
COND_SERIALIZABLE;
157155
};
@@ -204,8 +202,7 @@ namespace l1t {
204202
isoEtaMax_(0),
205203
isoAreaNrTowersEta_(0),
206204
isoAreaNrTowersPhi_(0),
207-
isoVetoNrTowersPhi_(0) { /* no-op */
208-
}
205+
isoVetoNrTowersPhi_(0) { /* no-op */ }
209206

210207
COND_SERIALIZABLE;
211208
};
@@ -221,8 +218,7 @@ namespace l1t {
221218
// Et threshold on neighbouring towers/regions
222219
double neighbourThreshold_;
223220

224-
JetParams() : lsb_(0), seedThreshold_(0), neighbourThreshold_(0) { /* no-op */
225-
}
221+
JetParams() : lsb_(0), seedThreshold_(0), neighbourThreshold_(0) { /* no-op */ }
226222

227223
COND_SERIALIZABLE;
228224
};

CondFormats/L1TObjects/interface/L1GtEnergySumTemplate.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ class L1GtEnergySumTemplate : public L1GtCondition {
6363
unsigned long long phiRange1Word;
6464

6565
// make sure all objects (esp. the bool) are properly initialised to avoid problems with serialisation:
66-
ObjectParameter() : etThreshold(0), energyOverflow(false), phiRange0Word(0), phiRange1Word(0) { /*nop*/
67-
;
68-
};
66+
ObjectParameter() : etThreshold(0), energyOverflow(false), phiRange0Word(0), phiRange1Word(0) { /*nop*/ ; }
6967

7068
COND_SERIALIZABLE;
7169
};

CondFormats/L1TObjects/interface/L1MuGMTScales.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ class L1MuGMTScales {
170170
};
171171

172172
/// destructor
173-
virtual ~L1MuGMTScales(){
174-
// for (int i=0; i<4; i++) {
175-
// delete m_ReducedEtaScale[i];
176-
// delete m_OvlEtaScale[i];
177-
// }
178-
// for (int i=0; i<6; i++) {
179-
// delete m_DeltaEtaScale[i];
180-
// }
181-
182-
// delete m_DeltaPhiScale;
183-
// delete m_CaloEtaScale;
173+
virtual ~L1MuGMTScales() {
174+
// for (int i=0; i<4; i++) {
175+
// delete m_ReducedEtaScale[i];
176+
// delete m_OvlEtaScale[i];
177+
// }
178+
// for (int i=0; i<6; i++) {
179+
// delete m_DeltaEtaScale[i];
180+
// }
181+
182+
// delete m_DeltaPhiScale;
183+
// delete m_CaloEtaScale;
184184
};
185185

186186
/// get the recuced eta scale for matching in the overlap region (4 bit); isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)

CondFormats/L1TObjects/interface/L1MuPacking.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
class L1MuPacking {
3737
public:
38-
virtual ~L1MuPacking(){};
38+
virtual ~L1MuPacking() {}
3939

4040
/// get the sign from the packed notation (0=positive, 1=negative)
4141
virtual int signFromPacked(unsigned packed) const = 0;
@@ -150,8 +150,8 @@ class L1MuSignedPackingGeneric : public L1MuPacking {
150150
class L1MuPseudoSignedPacking : public L1MuPacking {
151151
public:
152152
L1MuPseudoSignedPacking() {}
153-
~L1MuPseudoSignedPacking() override{};
154-
L1MuPseudoSignedPacking(unsigned int nbits) : m_nbits(nbits){};
153+
~L1MuPseudoSignedPacking() override {}
154+
L1MuPseudoSignedPacking(unsigned int nbits) : m_nbits(nbits) {}
155155

156156
/// get the (pseudo-)sign from the packed notation (0=positive, 1=negative)
157157
int signFromPacked(unsigned packed) const override { return (packed & (1 << (m_nbits - 1))) ? 1 : 0; };

CondFormats/L1TObjects/interface/L1MuScale.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class L1MuBinnedScale : public L1MuScale {
138138
};
139139

140140
/// destructor
141-
~L1MuBinnedScale() override{
142-
// delete m_packing;
141+
~L1MuBinnedScale() override {
142+
// delete m_packing;
143143
};
144144

145145
/// get the center of bin represented by packed
@@ -276,8 +276,8 @@ class L1MuSymmetricBinnedScale : public L1MuScale {
276276
};
277277

278278
/// destructor
279-
~L1MuSymmetricBinnedScale() override{
280-
// delete m_packing;
279+
~L1MuSymmetricBinnedScale() override {
280+
// delete m_packing;
281281
};
282282

283283
/// get the center of bin represented by packed

CondFormats/L1TObjects/interface/L1MuTriggerPtScale.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class L1MuTriggerPtScale {
5353
};
5454

5555
/// destructor
56-
virtual ~L1MuTriggerPtScale(){};
56+
virtual ~L1MuTriggerPtScale() {}
5757

5858
/// get the Pt scale
5959
const L1MuScale* getPtScale() const { return &m_PtScale; };

CondFormats/L1TObjects/interface/L1MuTriggerScales.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ class L1MuTriggerScales {
145145
};
146146

147147
/// destructor
148-
virtual ~L1MuTriggerScales(){
149-
// for (int i=0; i<4; i++)
150-
// delete m_RegionalEtaScale[i];
148+
virtual ~L1MuTriggerScales() {
149+
// for (int i=0; i<4; i++)
150+
// delete m_RegionalEtaScale[i];
151151

152-
// delete m_GMTEtaScale;
153-
// delete m_PhiScale;
154-
// delete m_PtScale;
152+
// delete m_GMTEtaScale;
153+
// delete m_PhiScale;
154+
// delete m_PtScale;
155155
};
156156

157157
/// get the regioanl muon trigger eta scale, isys = 0(DT), 1(bRPC), 2(CSC), 3(fwdRPC)

CondFormats/L1TObjects/interface/L1TUtmAlgorithm.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class L1TUtmAlgorithm {
2929
index_(),
3030
module_id_(),
3131
module_index_(),
32-
version(0){};
32+
version(0) {}
3333
L1TUtmAlgorithm(std::string name,
3434
std::string expression,
3535
std::string expression_in_condition,
@@ -45,7 +45,7 @@ class L1TUtmAlgorithm {
4545
index_(index),
4646
module_id_(module_id),
4747
module_index_(module_index),
48-
version(ver){};
48+
version(ver) {}
4949

5050
L1TUtmAlgorithm(const tmeventsetup::esAlgorithm& esAlg)
5151
: L1TUtmAlgorithm(esAlg.getName(),
@@ -56,7 +56,7 @@ class L1TUtmAlgorithm {
5656
esAlg.getModuleId(),
5757
esAlg.getModuleIndex(),
5858
0 //There is no version retrieval in esAlgorithm. However, it seems pretty hard coded to 0
59-
){};
59+
) {};
6060

6161
virtual ~L1TUtmAlgorithm() = default;
6262

CondFormats/L1TObjects/interface/L1TUtmBin.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class L1TUtmBin {
2323
: hw_index(std::numeric_limits<unsigned int>::max()),
2424
minimum(std::numeric_limits<double>::min()),
2525
maximum(std::numeric_limits<double>::max()),
26-
version(0){};
26+
version(0) {}
2727

2828
L1TUtmBin(const unsigned int id, const double min, const double max)
29-
: hw_index(id), minimum(min), maximum(max), version(0){};
29+
: hw_index(id), minimum(min), maximum(max), version(0) {}
3030

31-
L1TUtmBin(const tmeventsetup::esBin& bin) : L1TUtmBin(bin.hw_index, bin.minimum, bin.maximum){};
31+
L1TUtmBin(const tmeventsetup::esBin& bin) : L1TUtmBin(bin.hw_index, bin.minimum, bin.maximum) {}
3232

3333
operator tmeventsetup::esBin() const { return tmeventsetup::esBin(hw_index, minimum, maximum); }
3434

CondFormats/L1TObjects/interface/L1TUtmCondition.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
*/
2525
class L1TUtmCondition {
2626
public:
27-
L1TUtmCondition() : name_(), type_(-9999), objects_(), cuts_(), version(0){};
27+
L1TUtmCondition() : name_(), type_(-9999), objects_(), cuts_(), version(0) {}
2828
L1TUtmCondition(
2929
std::string name, int type, std::vector<L1TUtmObject> objects, std::vector<L1TUtmCut> cuts, unsigned int vers)
30-
: name_(name), type_(type), objects_(objects), cuts_(cuts), version(vers){};
30+
: name_(name), type_(type), objects_(objects), cuts_(cuts), version(vers) {}
3131

3232
L1TUtmCondition(const tmeventsetup::esCondition& esCond)
3333
: name_(esCond.getName()), type_(esCond.getType()), version(0) {

0 commit comments

Comments
 (0)