Skip to content

Commit 3f4295b

Browse files
authored
Merge pull request #49213 from smuzaffar/geometry-llvm21-virtual-method-final-class
[GEOMETRY] Fix for virtual method inside a final class
2 parents f77e09c + e1abdd9 commit 3f4295b

File tree

14 files changed

+26
-26
lines changed

14 files changed

+26
-26
lines changed

Geometry/CaloTopology/interface/CaloTowerTopology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CaloTowerTopology final : public CaloSubdetectorTopology {
1818
~CaloTowerTopology() override {}
1919
/// is this detid present in the Topology?
2020
bool valid(const DetId& id) const override;
21-
virtual bool validDetId(const CaloTowerDetId& id) const;
21+
bool validDetId(const CaloTowerDetId& id) const;
2222
/** Get the neighbors of the given cell in east direction*/
2323
std::vector<DetId> east(const DetId& id) const override;
2424
/** Get the neighbors of the given cell in west direction*/

Geometry/CommonTopologies/interface/PixelGeomDetType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class PixelGeomDetType final : public GeomDetType {
2020
// Access to topologies
2121
const Topology& topology() const override { return *theTopology; }
2222

23-
virtual const TopologyType& specificTopology() const { return *theTopology; }
23+
const TopologyType& specificTopology() const { return *theTopology; }
2424

2525
PixelGeomDetType& operator=(const PixelGeomDetType& other) = delete;
2626
PixelGeomDetType(const PixelGeomDetType& other) = delete;

Geometry/CommonTopologies/interface/PixelGeomDetUnit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class PixelGeomDetUnit final : public TrackerGeomDet {
3535
/// the proxy topology (through topology() and specificTopology()) which includes
3636
/// corrections for the surface deformations, and once via the GeomDetType
3737
/// (through type().topology() and the like).
38-
virtual const PixelGeomDetType& specificType() const;
38+
const PixelGeomDetType& specificType() const;
3939

4040
/// Returns a reference to the pixel proxy topology
41-
virtual const PixelTopology& specificTopology() const;
41+
const PixelTopology& specificTopology() const;
4242

4343
/// Return pointer to surface deformation.
4444
const SurfaceDeformation* surfaceDeformation() const override { return theTopology->surfaceDeformation(); }

Geometry/CommonTopologies/interface/ProxyPixelTopology.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ class ProxyPixelTopology final : public PixelTopology {
8585
bool isItEdgePixelInY(int iybin) const override { return specificTopology().isItEdgePixelInY(iybin); }
8686
bool isItEdgePixel(int ixbin, int iybin) const override { return specificTopology().isItEdgePixel(ixbin, iybin); }
8787

88-
virtual const GeomDetType &type() const { return *theType; }
88+
const GeomDetType &type() const { return *theType; }
8989

90-
virtual PixelGeomDetType const &specificType() const { return *theType; }
90+
PixelGeomDetType const &specificType() const { return *theType; }
9191

9292
const SurfaceDeformation *surfaceDeformation() const { return theSurfaceDeformation.operator->(); }
93-
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation);
93+
void setSurfaceDeformation(const SurfaceDeformation *deformation);
9494

95-
virtual const PixelTopology &specificTopology() const { return specificType().specificTopology(); }
95+
const PixelTopology &specificTopology() const { return specificType().specificTopology(); }
9696

9797
private:
9898
/// Internal method to get correction of the position from SurfaceDeformation,

Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class TrapezoidalStripTopology final : public StripTopology {
6969
float radius() const { return theDistToBeam; }
7070

7171
protected:
72-
virtual float shiftOffset(float pitch_fraction);
72+
float shiftOffset(float pitch_fraction);
7373

7474
private:
7575
int theNumberOfStrips;

Geometry/EcalAlgo/interface/EcalPreshowerGeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class EcalPreshowerGeometry final : public CaloSubdetectorGeometry {
5252
DetId getClosestCell(const GlobalPoint& r) const override;
5353

5454
// Get closest cell in arbitrary plane (1 or 2)
55-
virtual DetId getClosestCellInPlane(const GlobalPoint& r, int plane) const;
55+
DetId getClosestCellInPlane(const GlobalPoint& r, int plane) const;
5656

5757
void initializeParms() override;
5858
unsigned int numberOfTransformParms() const override { return 3; }

Geometry/HGCalGeometry/interface/HGCalGeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class HGCalGeometry final : public CaloSubdetectorGeometry {
104104
*/
105105
DetIdSet getCells(const GlobalPoint& r, double dR) const override;
106106

107-
virtual void fillNamedParams(DDFilteredView fv);
107+
void fillNamedParams(DDFilteredView fv);
108108
void initializeParms() override;
109109

110110
static std::string producerTag() { return "HGCal"; }

Geometry/HGCalGeometry/interface/HGCalTBGeometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class HGCalTBGeometry final : public CaloSubdetectorGeometry {
100100
*/
101101
DetIdSet getCells(const GlobalPoint& r, double dR) const override;
102102

103-
virtual void fillNamedParams(DDFilteredView fv);
103+
void fillNamedParams(DDFilteredView fv);
104104
void initializeParms() override;
105105

106106
static std::string producerTag() { return "HGCalTB"; }

Geometry/MTDGeometryBuilder/interface/MTDGeomDetType.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MTDGeomDetType final : public GeomDetType {
2121
// Access to topologies
2222
const Topology& topology() const override { return *theTopology; }
2323

24-
virtual const TopologyType& specificTopology() const { return *theTopology; }
24+
const TopologyType& specificTopology() const { return *theTopology; }
2525

2626
MTDGeomDetType& operator=(const MTDGeomDetType& other) = delete;
2727
MTDGeomDetType(const MTDGeomDetType& other) = delete;

Geometry/MTDGeometryBuilder/interface/MTDGeomDetUnit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class MTDGeomDetUnit final : public MTDGeomDet {
3535
/// the proxy topology (through topology() and specificTopology()) which includes
3636
/// corrections for the surface deformations, and once via the GeomDetType
3737
/// (through type().topology() and the like).
38-
virtual const MTDGeomDetType& specificType() const;
38+
const MTDGeomDetType& specificType() const;
3939

4040
/// Returns a reference to the pixel proxy topology
41-
virtual const PixelTopology& specificTopology() const;
41+
const PixelTopology& specificTopology() const;
4242

4343
/// Return pointer to surface deformation.
4444
const SurfaceDeformation* surfaceDeformation() const override { return theTopology->surfaceDeformation(); }

0 commit comments

Comments
 (0)