diff --git a/include/Criteria/Crit2_DeltaPhi.h b/include/Criteria/Crit2_DeltaPhi.h index aa3327b..174399d 100644 --- a/include/Criteria/Crit2_DeltaPhi.h +++ b/include/Criteria/Crit2_DeltaPhi.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _deltaPhiMax; - float _deltaPhiMin; + float _deltaPhiMax{}; + float _deltaPhiMin{}; diff --git a/include/Criteria/Crit2_DeltaPhi_MV.h b/include/Criteria/Crit2_DeltaPhi_MV.h index dc0783d..86adf75 100644 --- a/include/Criteria/Crit2_DeltaPhi_MV.h +++ b/include/Criteria/Crit2_DeltaPhi_MV.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _deltaPhiMax; - float _deltaPhiMin; + float _deltaPhiMax{}; + float _deltaPhiMin{}; diff --git a/include/Criteria/Crit2_DeltaRho.h b/include/Criteria/Crit2_DeltaRho.h index 54d061b..f823220 100644 --- a/include/Criteria/Crit2_DeltaRho.h +++ b/include/Criteria/Crit2_DeltaRho.h @@ -23,8 +23,8 @@ namespace KiTrack{ private: - float _deltaRhoMax; - float _deltaRhoMin; + float _deltaRhoMax{}; + float _deltaRhoMin{}; diff --git a/include/Criteria/Crit2_DeltaTheta_MV.h b/include/Criteria/Crit2_DeltaTheta_MV.h index bc24a28..40ba922 100644 --- a/include/Criteria/Crit2_DeltaTheta_MV.h +++ b/include/Criteria/Crit2_DeltaTheta_MV.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _deltaThetaMax; - float _deltaThetaMin; + float _deltaThetaMax{}; + float _deltaThetaMin{}; diff --git a/include/Criteria/Crit2_Distance_MV.h b/include/Criteria/Crit2_Distance_MV.h index 714c768..4db19e6 100644 --- a/include/Criteria/Crit2_Distance_MV.h +++ b/include/Criteria/Crit2_Distance_MV.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _deltaPos2Max; - float _deltaPos2Min; + float _deltaPos2Max{}; + float _deltaPos2Min{}; diff --git a/include/Criteria/Crit2_HelixWithIP.h b/include/Criteria/Crit2_HelixWithIP.h index edc46bf..02b32c0 100644 --- a/include/Criteria/Crit2_HelixWithIP.h +++ b/include/Criteria/Crit2_HelixWithIP.h @@ -30,8 +30,8 @@ namespace KiTrack{ private: - float _ratioMax; - float _ratioMin; + float _ratioMax{}; + float _ratioMin{}; diff --git a/include/Criteria/Crit2_RZRatio.h b/include/Criteria/Crit2_RZRatio.h index 0c69ec8..b765ed5 100644 --- a/include/Criteria/Crit2_RZRatio.h +++ b/include/Criteria/Crit2_RZRatio.h @@ -23,8 +23,8 @@ namespace KiTrack{ private: - float _ratioMax; - float _ratioMin; + float _ratioMax{}; + float _ratioMin{}; }; diff --git a/include/Criteria/Crit2_StraightTrackRatio.h b/include/Criteria/Crit2_StraightTrackRatio.h index 0663290..0566ec9 100644 --- a/include/Criteria/Crit2_StraightTrackRatio.h +++ b/include/Criteria/Crit2_StraightTrackRatio.h @@ -28,8 +28,8 @@ namespace KiTrack{ private: - float _ratioMax; - float _ratioMin; + float _ratioMax{}; + float _ratioMin{}; diff --git a/include/Criteria/Crit3_2DAngle.h b/include/Criteria/Crit3_2DAngle.h index 2644a99..c34a0d2 100644 --- a/include/Criteria/Crit3_2DAngle.h +++ b/include/Criteria/Crit3_2DAngle.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _cosAngleMin; - float _cosAngleMax; + float _cosAngleMin{}; + float _cosAngleMax{}; }; diff --git a/include/Criteria/Crit3_2DAngleTimesR.h b/include/Criteria/Crit3_2DAngleTimesR.h index ae79416..6992803 100644 --- a/include/Criteria/Crit3_2DAngleTimesR.h +++ b/include/Criteria/Crit3_2DAngleTimesR.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _angleMin; - float _angleMax; + float _angleMin{}; + float _angleMax{}; }; diff --git a/include/Criteria/Crit3_3DAngle.h b/include/Criteria/Crit3_3DAngle.h index 74f896d..ef86e34 100644 --- a/include/Criteria/Crit3_3DAngle.h +++ b/include/Criteria/Crit3_3DAngle.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _cosAngleMin; - float _cosAngleMax; + float _cosAngleMin{}; + float _cosAngleMax{}; }; diff --git a/include/Criteria/Crit3_3DAngleTimesR.h b/include/Criteria/Crit3_3DAngleTimesR.h index 1beb5e3..0aa5c2d 100644 --- a/include/Criteria/Crit3_3DAngleTimesR.h +++ b/include/Criteria/Crit3_3DAngleTimesR.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _angleMin; - float _angleMax; + float _angleMin{}; + float _angleMax{}; }; diff --git a/include/Criteria/Crit3_ChangeRZRatio.h b/include/Criteria/Crit3_ChangeRZRatio.h index dea3415..05ffcc8 100644 --- a/include/Criteria/Crit3_ChangeRZRatio.h +++ b/include/Criteria/Crit3_ChangeRZRatio.h @@ -23,8 +23,8 @@ namespace KiTrack{ private: - float _ratioChangeMaxSquared; - float _ratioChangeMinSquared; + float _ratioChangeMaxSquared{}; + float _ratioChangeMinSquared{}; diff --git a/include/Criteria/Crit3_IPCircleDist.h b/include/Criteria/Crit3_IPCircleDist.h index 20813b4..cc126c8 100644 --- a/include/Criteria/Crit3_IPCircleDist.h +++ b/include/Criteria/Crit3_IPCircleDist.h @@ -23,8 +23,8 @@ namespace KiTrack{ private: - float _distToCircleMax; - float _distToCircleMin; + float _distToCircleMax{}; + float _distToCircleMin{}; }; diff --git a/include/Criteria/Crit3_IPCircleDistTimesR.h b/include/Criteria/Crit3_IPCircleDistTimesR.h index 1babe50..6aa5278 100644 --- a/include/Criteria/Crit3_IPCircleDistTimesR.h +++ b/include/Criteria/Crit3_IPCircleDistTimesR.h @@ -23,8 +23,8 @@ namespace KiTrack{ private: - float _distToCircleMax; - float _distToCircleMin; + float _distToCircleMax{}; + float _distToCircleMin{}; }; diff --git a/include/Criteria/Crit3_NoZigZag_MV.h b/include/Criteria/Crit3_NoZigZag_MV.h index 2a7c7a1..48050a0 100644 --- a/include/Criteria/Crit3_NoZigZag_MV.h +++ b/include/Criteria/Crit3_NoZigZag_MV.h @@ -29,8 +29,8 @@ namespace KiTrack{ private: - float _prodMin; - float _prodMax; + float _prodMin{}; + float _prodMax{}; }; diff --git a/include/Criteria/Crit3_PT.h b/include/Criteria/Crit3_PT.h index 1e631ac..c4ab555 100644 --- a/include/Criteria/Crit3_PT.h +++ b/include/Criteria/Crit3_PT.h @@ -23,9 +23,9 @@ namespace KiTrack{ private: - float _ptMin; - float _ptMax; - float _Bz; + float _ptMin{}; + float _ptMax{}; + float _Bz{}; }; diff --git a/include/Criteria/Crit3_PT_MV.h b/include/Criteria/Crit3_PT_MV.h index 4e999cd..8720870 100644 --- a/include/Criteria/Crit3_PT_MV.h +++ b/include/Criteria/Crit3_PT_MV.h @@ -23,9 +23,9 @@ namespace KiTrack{ private: - float _ptMin; - float _ptMax; - float _Bz; + float _ptMin{}; + float _ptMax{}; + float _Bz{}; }; diff --git a/include/Criteria/Crit4_2DAngleChange.h b/include/Criteria/Crit4_2DAngleChange.h index d085339..ea3a8ff 100644 --- a/include/Criteria/Crit4_2DAngleChange.h +++ b/include/Criteria/Crit4_2DAngleChange.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _changeMin; - float _changeMax; + float _changeMin{}; + float _changeMax{}; }; diff --git a/include/Criteria/Crit4_3DAngleChange.h b/include/Criteria/Crit4_3DAngleChange.h index 6c5fa5e..77874e4 100644 --- a/include/Criteria/Crit4_3DAngleChange.h +++ b/include/Criteria/Crit4_3DAngleChange.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _changeMin; - float _changeMax; + float _changeMin{}; + float _changeMax{}; }; diff --git a/include/Criteria/Crit4_3DAngleChangeNormed.h b/include/Criteria/Crit4_3DAngleChangeNormed.h index 5ddade6..942ae0b 100644 --- a/include/Criteria/Crit4_3DAngleChangeNormed.h +++ b/include/Criteria/Crit4_3DAngleChangeNormed.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _changeMin; - float _changeMax; + float _changeMin{}; + float _changeMax{}; }; diff --git a/include/Criteria/Crit4_DistOfCircleCenters.h b/include/Criteria/Crit4_DistOfCircleCenters.h index e27b593..afe0586 100644 --- a/include/Criteria/Crit4_DistOfCircleCenters.h +++ b/include/Criteria/Crit4_DistOfCircleCenters.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _distMax; - float _distMin; + float _distMax{}; + float _distMin{}; }; diff --git a/include/Criteria/Crit4_DistToExtrapolation.h b/include/Criteria/Crit4_DistToExtrapolation.h index 8b55cfe..55ea8ae 100644 --- a/include/Criteria/Crit4_DistToExtrapolation.h +++ b/include/Criteria/Crit4_DistToExtrapolation.h @@ -27,8 +27,8 @@ namespace KiTrack{ private: - float _distMin; - float _distMax; + float _distMin{}; + float _distMax{}; }; diff --git a/include/Criteria/Crit4_NoZigZag.h b/include/Criteria/Crit4_NoZigZag.h index d89aa46..44d7824 100644 --- a/include/Criteria/Crit4_NoZigZag.h +++ b/include/Criteria/Crit4_NoZigZag.h @@ -29,8 +29,8 @@ namespace KiTrack{ private: - float _prodMin; - float _prodMax; + float _prodMin{}; + float _prodMax{}; }; diff --git a/include/Criteria/Crit4_PhiZRatioChange.h b/include/Criteria/Crit4_PhiZRatioChange.h index 83304db..1c5c1d3 100644 --- a/include/Criteria/Crit4_PhiZRatioChange.h +++ b/include/Criteria/Crit4_PhiZRatioChange.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _changeMin; - float _changeMax; + float _changeMin{}; + float _changeMax{}; }; diff --git a/include/Criteria/Crit4_RChange.h b/include/Criteria/Crit4_RChange.h index 6da28b9..60912ac 100644 --- a/include/Criteria/Crit4_RChange.h +++ b/include/Criteria/Crit4_RChange.h @@ -25,8 +25,8 @@ namespace KiTrack{ private: - float _changeMin; - float _changeMax; + float _changeMin{}; + float _changeMax{}; }; diff --git a/include/Criteria/ICriterion.h b/include/Criteria/ICriterion.h index f9323ce..bb95eb2 100644 --- a/include/Criteria/ICriterion.h +++ b/include/Criteria/ICriterion.h @@ -49,12 +49,12 @@ namespace KiTrack{ protected: - std::map < std::string , float > _map_name_value; + std::map < std::string , float > _map_name_value{}; - bool _saveValues; + bool _saveValues{}; - std::string _name; - std::string _type; + std::string _name{}; + std::string _type{}; }; diff --git a/include/Criteria/SimpleCircle.h b/include/Criteria/SimpleCircle.h index 228456c..4b4c3f9 100644 --- a/include/Criteria/SimpleCircle.h +++ b/include/Criteria/SimpleCircle.h @@ -26,17 +26,17 @@ class SimpleCircle { private: - double _R; - double _centerX; - double _centerY; + double _R{}; + double _centerX{}; + double _centerY{}; - double _x1; - double _x2; - double _x3; + double _x1{}; + double _x2{}; + double _x3{}; - double _y1; - double _y2; - double _y3; + double _y1{}; + double _y2{}; + double _y3{}; diff --git a/include/KiTrack/Automaton.h b/include/KiTrack/Automaton.h index efd2a7b..249aa35 100644 --- a/include/KiTrack/Automaton.h +++ b/include/KiTrack/Automaton.h @@ -187,13 +187,13 @@ namespace KiTrack{ * The segments will be deleted by the Automaton in the destructor * */ - std::vector < std::list < Segment* > > _segments; + std::vector < std::list < Segment* > > _segments{}; /** A vector containing all the criteria, that are used in the Automaton */ - std::vector < ICriterion* > _criteria; + std::vector < ICriterion* > _criteria{}; - unsigned _nConnections; + unsigned _nConnections{}; diff --git a/include/KiTrack/HopfieldNeuralNet.h b/include/KiTrack/HopfieldNeuralNet.h index 9120071..472e1c1 100644 --- a/include/KiTrack/HopfieldNeuralNet.h +++ b/include/KiTrack/HopfieldNeuralNet.h @@ -77,37 +77,37 @@ namespace KiTrack{ /** the matrix of the weights*/ - std::vector < std::vector > _W; + std::vector < std::vector > _W{}; /** states describing how active a neuron is*/ - std::vector < double > _States; + std::vector < double > _States{}; - std::vector < double > _w0; + std::vector < double > _w0{}; /** temperature */ - double _T; + double _T{}; /** temperature after infinite iterations */ - double _TInf; + double _TInf{}; /** indicates if the neuronal network is stable. * this is true when the change after one iteration * of any neuron is not bigger than the value _limitForStable. */ - bool _isStable; + bool _isStable{}; /** The upper limit for change of a neuron, if it should be considered stabel.*/ - double _limitForStable; + double _limitForStable{}; /** Omega controls the influence of the quality indicator on the activation of the neuron. */ - double _omega; + double _omega{}; /** the order of the neurons to be updated. So it should of course reach from 0 to the number of neurons -1. * (4 , 2, 0 1, 3) will for example mean: update first the neuron 4, then the neuron 2, then 0 and so on */ - std::vector _order; + std::vector _order{}; /** Calculates the activation function diff --git a/include/KiTrack/IHit.h b/include/KiTrack/IHit.h index 6020ce8..736c6d2 100644 --- a/include/KiTrack/IHit.h +++ b/include/KiTrack/IHit.h @@ -48,7 +48,7 @@ namespace KiTrack{ std::string getPositionInfo(); /** to be used with mini-vectors: @return 3D angle */ //YV - double get3DAngle( IHit* otherHit) const { return _3DAngle ; } + double get3DAngle( IHit* /*otherHit*/) const { return _3DAngle ; } /** to be used with mini-vectors: @return azimuth angle */ //YV double getPhi() const { return _phiMV ; } @@ -61,18 +61,18 @@ namespace KiTrack{ protected: - float _x; - float _y; - float _z; + float _x{}; + float _y{}; + float _z{}; - double _3DAngle; //YV - double _phiMV; //YV - double _thetaMV; //YV + double _3DAngle{}; //YV + double _phiMV{}; //YV + double _thetaMV{}; //YV - int _sector; + int _sector{}; - bool _isVirtual; + bool _isVirtual{}; }; diff --git a/include/KiTrack/ISectorSystem.h b/include/KiTrack/ISectorSystem.h index af67c3e..b979d78 100644 --- a/include/KiTrack/ISectorSystem.h +++ b/include/KiTrack/ISectorSystem.h @@ -42,7 +42,7 @@ namespace KiTrack{ protected: - unsigned _nLayers; + unsigned _nLayers{}; diff --git a/include/KiTrack/KiTrackExceptions.h b/include/KiTrack/KiTrackExceptions.h index 4d4499f..918f70c 100644 --- a/include/KiTrack/KiTrackExceptions.h +++ b/include/KiTrack/KiTrackExceptions.h @@ -17,7 +17,7 @@ namespace KiTrack { protected: - std::string message ; + std::string message{} ; KiTrackException(){ /*no_op*/ ; } diff --git a/include/KiTrack/Segment.h b/include/KiTrack/Segment.h index b2e5d07..6a31c2f 100644 --- a/include/KiTrack/Segment.h +++ b/include/KiTrack/Segment.h @@ -78,17 +78,17 @@ namespace KiTrack{ private: - std::list _children; - std::list _parents; + std::list _children{}; + std::list _parents{}; - std::vector _hits; + std::vector _hits{}; - std::vector _state; + std::vector _state{}; - unsigned _layer; - bool _active; + unsigned _layer{}; + bool _active{}; }; diff --git a/include/KiTrack/SegmentBuilder.h b/include/KiTrack/SegmentBuilder.h index 1e417eb..a33a4f7 100644 --- a/include/KiTrack/SegmentBuilder.h +++ b/include/KiTrack/SegmentBuilder.h @@ -68,10 +68,10 @@ namespace KiTrack{ private: - std::vector _criteria; - std::vector _sectorConnectors; + std::vector _criteria{}; + std::vector _sectorConnectors{}; - std::map< int , std::vector< IHit* > > _map_sector_hits; + std::map< int , std::vector< IHit* > > _map_sector_hits{}; diff --git a/include/KiTrack/Subset.h b/include/KiTrack/Subset.h index a52f87c..6b3e9fd 100644 --- a/include/KiTrack/Subset.h +++ b/include/KiTrack/Subset.h @@ -41,9 +41,9 @@ namespace KiTrack { protected: - std::vector< T > _elements; - std::vector< T > _acceptedElements; - std::vector< T > _rejectedElements; + std::vector< T > _elements{}; + std::vector< T > _acceptedElements{}; + std::vector< T > _rejectedElements{}; }; diff --git a/include/KiTrack/SubsetHopfieldNN.h b/include/KiTrack/SubsetHopfieldNN.h index 3c8f695..50b225c 100644 --- a/include/KiTrack/SubsetHopfieldNN.h +++ b/include/KiTrack/SubsetHopfieldNN.h @@ -131,13 +131,13 @@ std::vector< Artist > artistsToStayAtHome = subset.getRejected(); protected: - double _TStart; - double _TInf; - double _omega; - double _limitForStable; - double _initStateMin; - double _initStateMax; - double _activationThreshold; + double _TStart{}; + double _TInf{}; + double _omega{}; + double _limitForStable{}; + double _initStateMin{}; + double _initStateMax{}; + double _activationThreshold{}; };