Skip to content

Commit

Permalink
TrackPair: initialise members
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed May 2, 2017
1 parent 37caad6 commit c536970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions source/include/TrackPair.h
Expand Up @@ -38,11 +38,11 @@ class TrackPair {
private:

TrackVec _trkVec;
float _distance;
float _distance=0.0;
float _vertex[3];
float _momentum[3];
float _mass;
int _code;
float _mass=0.0;
int _code=0;

};

Expand Down
9 changes: 3 additions & 6 deletions source/src/TrackPair.cc
@@ -1,11 +1,8 @@
#include "TrackPair.h"

TrackPair::TrackPair() {
_trkVec.clear();
_trkVec.resize(2);
_trkVec[0] = NULL;
_trkVec[1] = NULL;
}
TrackPair::TrackPair():
_trkVec(2, NULL)
{}

TrackPair::~TrackPair() {
_trkVec.clear();
Expand Down

0 comments on commit c536970

Please sign in to comment.