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

Rename SpidSignal.h -> SpidSignal.hpp and clean up class a bit

parent b0a0e36c
#include "AnalysisPowerPulsing.h"
#include "objects/Cluster.hpp"
#include "objects/SpidrSignal.h"
#include "objects/SpidrSignal.hpp"
using namespace corryvreckan;
using namespace std;
......
......@@ -7,7 +7,7 @@
#include <stdio.h>
#include "core/module/Module.hpp"
#include "objects/Pixel.hpp"
#include "objects/SpidrSignal.h"
#include "objects/SpidrSignal.hpp"
namespace corryvreckan {
/** @ingroup Modules
......
#include "ImproveReferenceTimestamp.h"
#include "objects/SpidrSignal.h"
#include "objects/SpidrSignal.hpp"
using namespace corryvreckan;
using namespace std;
......
......@@ -20,7 +20,7 @@ ROOT_GENERATE_DICTIONARY(CorryvreckanObjectsDictionary
${CMAKE_CURRENT_SOURCE_DIR}/GuiDisplay.h
${CMAKE_CURRENT_SOURCE_DIR}/KDTree.h
${CMAKE_CURRENT_SOURCE_DIR}/Pixel.hpp
${CMAKE_CURRENT_SOURCE_DIR}/SpidrSignal.h
${CMAKE_CURRENT_SOURCE_DIR}/SpidrSignal.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Object.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Track.hpp
${CMAKE_CURRENT_SOURCE_DIR}/MCParticle.h
......
......@@ -7,28 +7,23 @@ namespace corryvreckan {
public:
// Constructors and destructors
SpidrSignal() {}
SpidrSignal() = delete;
SpidrSignal(std::string type, double timestamp) : Object(timestamp), m_type(type){};
// virtual ~SpidrSignal() {}
// Functions
// Set properties
void type(std::string type) { m_type = type; }
// Retrieve properties
std::string type() { return m_type; }
std::string type() const { return m_type; }
protected:
// Member variables
std::string m_type;
// ROOT I/O class definition - update version number when you change this class!
ClassDef(SpidrSignal, 2)
ClassDef(SpidrSignal, 3)
};
// Vector type declaration
typedef std::vector<SpidrSignal*> SpidrSignals;
using SpidrSignals = std::vector<SpidrSignal*>;
} // namespace corryvreckan
#endif // SPIDRSIGNAL_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