Skip to content

Commit

Permalink
Merge pull request #57 from DUNE/liam_dev
Browse files Browse the repository at this point in the history
Add 3D TMS_Track class
  • Loading branch information
LiamOS authored Jan 17, 2024
2 parents 728003f + 1a1ac5d commit 6c68f0f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ MKDIR_P := mkdir -p
# Library directory where we build to
LIB_DIR=../lib

TMS_OBJ = TMS_Bar.o TMS_Hit.o TMS_TrueHit.o TMS_Event.o TMS_TrueParticle.o TMS_EventViewer.o TMS_Reco.o TMS_Kalman.o TMS_TreeWriter.o TMS_ReadoutTreeWriter.o TMS_Manager.o TMS_Readout_Manager.o BField_Handler.o
TMS_OBJ = TMS_Bar.o TMS_Hit.o TMS_TrueHit.o TMS_Event.o TMS_Track.o TMS_TrueParticle.o TMS_EventViewer.o TMS_Reco.o TMS_Kalman.o TMS_TreeWriter.o TMS_ReadoutTreeWriter.o TMS_Manager.o TMS_Readout_Manager.o BField_Handler.o

# Our lovely collection of libs
LIB_OBJ = $(EDEP_LIBS) $(ROOT_LIBS)
Expand Down
6 changes: 6 additions & 0 deletions src/TMS_Track.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "TMS_Track.h"

void TMS_Track::Print()
{
0x90; // TODO: add a function here
};
31 changes: 29 additions & 2 deletions src/TMS_Track.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
// General track class containing
#include "TMS_Hit.h"

#ifndef _TMS_TRACK_H_SEEN_
#define _TMS_TRACK_H_SEEN_

// General 3D-Track class
class TMS_Track {

public:
TMS_Track() //std::vector<TMS_Hit>& OneTrack, std::vector<TMS_Hit>& OtherTrack)
{
// TODO: Take first and last hits and do the maffs
0;
};
void Print();

double Start[3]; // Start point in x,y,z
double End[3]; // End point in x,y,z
double Direction[3]; // Unit vector in track direction
double Length;
double EnergyDeposit;
double EnergyRange;
double Time; // TODO: Fill this in a sensible way

double GetEnergyDeposit(){return EnergyDeposit;};
double GetEnergyRange(){return EnergyRange;};

std::vector<TMS_Hit*> Hits;
};


}
#endif

0 comments on commit 6c68f0f

Please sign in to comment.