Skip to content

Commit

Permalink
* Remove warnings of hidden overloaded virtual function
Browse files Browse the repository at this point in the history
* Remove warnings of overridden virtual function
  • Loading branch information
ianna committed May 9, 2016
1 parent fe2716d commit f30cd7e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 16 deletions.
Expand Up @@ -13,10 +13,12 @@ class RectangularStripTopology final : public StripTopology {

RectangularStripTopology(int nstrips, float pitch, float detlength);

using StripTopology::localPosition;
virtual LocalPoint localPosition(float strip) const;

virtual LocalPoint localPosition(const MeasurementPoint&) const;


using StripTopology::localError;
virtual LocalError
localError(float strip, float stripErr2) const;

Expand Down
12 changes: 6 additions & 6 deletions Geometry/EcalAlgo/interface/EcalPreshowerGeometry.h
Expand Up @@ -40,8 +40,8 @@ class EcalPreshowerGeometry final : public CaloSubdetectorGeometry

static std::string dbString() { return "PEcalPreshowerRcd" ; }

virtual unsigned int numberOfShapes() const { return k_NumberOfShapes ; }
virtual unsigned int numberOfParametersPerShape() const { return k_NumberOfParametersPerShape ; }
virtual unsigned int numberOfShapes() const override { return k_NumberOfShapes ; }
virtual unsigned int numberOfParametersPerShape() const override { return k_NumberOfParametersPerShape ; }

EcalPreshowerGeometry() ;

Expand All @@ -54,16 +54,16 @@ class EcalPreshowerGeometry final : public CaloSubdetectorGeometry
CCGFloat z2plus ) ;

// Get closest cell
virtual DetId getClosestCell( const GlobalPoint& r ) const ;
virtual DetId getClosestCell( const GlobalPoint& r ) const override;


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


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

static std::string hitString() { return "EcalHitsES" ; }

Expand All @@ -86,7 +86,7 @@ class EcalPreshowerGeometry final : public CaloSubdetectorGeometry
const GlobalPoint& f2 ,
const GlobalPoint& f3 ,
const CCGFloat* parm ,
const DetId& detId ) ;
const DetId& detId ) override;


/// is this detid present in the geometry?
Expand Down
2 changes: 2 additions & 0 deletions Geometry/ForwardGeometry/interface/CastorTopology.h
Expand Up @@ -24,6 +24,7 @@ class CastorTopology : public CaloSubdetectorTopology {
int exclude(int zside, HcalCastorDetId::Section section1, int isec1, int imod1, HcalCastorDetId::Section section2, int isec2, int imod2);

/** Is this a valid cell id? */
using CaloSubdetectorTopology::valid;
virtual bool valid(const HcalCastorDetId& id) const;

/** Is this a valid cell id? */
Expand All @@ -44,6 +45,7 @@ class CastorTopology : public CaloSubdetectorTopology {
virtual std::vector<DetId> down(const DetId& id) const;

// how many channels (deph) for a given section
using CaloSubdetectorTopology::ncells;
int ncells(HcalCastorDetId::Section section) const;

//return first and last cell of each section
Expand Down
1 change: 1 addition & 0 deletions Geometry/ForwardGeometry/interface/IdealCastorTrapezoid.h
Expand Up @@ -62,6 +62,7 @@ class IdealCastorTrapezoid: public CaloCellGeometry
CCGFloat an() const ;
CCGFloat dR() const ;

using CaloCellGeometry::vocalCorners;
virtual void vocalCorners( Pt3DVec& vec ,
const CCGFloat* pv ,
Pt3D& ref ) const ;
Expand Down
2 changes: 2 additions & 0 deletions Geometry/ForwardGeometry/interface/ZdcTopology.h
Expand Up @@ -25,6 +25,7 @@ class ZdcTopology : public CaloSubdetectorTopology {
int exclude(int zside, HcalZDCDetId::Section section, int ich1, int ich2);

/** Is this a valid cell id? */
using CaloSubdetectorTopology::valid;
virtual bool valid(const HcalZDCDetId& id) const;

/** Get the transverse (X) neighbors of the given cell*/
Expand All @@ -43,6 +44,7 @@ class ZdcTopology : public CaloSubdetectorTopology {


// how many channels (deph) for a given section
using CaloSubdetectorTopology::ncells;
int ncells(HcalZDCDetId::Section section) const;

//return first and last cell of each section
Expand Down
3 changes: 2 additions & 1 deletion Geometry/HGCalGeometry/interface/HGCalGeometry.h
Expand Up @@ -65,7 +65,7 @@ class HGCalGeometry final: public CaloSubdetectorGeometry {
virtual void getSummary( CaloSubdetectorGeometry::TrVec& trVector,
CaloSubdetectorGeometry::IVec& iVector,
CaloSubdetectorGeometry::DimVec& dimVector,
CaloSubdetectorGeometry::IVec& dinsVector ) const ;
CaloSubdetectorGeometry::IVec& dinsVector ) const override;

GlobalPoint getPosition( const DetId& id ) const;

Expand Down Expand Up @@ -99,6 +99,7 @@ class HGCalGeometry final: public CaloSubdetectorGeometry {
protected:

virtual unsigned int indexFor(const DetId& id) const override;
using CaloSubdetectorGeometry::sizeForDenseIndex;
unsigned int sizeForDenseIndex() const;

virtual const CaloCellGeometry* cellGeomPtr( uint32_t index ) const override;
Expand Down
4 changes: 2 additions & 2 deletions Geometry/TrackerGeometryBuilder/interface/GluedGeomDet.h
Expand Up @@ -12,10 +12,10 @@ class GluedGeomDet final : public TrackerGeomDet {
virtual ~GluedGeomDet();

bool isLeaf() const override { return false;}
virtual std::vector<const GeomDet*> components() const;
virtual std::vector<const GeomDet*> components() const override;

// Which subdetector
virtual SubDetector subDetector() const {return theMonoDet->subDetector();}
virtual SubDetector subDetector() const override {return theMonoDet->subDetector();}

const GeomDetUnit* monoDet() const { return theMonoDet;}
const GeomDetUnit* stereoDet() const { return theStereoDet;}
Expand Down
4 changes: 2 additions & 2 deletions Geometry/TrackerGeometryBuilder/interface/PixelGeomDetUnit.h
Expand Up @@ -42,7 +42,7 @@ class PixelGeomDetUnit final : public TrackerGeomDet {
virtual const PixelTopology& specificTopology() const;

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

Expand All @@ -51,7 +51,7 @@ class PixelGeomDetUnit final : public TrackerGeomDet {
private:

/// set the SurfaceDeformation for this StripGeomDetUnit to proxy topology.
virtual void setSurfaceDeformation(const SurfaceDeformation * deformation);
virtual void setSurfaceDeformation(const SurfaceDeformation * deformation) override;

std::unique_ptr<ProxyPixelTopology> theTopology;
};
Expand Down
4 changes: 2 additions & 2 deletions Geometry/TrackerGeometryBuilder/interface/StackGeomDet.h
Expand Up @@ -12,10 +12,10 @@ class StackGeomDet : public TrackerGeomDet{
virtual ~StackGeomDet();

bool isLeaf() const override { return false;}
virtual std::vector<const GeomDet*> components() const;
virtual std::vector<const GeomDet*> components() const override;

// Which subdetector
virtual SubDetector subDetector() const { return theLowerDet->subDetector(); };
virtual SubDetector subDetector() const override { return theLowerDet->subDetector(); };

const GeomDetUnit* lowerDet() const { return theLowerDet; };
const GeomDetUnit* upperDet() const { return theUpperDet; };
Expand Down
4 changes: 2 additions & 2 deletions Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h
Expand Up @@ -42,7 +42,7 @@ class StripGeomDetUnit final : public TrackerGeomDet {
virtual const StripTopology& specificTopology() const;

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

Expand All @@ -52,7 +52,7 @@ class StripGeomDetUnit final : public TrackerGeomDet {
private:

/// set the SurfaceDeformation for this StripGeomDetUnit to proxy topology.
virtual void setSurfaceDeformation(const SurfaceDeformation * deformation);
virtual void setSurfaceDeformation(const SurfaceDeformation * deformation) override;

std::unique_ptr<ProxyStripTopology> theTopology;
};
Expand Down

0 comments on commit f30cd7e

Please sign in to comment.