Skip to content

Commit 321a48b

Browse files
committed
[SIMULATION] Changes suggested by new llvm18 clang-format
1 parent 15ea9bb commit 321a48b

File tree

138 files changed

+289
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+289
-293
lines changed

DataFormats/CSCDigi/test/testCSCDigis.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ void testCSCDigis::readCSCWireDigi(CSCWireDigiCollection &collection) {
434434
std::cout << std::endl;
435435
std::cout << " CSC Wire Word with Time Bins Bits On " << (*digiIt).getTimeBinWord() << std::endl;
436436
} // for digis in layer
437-
} // end of for (detUnitIt=...
437+
} // end of for (detUnitIt=...
438438

439439
printf("CSC Wire count: %3d \n", count);
440440
}
@@ -468,7 +468,7 @@ void testCSCDigis::readCSCComparatorDigi(CSCComparatorDigiCollection &collection
468468
std::cout << std::endl;
469469

470470
} // for digis in layer
471-
} // end of for (detUnitIt=...
471+
} // end of for (detUnitIt=...
472472

473473
printf("CSCComparatorDigi count: %3d \n", count);
474474
}
@@ -503,7 +503,7 @@ void testCSCDigis::readCSCStripDigi(CSCStripDigiCollection &collection) {
503503
(*digiIt).getADCCounts()[7]);
504504

505505
} // for digis in layer
506-
} // end of for (detUnitIt=...
506+
} // end of for (detUnitIt=...
507507

508508
printf("CSC Strip count: %3d \n", count);
509509
}
@@ -530,7 +530,7 @@ void testCSCDigis::readCSCRPCDigi(CSCRPCDigiCollection &collection) {
530530
(*digiIt).getBXN());
531531

532532
} // for digis in layer
533-
} // end of for (detUnitIt=...
533+
} // end of for (detUnitIt=...
534534

535535
printf("RPC count: %3d \n", count);
536536
}
@@ -568,7 +568,7 @@ void testCSCDigis::readCSCALCTDigi(CSCALCTDigiCollection &collection) {
568568
(*digiIt).getBX(),
569569
(*digiIt).getTrknmb());
570570
} // for digis in layer
571-
} // end of for (detUnitIt=...
571+
} // end of for (detUnitIt=...
572572
printf("CSC ALCT count: %3d \n", count);
573573
}
574574

@@ -610,7 +610,7 @@ void testCSCDigis::readCSCCLCTDigi(CSCCLCTDigiCollection &collection) {
610610
(*digiIt).getTrknmb());
611611

612612
} // for digis in layer
613-
} // end of for (detUnitIt=...
613+
} // end of for (detUnitIt=...
614614
printf("CSC CLCT count: %3d \n", count);
615615
}
616616

@@ -658,7 +658,7 @@ void testCSCDigis::readCSCCFEBStatusDigi(CSCCFEBStatusDigiCollection &collection
658658
std::cout<<std::endl;
659659
*/
660660
} // for digis in collection
661-
} // end of for (detUnitIt=...
661+
} // end of for (detUnitIt=...
662662
}
663663

664664
void testCSCDigis::readCSCTMBStatusDigi(CSCTMBStatusDigiCollection &collection) {
@@ -684,7 +684,7 @@ void testCSCDigis::readCSCTMBStatusDigi(CSCTMBStatusDigiCollection &collection)
684684
*/
685685

686686
} // for digis in collection
687-
} // end of for (detUnitIt=...
687+
} // end of for (detUnitIt=...
688688
}
689689
/*
690690
void testCSCDigis::readCSCDCCFormatStatusDigi(CSCDCCFormatStatusDigiCollection & collection) {

DataFormats/DTDigi/interface/DTDDUWords.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ class DTROSWordType {
9090
/// Constructor
9191
DTROSWordType(const uint32_t index) { word_ = index; }
9292

93-
DTROSWordType() : word_(0){};
93+
DTROSWordType() : word_(0) {}
9494

9595
/// Destructor
96-
virtual ~DTROSWordType(){};
96+
virtual ~DTROSWordType() {}
9797

9898
/// List of DT DDU Word Types
9999
enum wordTypes {

DataFormats/DTDigi/interface/DTuROSControlData.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DTuROSROSData {
2828
}
2929

3030
/// Destructor
31-
~DTuROSROSData(){};
31+
~DTuROSROSData() {}
3232

3333
void setslot(int slot) { slot_ = slot; }
3434

@@ -109,7 +109,7 @@ class DTuROSFEDData {
109109
}
110110

111111
/// Destructor
112-
~DTuROSFEDData(){};
112+
~DTuROSFEDData() {}
113113

114114
void setfed(int fed) { fed_ = fed; }
115115

DataFormats/DTDigi/test/testDTDigis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void testDTDigis::testDigiCollectionPut() {
7373
// CPPUNIT_ASSERT((*digiIt)==digi2);
7474

7575
} // for digis in layer
76-
} // for layers
76+
} // for layers
7777
}
7878

7979
void testDTDigis::testDigiCollectionInsert() {
@@ -105,7 +105,7 @@ void testDTDigis::testDigiCollectionInsert() {
105105

106106
count++;
107107
} // for digis in layer
108-
} // for layers
108+
} // for layers
109109

110110
CPPUNIT_ASSERT(count != 0);
111111
}

DataFormats/EcalDetId/interface/EcalElectronicsId.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class EcalElectronicsId {
4343
EcalSubdetector subdet() const;
4444

4545
/// get a fast, compact, unique index for linear lookups (maximum value = 4194303)
46-
int linearIndex() const { return (EcalElectronicsId_)&0x3FFFFF; }
46+
int linearIndex() const { return (EcalElectronicsId_) & 0x3FFFFF; }
4747

4848
/// so far for EndCap only :
4949
int channelId() const; // xtal id between 1 and 25

DataFormats/EcalDetId/interface/EcalTriggerElectronicsId.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class EcalTriggerElectronicsId {
3636
/// get the channel id
3737
int channelId() const { return (EcalTriggerElectronicsId_ & 0x7); }
3838
/// get a fast, compact, unique index for linear lookups (maximum value = 1048575)
39-
int linearIndex() const { return (EcalTriggerElectronicsId_)&0xFFFFF; }
39+
int linearIndex() const { return (EcalTriggerElectronicsId_) & 0xFFFFF; }
4040

4141
/// get the zside() +1 / -1
4242
int zside() const;

DataFormats/EcalDetId/test/printEEDetId.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ int main(int argc, char* argv[]) {
138138
COL << id.sc().zside() << " ";
139139
COL << "\n";
140140
} //next iy
141-
} //next ix
142-
} //next iz
141+
} //next ix
142+
} //next iz
143143
} catch (exception& e) {
144144
cerr << e.what();
145145
}

DataFormats/EcalDigi/interface/EBSrFlag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EBSrFlag : public EcalSrFlag {
1717
public:
1818
/** Default constructor.
1919
*/
20-
EBSrFlag(){};
20+
EBSrFlag() {}
2121

2222
/** Constructor
2323
* @param tt trigger tower det id.

DataFormats/EcalDigi/interface/EESrFlag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class EESrFlag : public EcalSrFlag {
1818
public:
1919
/** Default constructor.
2020
*/
21-
EESrFlag(){};
21+
EESrFlag() {}
2222

2323
/** Constructor
2424
* @param sc supercrystal det id

DataFormats/EcalDigi/interface/EcalSrFlag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class EcalSrFlag {
3131
public:
3232
/** Destructor
3333
*/
34-
virtual ~EcalSrFlag(){};
34+
virtual ~EcalSrFlag() {}
3535

3636
/** Gets the Det Id the flag is associated to.
3737
* @return the det id of the readout unit (a barrel TT or a SC).

0 commit comments

Comments
 (0)