Commit 86969de1 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Move last two objects, KDTree.hpp and MCParticle.hpp

parent f5f278fd
#include "AnalysisTelescope.h"
#include "objects/Cluster.hpp"
#include "objects/MCParticle.h"
#include "objects/MCParticle.hpp"
#include <TDirectory.h>
......
......@@ -4,7 +4,7 @@
#include <TH1F.h>
#include <iostream>
#include "core/module/Module.hpp"
#include "objects/MCParticle.h"
#include "objects/MCParticle.hpp"
#include "objects/Track.hpp"
namespace corryvreckan {
......
#include "Tracking4D.h"
#include <TCanvas.h>
#include <TDirectory.h>
#include "objects/KDTree.h"
#include "objects/KDTree.hpp"
using namespace corryvreckan;
using namespace std;
......
#include "TrackingSpatial.h"
#include <TDirectory.h>
#include "objects/KDTree.h"
#include "objects/KDTree.hpp"
using namespace corryvreckan;
using namespace std;
......
......@@ -18,12 +18,12 @@ ENDIF()
ROOT_GENERATE_DICTIONARY(CorryvreckanObjectsDictionary
${CMAKE_CURRENT_SOURCE_DIR}/Cluster.hpp
${CMAKE_CURRENT_SOURCE_DIR}/GuiDisplay.hpp
${CMAKE_CURRENT_SOURCE_DIR}/KDTree.h
${CMAKE_CURRENT_SOURCE_DIR}/KDTree.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Pixel.hpp
${CMAKE_CURRENT_SOURCE_DIR}/SpidrSignal.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Object.hpp
${CMAKE_CURRENT_SOURCE_DIR}/Track.hpp
${CMAKE_CURRENT_SOURCE_DIR}/MCParticle.h
${CMAKE_CURRENT_SOURCE_DIR}/MCParticle.hpp
LINKDEF
${CMAKE_CURRENT_SOURCE_DIR}/Linkdef.h
OPTIONS
......
......@@ -19,18 +19,18 @@ namespace corryvreckan {
: Object(detectorID, timestamp), m_particle_id(particle_id), m_local_start_point(local_start_point),
m_local_end_point(local_end_point) {}
// Member variables
// Member functions
int getID() const { return m_particle_id; }
ROOT::Math::XYZPoint getLocalStart() const { return m_local_start_point; }
ROOT::Math::XYZPoint getLocalEnd() const { return m_local_end_point; }
private:
int m_particle_id;
ROOT::Math::XYZPoint m_local_start_point;
ROOT::Math::XYZPoint m_local_end_point;
// Member functions
int getID() { return m_particle_id; }
ROOT::Math::XYZPoint getLocalStart() { return m_local_start_point; }
ROOT::Math::XYZPoint getLocalEnd() { return m_local_end_point; }
// ROOT I/O class definition - update version number when you change this class!
ClassDef(MCParticle, 2)
ClassDef(MCParticle, 3)
};
// Vector type declaration
......
#include "Object.hpp"
#include "Cluster.hpp"
#include "MCParticle.h"
#include "MCParticle.hpp"
#include "Pixel.hpp"
#include "Track.hpp"
......
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