Skip to content
Snippets Groups Projects
Commit 13f1eebd authored by Patrick Scholer's avatar Patrick Scholer
Browse files

cleanup of MMClusterOnTrack

parent 54581ed9
No related branches found
No related tags found
5 merge requests!46457Draft: Adding the tools to run over data,!46454Draft: Adding the tools to be able to run over data,!44869Draft: Update to candidate store,!43121Sweep 21.3.25 into 21.9,!42298cleanup of MMClusterOnTrack
......@@ -53,8 +53,8 @@ namespace Muon
const Trk::LocalParameters& locpos,
const Amg::MatrixX& locerr,
double positionAlongStrip,
std::vector<float> stripDriftDists = std::vector<float>(0),
std::vector<Amg::MatrixX> stripDriftDistErrors = std::vector<Amg::MatrixX>(0));
const std::vector<float>& stripDriftDists = std::vector<float>(0),
const std::vector<Amg::MatrixX>& stripDriftDistErrors = std::vector<Amg::MatrixX>(0));
// Alternate constructor that doesn't dereference the RIO link.
MMClusterOnTrack(
......@@ -64,8 +64,8 @@ namespace Muon
const Identifier& id,
const MuonGM::MMReadoutElement* detEl,
double positionAlongStrip,
std::vector<float> stripDriftDists = std::vector<float>(0),
std::vector<Amg::MatrixX> stripDriftDistErrors = std::vector<Amg::MatrixX>(0));
const std::vector<float>& stripDriftDists = std::vector<float>(0),
const std::vector<Amg::MatrixX>& stripDriftDistErrors = std::vector<Amg::MatrixX>(0));
/** @brief Destructor*/
virtual ~MMClusterOnTrack();
......
......@@ -12,14 +12,18 @@ namespace Muon
MMClusterOnTrack::MMClusterOnTrack():
MuonClusterOnTrack(), // call base class ctor
m_rio(),
m_detEl(0)
m_detEl(0),
m_stripDriftDists(std::vector<float>(0)),
m_stripDriftDistErrors(std::vector<Amg::MatrixX>(0))
{}
// copy constructor:
MMClusterOnTrack::MMClusterOnTrack( const MMClusterOnTrack& rot):
MuonClusterOnTrack(rot), // base clas ctor
m_rio(rot.m_rio),
m_detEl(rot.m_detEl)
m_detEl(rot.m_detEl),
m_stripDriftDists(rot.m_stripDriftDists),
m_stripDriftDistErrors(rot.m_stripDriftDistErrors)
{}
// Constructor with parameters
......@@ -28,8 +32,8 @@ namespace Muon
const Trk::LocalParameters& locpos,
const Amg::MatrixX& locerr,
double positionAlongStrip,
std::vector<float> stripDriftDists,
std::vector<Amg::MatrixX> stripDriftDistErrors) :
const std::vector<float>& stripDriftDists,
const std::vector<Amg::MatrixX>& stripDriftDistErrors) :
MuonClusterOnTrack(locpos, locerr, RIO->identify(), positionAlongStrip), //call base class constructor
m_detEl( RIO->detectorElement() ),
m_stripDriftDists(stripDriftDists),
......@@ -47,8 +51,8 @@ namespace Muon
const Identifier& id,
const MuonGM::MMReadoutElement* detEl,
double positionAlongStrip,
std::vector<float> stripDriftDists,
std::vector<Amg::MatrixX> stripDriftDistErrors) :
const std::vector<float>& stripDriftDists,
const std::vector<Amg::MatrixX>& stripDriftDistErrors) :
MuonClusterOnTrack(locpos, locerr, id, positionAlongStrip), // call base class constructor
m_rio( RIO ),
m_detEl( detEl ),
......@@ -71,6 +75,9 @@ namespace Muon
MuonClusterOnTrack::operator=(rot);//base class ass. op.
m_rio = rot.m_rio;
m_detEl = rot.m_detEl;
m_stripDriftDists = rot.m_stripDriftDists;
m_stripDriftDistErrors = rot.m_stripDriftDistErrors;
}
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment