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

Modules: new interface for finalize function

parent b0ad1b99
......@@ -46,7 +46,7 @@ namespace corryvreckan {
/**
* @brief [Finalise module]
*/
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
static void MinimiseResiduals(Int_t& npar, Double_t* grad, Double_t& result, Double_t* par, Int_t flag);
......
......@@ -31,7 +31,7 @@ namespace corryvreckan {
virtual ~AlignmentMillepede();
void initialise();
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
StatusCode run(std::shared_ptr<Clipboard>);
virtual void updateGeometry();
......
......@@ -36,7 +36,7 @@ namespace corryvreckan {
// Functions
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
static void MinimiseTrackChi2(Int_t& npar, Double_t* grad, Double_t& result, Double_t* par, Int_t flag);
......
......@@ -31,7 +31,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -38,7 +38,7 @@ namespace corryvreckan {
AnalysisEfficiency(Configuration config, std::shared_ptr<Detector> detector);
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -34,7 +34,7 @@ namespace corryvreckan {
AnalysisTimingATLASpix(Configuration config, std::shared_ptr<Detector> detector);
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -33,7 +33,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -46,7 +46,7 @@ namespace corryvreckan {
/**
* @brief [Finalise module]
*/
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
int m_eventNumber;
......
......@@ -36,7 +36,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
ROOT::Math::XYVector pixelIntercept(Track* tr);
......
......@@ -36,7 +36,6 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise(){};
private:
void applyEta(Cluster* cluster);
......
......@@ -37,7 +37,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -43,7 +43,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
......@@ -60,7 +60,7 @@ namespace corryvreckan {
/**
* @brief [Finalise this module]
*/
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
/**
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
static bool sortByTime(std::string filename1, std::string filename2);
......
......@@ -55,7 +55,7 @@ namespace corryvreckan {
/**
* @brief Output summary and close the ROOT file
*/
void finalise() override;
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
/**
......
......@@ -52,7 +52,7 @@ namespace corryvreckan {
/**
* @brief Finalize file writing, provide statistics information
*/
void finalise() override;
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
// Object names to include or exclude from writing
......
......@@ -34,7 +34,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
// Histograms for several devices
std::map<std::string, TH2F*> plotPerDevice;
......
......@@ -52,7 +52,7 @@ namespace corryvreckan {
/**
* @brief No specific actions implemented
*/
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
int m_eventNumber;
......
......@@ -30,7 +30,7 @@ namespace corryvreckan {
// Functions
void initialise();
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
void localDensityEstimator();
......
......@@ -27,7 +27,7 @@ namespace corryvreckan {
// Functions
StatusCode run(std::shared_ptr<Clipboard> clipboard);
void finalise();
void finalize(const std::shared_ptr<ReadonlyClipboard>& clipboard) override;
private:
std::shared_ptr<Detector> m_detector;
......
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