Skip to content

Commit

Permalink
Fix warnings about implicit copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and tmadlener committed Jan 15, 2024
1 parent 2577d40 commit ae835ad
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
1 change: 1 addition & 0 deletions include/gear/GEAR.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace gear {

public:
virtual ~Exception() { /*no_op*/; }
Exception( const Exception& e ) = default ;

Exception( const std::string& text ){
message = "gear::Exception: " + text ;
Expand Down
19 changes: 19 additions & 0 deletions include/gear/TrackerPlanesLayerLayout.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@ class TrackerPlanesMaterialLayer {


public:
/// Constructor
TrackerPlanesMaterialLayer() = default;

/// Destructor.
virtual ~TrackerPlanesMaterialLayer() { /* nop */; }

/// Copy-constructor.
TrackerPlanesMaterialLayer( const TrackerPlanesMaterialLayer& ) = default;

virtual int getID() const = 0;

/** */
Expand Down Expand Up @@ -136,9 +142,15 @@ class TrackerPlanesSensitiveLayer {


public:
/// Constructor
TrackerPlanesSensitiveLayer() = default;

/// Destructor.
virtual ~TrackerPlanesSensitiveLayer() { /* nop */; }

/// Copy-constructor.
TrackerPlanesSensitiveLayer( const TrackerPlanesSensitiveLayer& ) = default;


/** ID of sensitive volume of layer layerIndex - layer indexing starts at 0
* for the layer closest to the beam source.*/
Expand Down Expand Up @@ -282,9 +294,16 @@ class TrackerPlanesSensitiveLayer {
class TrackerPlanesLayer {

public:

/// Constructor
TrackerPlanesLayer() = default;

/// Destructor.
virtual ~TrackerPlanesLayer() { /* nop */; }

// Copy-constructor.
TrackerPlanesLayer( const TrackerPlanesLayer& ) = default;

/** Layer ID of nonsensitive volume of layer layerIndex - layer indexing starts at 0
* for the layer closest to the beam source.*/
virtual int getID() const = 0;
Expand Down
1 change: 0 additions & 1 deletion include/gear/gearimpl/FTDLayerLayoutImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class vframe // TO BE DEPRECATED...
vframe(): x(0),y(0),z(0) { ; }
vframe(const double & xval, const double & yval, const double & zval):
x(xval),y(yval),z(zval) { ; }
~vframe() { ; }

double x{};
double y{};
Expand Down
8 changes: 8 additions & 0 deletions include/gear/gearimpl/TrackerPlanesLayerLayoutImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class TrackerPlanesMaterialLayerImpl: public TrackerPlanesMaterialLayer {
/// Destructor.
/** */
virtual ~TrackerPlanesMaterialLayerImpl() { /* nop */; }
/// Copy constructor.
TrackerPlanesMaterialLayerImpl(const TrackerPlanesMaterialLayerImpl&) = default;
/** */
virtual int getID() const { return ID ; }
/** */
Expand Down Expand Up @@ -159,6 +161,9 @@ class TrackerPlanesSensitiveLayerImpl: public TrackerPlanesSensitiveLayer {
/// Destructor.
virtual ~TrackerPlanesSensitiveLayerImpl() { /* nop */; }

/// Copy constructor.
TrackerPlanesSensitiveLayerImpl(const TrackerPlanesSensitiveLayerImpl&) = default;

/** */
virtual int getID() const { return ID ; }
/** */
Expand Down Expand Up @@ -284,6 +289,9 @@ class TrackerPlanesLayerImpl: public TrackerPlanesLayer {
/** Destructor.
*/
virtual ~TrackerPlanesLayerImpl() { /* nop */; }
/** Copy constructor.
*/
TrackerPlanesLayerImpl(const TrackerPlanesLayerImpl&) = default;

/** get methods
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gearimpl/FTDLayerLayoutImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ double FTDLayerLayoutImpl::getThicknessForAngle(const int & layerIndex,const dou
// -si entra por el petalo
// -cual es la distancia que recorre antes de salir
// -para ello hay que controlar si sale antes de que
// acabe el petalo, en Y es fácil pero en x, al ser
// acabe el petalo, en Y es facil pero en x, al ser
// un petalo, la distancia es variable y dependera
// de la zona Y de salida del rayo
// -controlar y prohibir angulos que no esten en
Expand Down

0 comments on commit ae835ad

Please sign in to comment.