Commit d267ad98 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

modified: README.md

	modified:   src/GenFind/include/GenFindHits.h
	modified:   src/GenFind/include/HoughTransform.h
	modified:   src/GenFind/src/HoughTransform.cxx
parent fbb5ffc6
......@@ -17,7 +17,6 @@ Proposal:
Simple transform (Hough or otherwise) to feature space given event hits,
binning, and maximum bin selection process to identify candidate hits.
Need:
Transforms suitable to geometry, B field. (Hough transform first)
......
......@@ -2,6 +2,7 @@
#define genfind_GenFindHits_HH
#include <memory>
#include <functional>
#include <algorithm>
#include "TObject.h"
#include "Math/Vector3D.h"
......@@ -95,11 +96,14 @@ namespace genfind {
template<class T>
std::vector<ConformalHit> compute_conformal_hits(const std::vector<T>& hits, const T& ref)
{
// Local class
struct Sum {
std::vector<ConformalHit> fChits;
T fRef;
Sum(const T& R) : fChits{}, fRef(R) { }
void operator()(const T& h){ fChits.push_back(compute_conformal_hit(h, fRef)); }
void operator()(const T& h){
fChits.push_back(compute_conformal_hit(h, fRef));
}
std::vector<ConformalHit> Get(){ return fChits; }
};
return std::for_each(hits.begin(),
......
......@@ -4,6 +4,7 @@
#include "TObject.h"
#include "TMath.h"
#include <array>
#include <functional>
#include <vector>
#include <utility>
#include "TH2F.h"
......
......@@ -45,7 +45,7 @@ namespace genfind {
double y = ahit.Y() - ref_point.Y();
double R = x*x + y*y;
if( !(ahit == ref_point) ) {
res.push_back(ROOT::Math::XYZTVector{ 2.0*x/R, -2.0*y/R, ahit.Z(), ahit.T() });
res.push_back(ROOT::Math::XYZTVector{ 2.0*x/R, 2.0*y/R, ahit.Z(), ahit.T() });
}
});
return res;
......
Supports Markdown
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