Commit 74907bc0 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Rename TestAlgorithm -> Correlations

parent 4b45c9c2
#include "TestAlgorithm.h"
#include "Correlations.h"
using namespace corryvreckan;
using namespace std;
TestAlgorithm::TestAlgorithm(Configuration config, std::shared_ptr<Detector> detector)
Correlations::Correlations(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) {
makeCorrelations = m_config.get<bool>("make_correlations", false);
......@@ -20,7 +20,7 @@ TestAlgorithm::TestAlgorithm(Configuration config, std::shared_ptr<Detector> det
m_corr_vs_time = m_config.get<bool>("correlation_vs_time", false);
}
void TestAlgorithm::initialise() {
void Correlations::initialise() {
if(m_detector->isAuxiliary()) {
return;
......@@ -159,7 +159,7 @@ void TestAlgorithm::initialise() {
eventTimes = new TH1F("eventTimes", title.c_str(), 3000000, 0, 300);
}
StatusCode TestAlgorithm::run(std::shared_ptr<Clipboard> clipboard) {
StatusCode Correlations::run(std::shared_ptr<Clipboard> clipboard) {
// Get the pixels
auto pixels = clipboard->getData<Pixel>(m_detector->name());
......
#ifndef TESTALGORITHM_H
#define TESTALGORITHM_H 1
#ifndef CORRELATIONS_H
#define CORRELATIONS_H 1
#include <TCanvas.h>
#include <TH1F.h>
......@@ -12,12 +12,12 @@
namespace corryvreckan {
/** @ingroup Modules
*/
class TestAlgorithm : public Module {
class Correlations : public Module {
public:
// Constructors and destructors
TestAlgorithm(Configuration config, std::shared_ptr<Detector> detector);
~TestAlgorithm() {}
Correlations(Configuration config, std::shared_ptr<Detector> detector);
~Correlations() {}
// Functions
void initialise();
......@@ -58,4 +58,4 @@ namespace corryvreckan {
bool m_corr_vs_time;
};
} // namespace corryvreckan
#endif // TESTALGORITHM_H
#endif // CORRELATIONS_H
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