Commit f3c4b2b7 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Modules: properly set override flag for initialize function

parent c2f8c739
......@@ -39,7 +39,7 @@ AlignmentDUTResidual::AlignmentDUTResidual(Configuration config, std::shared_ptr
LOG(INFO) << "Aligning detector \"" << m_detector->getName() << "\"";
}
void AlignmentDUTResidual::initialise() {
void AlignmentDUTResidual::initialize() {
auto detname = m_detector->getName();
std::string title = detname + " Residuals X;x_{track}-x [#mum];events";
......
......@@ -36,7 +36,7 @@ namespace corryvreckan {
/**
* @brief [Initialise this module]
*/
void initialise();
void initialize() override;
/**
* @brief [Run the function of this module]
......
......@@ -47,7 +47,7 @@ AlignmentMillepede::~AlignmentMillepede() {}
//=============================================================================
// Initialization
//=============================================================================
void AlignmentMillepede::initialise() {
void AlignmentMillepede::initialize() {
// Renumber the planes in Millepede, ignoring masked planes.
unsigned int index = 0;
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
/// Destructor
virtual ~AlignmentMillepede();
void initialise();
void initialize() override;
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
StatusCode run(std::shared_ptr<Clipboard>);
......
......@@ -24,7 +24,7 @@ AnalysisDUT::AnalysisDUT(Configuration config, std::shared_ptr<Detector> detecto
useClosestCluster = m_config.get<bool>("use_closest_cluster", true);
}
void AnalysisDUT::initialise() {
void AnalysisDUT::initialize() {
hClusterMapAssoc = new TH2F("clusterMapAssoc",
"clusterMapAssoc; cluster col; cluster row",
......
......@@ -29,7 +29,7 @@ namespace corryvreckan {
~AnalysisDUT() {}
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
......
......@@ -25,7 +25,7 @@ AnalysisEfficiency::AnalysisEfficiency(Configuration config, std::shared_ptr<Det
m_inpixelBinSize = m_config.get<double>("inpixel_bin_size", Units::get<double>(1.0, "um"));
}
void AnalysisEfficiency::initialise() {
void AnalysisEfficiency::initialize() {
hPixelEfficiency = new TH1D(
"hPixelEfficiency", "hPixelEfficiency; single pixel efficiency; # entries", 201, 0, 1.005); // get 0.5%-wide bins
......
......@@ -36,7 +36,7 @@ namespace corryvreckan {
* @param detector Pointer to the detector for this module instance
*/
AnalysisEfficiency(Configuration config, std::shared_ptr<Detector> detector);
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
......
......@@ -18,7 +18,7 @@ using namespace std;
AnalysisPowerPulsing::AnalysisPowerPulsing(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) {}
void AnalysisPowerPulsing::initialise() {
void AnalysisPowerPulsing::initialize() {
// int timeN = 1500000;
// int timeN = 3000000;
......
......@@ -33,7 +33,7 @@ namespace corryvreckan {
AnalysisPowerPulsing(Configuration config, std::shared_ptr<Detector> detector);
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
private:
......
......@@ -23,7 +23,7 @@ AnalysisTelescope::AnalysisTelescope(Configuration config, std::vector<std::shar
chi2ndofCut = m_config.get<double>("chi2ndof_cut", 3.);
}
void AnalysisTelescope::initialise() {
void AnalysisTelescope::initialize() {
// Initialise biased telescope residuals per telescope device and telescope resolution plots (using MCparticles) at the
// position of the DUTs
......
......@@ -27,7 +27,7 @@ namespace corryvreckan {
AnalysisTelescope(Configuration config, std::vector<std::shared_ptr<Detector>> detectors);
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
private:
......
......@@ -81,7 +81,7 @@ AnalysisTimingATLASpix::AnalysisTimingATLASpix(Configuration config, std::shared
tracks_afterClusterSizeCut = 0;
}
void AnalysisTimingATLASpix::initialise() {
void AnalysisTimingATLASpix::initialize() {
auto pitch_x = static_cast<double>(Units::convert(m_detector->getPitch().X(), "um"));
auto pitch_y = static_cast<double>(Units::convert(m_detector->getPitch().Y(), "um"));
......
......@@ -32,7 +32,7 @@ namespace corryvreckan {
* @param detector Pointer to the detector for this module instance
*/
AnalysisTimingATLASpix(Configuration config, std::shared_ptr<Detector> detector);
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
......
......@@ -36,7 +36,7 @@ Clustering4D::Clustering4D(Configuration config, std::shared_ptr<Detector> detec
reject_by_ROI_ = m_config.get<bool>("reject_by_roi", false);
}
void Clustering4D::initialise() {
void Clustering4D::initialize() {
// Cluster plots
std::string title = m_detector->getName() + " Cluster size;cluster size;events";
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
~Clustering4D() {}
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
private:
......
......@@ -22,7 +22,7 @@ ClusteringSpatial::ClusteringSpatial(Configuration config, std::shared_ptr<Detec
rejectByROI = m_config.get<bool>("reject_by_roi", false);
}
void ClusteringSpatial::initialise() {
void ClusteringSpatial::initialize() {
// Cluster plots
std::string title = m_detector->getName() + " Cluster size;cluster size;events";
......
......@@ -29,7 +29,7 @@ namespace corryvreckan {
~ClusteringSpatial() {}
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
private:
......
......@@ -33,7 +33,7 @@ Correlations::Correlations(Configuration config, std::shared_ptr<Detector> detec
m_corr_vs_time = m_config.get<bool>("correlation_vs_time", false);
}
void Correlations::initialise() {
void Correlations::initialize() {
// Do not produce correlations plots for auxiliary devices
if(m_detector->isAuxiliary()) {
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
~Correlations() {}
// Functions
void initialise();
void initialize() override;
StatusCode run(std::shared_ptr<Clipboard> clipboard);
private:
......
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