Commit 9ed1777f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Adjust module definitions to new footprint

parent ed6cf807
Pipeline #1612936 passed with stages
in 20 minutes and 39 seconds
......@@ -19,7 +19,7 @@ using namespace corryvreckan;
TrackVector globalTracks;
std::shared_ptr<Detector> globalDetector;
AlignmentDUTResidual::AlignmentDUTResidual(Configuration config, std::shared_ptr<Detector> detector)
AlignmentDUTResidual::AlignmentDUTResidual(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector), m_detector(detector) {
nIterations = config_.get<size_t>("iterations", 3);
......
......@@ -31,7 +31,7 @@ namespace corryvreckan {
* @param config Configuration object for this module as retrieved from the steering file
* @param detector Pointer to the detector for this module instance
*/
AlignmentDUTResidual(Configuration config, std::shared_ptr<Detector> detector);
AlignmentDUTResidual(Configuration& config, std::shared_ptr<Detector> detector);
/**
* @brief [Initialise this module]
......
......@@ -22,7 +22,7 @@ using namespace std;
//=============================================================================
// Standard constructor, initializes variables
//=============================================================================
AlignmentMillepede::AlignmentMillepede(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
AlignmentMillepede::AlignmentMillepede(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(config, std::move(detectors)) {
m_excludeDUT = config_.get<bool>("exclude_dut", false);
......
......@@ -26,7 +26,7 @@ namespace corryvreckan {
class AlignmentMillepede : public Module {
public:
/// Constructor
AlignmentMillepede(Configuration config, std::vector<std::shared_ptr<Detector>> detectors);
AlignmentMillepede(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors);
/// Destructor
virtual ~AlignmentMillepede();
......
......@@ -21,7 +21,7 @@ TrackVector globalTracks;
std::shared_ptr<Detector> globalDetector;
int detNum;
AlignmentTrackChi2::AlignmentTrackChi2(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
AlignmentTrackChi2::AlignmentTrackChi2(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(config, std::move(detectors)) {
nIterations = config_.get<size_t>("iterations", 3);
......
......@@ -31,7 +31,7 @@ namespace corryvreckan {
public:
// Constructors and destructors
AlignmentTrackChi2(Configuration config, std::vector<std::shared_ptr<Detector>> detectors);
AlignmentTrackChi2(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors);
~AlignmentTrackChi2() {}
// Functions
......
......@@ -16,7 +16,7 @@
using namespace corryvreckan;
AnalysisDUT::AnalysisDUT(Configuration config, std::shared_ptr<Detector> detector)
AnalysisDUT::AnalysisDUT(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector), m_detector(detector) {
m_timeCutFrameEdge = config_.get<double>("time_cut_frameedge", Units::get<double>(20, "ns"));
......
......@@ -25,7 +25,7 @@ namespace corryvreckan {
public:
// Constructors and destructors
AnalysisDUT(Configuration config, std::shared_ptr<Detector> detector);
AnalysisDUT(Configuration& config, std::shared_ptr<Detector> detector);
~AnalysisDUT() {}
// Functions
......
......@@ -16,7 +16,8 @@
using namespace corryvreckan;
AnalysisEfficiency::AnalysisEfficiency(Configuration config, std::shared_ptr<Detector> detector) : Module(config, detector) {
AnalysisEfficiency::AnalysisEfficiency(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector) {
m_detector = detector;
m_timeCutFrameEdge = config_.get<double>("time_cut_frameedge", Units::get<double>(20, "ns"));
......
......@@ -35,7 +35,7 @@ namespace corryvreckan {
* @param config Configuration object for this module as retrieved from the steering file
* @param detector Pointer to the detector for this module instance
*/
AnalysisEfficiency(Configuration config, std::shared_ptr<Detector> detector);
AnalysisEfficiency(Configuration& config, std::shared_ptr<Detector> detector);
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
......
......@@ -15,7 +15,7 @@
using namespace corryvreckan;
using namespace std;
AnalysisPowerPulsing::AnalysisPowerPulsing(Configuration config, std::shared_ptr<Detector> detector)
AnalysisPowerPulsing::AnalysisPowerPulsing(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector), m_detector(detector) {}
void AnalysisPowerPulsing::initialise() {
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
* @param config Configuration object for this module as retrieved from the steering file
* @param detector Pointer to the detector for this module instance
*/
AnalysisPowerPulsing(Configuration config, std::shared_ptr<Detector> detector);
AnalysisPowerPulsing(Configuration& config, std::shared_ptr<Detector> detector);
// Functions
void initialise();
......
......@@ -17,7 +17,7 @@
using namespace corryvreckan;
using namespace std;
AnalysisTelescope::AnalysisTelescope(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
AnalysisTelescope::AnalysisTelescope(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(config, std::move(detectors)) {
chi2ndofCut = config_.get<double>("chi2ndof_cut", 3.);
......
......@@ -24,7 +24,7 @@ namespace corryvreckan {
public:
// Constructors and destructors
AnalysisTelescope(Configuration config, std::vector<std::shared_ptr<Detector>> detectors);
AnalysisTelescope(Configuration& config, std::vector<std::shared_ptr<Detector>> detectors);
// Functions
void initialise();
......
......@@ -19,7 +19,7 @@
using namespace corryvreckan;
AnalysisTimingATLASpix::AnalysisTimingATLASpix(Configuration config, std::shared_ptr<Detector> detector)
AnalysisTimingATLASpix::AnalysisTimingATLASpix(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector) {
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
......
......@@ -31,7 +31,7 @@ namespace corryvreckan {
* @param config Configuration object for this module as retrieved from the steering file
* @param detector Pointer to the detector for this module instance
*/
AnalysisTimingATLASpix(Configuration config, std::shared_ptr<Detector> detector);
AnalysisTimingATLASpix(Configuration& config, std::shared_ptr<Detector> detector);
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
......
......@@ -13,7 +13,7 @@
using namespace corryvreckan;
using namespace std;
Clustering4D::Clustering4D(Configuration config, std::shared_ptr<Detector> detector)
Clustering4D::Clustering4D(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector), m_detector(detector) {
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
......
......@@ -26,7 +26,7 @@ namespace corryvreckan {
public:
// Constructors and destructors
Clustering4D(Configuration config, std::shared_ptr<Detector> detector);
Clustering4D(Configuration& config, std::shared_ptr<Detector> detector);
~Clustering4D() {}
// Functions
......
......@@ -14,7 +14,7 @@
using namespace corryvreckan;
using namespace std;
ClusteringSpatial::ClusteringSpatial(Configuration config, std::shared_ptr<Detector> detector)
ClusteringSpatial::ClusteringSpatial(Configuration& config, std::shared_ptr<Detector> detector)
: Module(config, detector), m_detector(detector) {
useTriggerTimestamp = config_.get<bool>("use_trigger_timestamp", false);
......
......@@ -25,7 +25,7 @@ namespace corryvreckan {
public:
// Constructors and destructors
ClusteringSpatial(Configuration config, std::shared_ptr<Detector> detector);
ClusteringSpatial(Configuration& config, std::shared_ptr<Detector> detector);
~ClusteringSpatial() {}
// Functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment