-
Notifications
You must be signed in to change notification settings - Fork 11
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 #115 from SBNSoftware/feature/hlay_crt_clustering
CRT Clustering CAF Objects
- Loading branch information
Showing
12 changed files
with
230 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRCRTSpacePoint.cxx | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#include "sbnanaobj/StandardRecord/SRCRTSpacePoint.h" | ||
|
||
#include <climits> | ||
|
||
namespace caf | ||
{ | ||
SRCRTSpacePoint::SRCRTSpacePoint(): | ||
pe(std::numeric_limits<float>::signaling_NaN()), | ||
time(std::numeric_limits<float>::signaling_NaN()), | ||
time_err(std::numeric_limits<float>::signaling_NaN()), | ||
complete(false) | ||
{} | ||
} // end namespace caf | ||
//////////////////////////////////////////////////////////////////////// |
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,27 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRCRTSpacePoint.h | ||
//////////////////////////////////////////////////////////////////////// | ||
#ifndef SRCRTSPACEPOINT_H | ||
#define SRCRTSPACEPOINT_H | ||
|
||
#include "sbnanaobj/StandardRecord/SRVector3D.h" | ||
|
||
namespace caf | ||
{ | ||
class SRCRTSpacePoint | ||
{ | ||
public: | ||
SRCRTSpacePoint(); | ||
virtual ~SRCRTSpacePoint() {} | ||
|
||
SRVector3D position; // position [cm] | ||
SRVector3D position_err; // positional spread [cm] | ||
float pe; // total PE | ||
float time; // time [ns] | ||
float time_err; // time_err [ns] | ||
bool complete; // was cluster made from perpendicular & overlapping strips? | ||
}; | ||
} // end namespace | ||
|
||
#endif // SRCRTSPACEPOINT_H | ||
////////////////////////////////////////////////////////////////////////////// |
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,13 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRCRTSpacePointMatch.cxx | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#include "sbnanaobj/StandardRecord/SRCRTSpacePointMatch.h" | ||
|
||
namespace caf | ||
{ | ||
SRCRTSpacePointMatch::SRCRTSpacePointMatch(): | ||
score(std::numeric_limits<float>::signaling_NaN()) | ||
{} | ||
} | ||
//////////////////////////////////////////////////////////////////////// |
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,23 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRCRTSpacePointMatch.h | ||
//////////////////////////////////////////////////////////////////////// | ||
#ifndef SRCRTSPACEPOINTMATCH_H | ||
#define SRCRTSPACEPOINTMATCH_H | ||
|
||
#include "sbnanaobj/StandardRecord/SRCRTSpacePoint.h" | ||
|
||
namespace caf | ||
{ | ||
class SRCRTSpacePointMatch | ||
{ | ||
public: | ||
SRCRTSpacePointMatch(); | ||
virtual ~SRCRTSpacePointMatch() {} | ||
|
||
SRCRTSpacePoint spacepoint; // the spacepoint | ||
float score; // assessment of quality of matching (depends on alg configuration) | ||
}; | ||
} | ||
|
||
#endif // SRCRTSPACEPOINTMATCH_H | ||
////////////////////////////////////////////////////////////////////////////// |
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,18 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRSBNDCRTTrack.cxx | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#include "sbnanaobj/StandardRecord/SRSBNDCRTTrack.h" | ||
|
||
#include <climits> | ||
|
||
namespace caf | ||
{ | ||
SRSBNDCRTTrack::SRSBNDCRTTrack(): | ||
time(std::numeric_limits<float>::signaling_NaN()), | ||
time_err(std::numeric_limits<float>::signaling_NaN()), | ||
pe(std::numeric_limits<float>::signaling_NaN()), | ||
tof(std::numeric_limits<float>::signaling_NaN()) | ||
{} | ||
} // end namespace caf | ||
//////////////////////////////////////////////////////////////////////// |
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,32 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRSBNDCRTTrack.h | ||
//////////////////////////////////////////////////////////////////////// | ||
#ifndef SRSBNDCRTTRACK_H | ||
#define SRSBNDCRTTRACK_H | ||
|
||
#include "sbnanaobj/StandardRecord/SRVector3D.h" | ||
#include "sbnanaobj/StandardRecord/SREnums.h" | ||
|
||
#include <vector> | ||
|
||
namespace caf | ||
{ | ||
class SRSBNDCRTTrack | ||
{ | ||
public: | ||
SRSBNDCRTTrack(); | ||
virtual ~SRSBNDCRTTrack() {} | ||
|
||
std::vector<SRVector3D> points; // fitted track points at each tagger [cm] | ||
float time; // average time [ns] | ||
float time_err; // error in average time [ns] | ||
float pe; // total PE; | ||
float tof; // time from first space point to last [ns] | ||
|
||
// TODO: Find way of adding taggers field | ||
// std::set<SBNDCRTTagger_t> taggers; // which taggers were used to create the track | ||
}; | ||
} // end namespace | ||
|
||
#endif // SRSBNDCRTTRACK_H | ||
////////////////////////////////////////////////////////////////////////////// |
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,13 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRSBNDCRTTrackMatch.cxx | ||
//////////////////////////////////////////////////////////////////////// | ||
|
||
#include "sbnanaobj/StandardRecord/SRSBNDCRTTrackMatch.h" | ||
|
||
namespace caf | ||
{ | ||
SRSBNDCRTTrackMatch::SRSBNDCRTTrackMatch(): | ||
score(std::numeric_limits<float>::signaling_NaN()) | ||
{} | ||
} | ||
//////////////////////////////////////////////////////////////////////// |
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,23 @@ | ||
//////////////////////////////////////////////////////////////////////// | ||
// \file SRSBNDCRTTrackMatch.h | ||
//////////////////////////////////////////////////////////////////////// | ||
#ifndef SRSBNDCRTTRACKMATCH_H | ||
#define SRSBNDCRTTRACKMATCH_H | ||
|
||
#include "sbnanaobj/StandardRecord/SRSBNDCRTTrack.h" | ||
|
||
namespace caf | ||
{ | ||
class SRSBNDCRTTrackMatch | ||
{ | ||
public: | ||
SRSBNDCRTTrackMatch(); | ||
virtual ~SRSBNDCRTTrackMatch() {} | ||
|
||
SRSBNDCRTTrack track; // the track | ||
float score; // assessment of quality of matching (depends on alg configuration) | ||
}; | ||
} | ||
|
||
#endif // SRSBNDCRTTRACKMATCH_H | ||
////////////////////////////////////////////////////////////////////////////// |
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
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