1 #ifndef OPT0FINDER_QWEIGHTPOINT_CXX
2 #define OPT0FINDER_QWEIGHTPOINT_CXX
12 , _x_step_size ( 0.5 )
13 , _zdiff_max ( 50*50 )
32 std::cout<<
"Not enough points!"<<std::endl;
42 for(
auto const& pt : pt_v) {
43 if(pt.x > x_max) x_max = pt.x;
44 if(pt.x < x_min) x_min = pt.x;
48 for(
double x_offset=0; x_offset<(256.35-(x_max-x_min)); x_offset+=
_x_step_size) {
64 double weighted_z = 0;
72 double dz = std::fabs(weighted_z - flash.
z);
98 << f.
tpc_point.
z <<
" ... min dist : " << min_dz
flashmatch::Flash_t _vis_array
static QWeightPointFactory __global_QWeightPointFactory__
std::vector< double > hypothesis
double _x_step_size
step size in x-direction
size_t NOpDets() const
of PMTs
double score
floating point representing the "goodness" (algorithm dependent)
double z
Spatial position in [cm].
double TotalPE() const
Total PE calculation.
#define FLASH_INFO()
Compiler macro for INFO message.
QWeightPoint(const std::string name="QWeightPoint")
Default constructor.
fhicl::ParameterSet Config_t
Configuration object.
static DetectorSpecs & GetME(std::string filename="detector_specs.cfg")
Struct to represent an optical flash.
std::vector< double > pe_v
PE distribution over photo-detectors.
Collection of charge deposition 3D point (cluster)
QPoint_t tpc_point
estimated & matched 3D flash hypothesis point from TPC information
Class def header for a class QWeightPoint.
flashmatch::QCluster_t _tpc_qcluster
void _Configure_(const Config_t &pset)
const geoalgo::Point_t & PMTPosition(size_t opch)
PMT XYZ position filler.
void FillEstimate(const QCluster_t &, Flash_t &) const
Method to simply fill provided reference of flashmatch::Flash_t.
FlashMatch_t Match(const QCluster_t &, const Flash_t &)
BEGIN_PROLOG could also be cout
double _zdiff_max
allowed diff in z-direction to be considered as a match