-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from DUNE/liam_dev
Add 3D TMS_Track class
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |