10 std::vector<double> xyz_segment(3);
11 xyz_segment[0] = 0.5*(pt2.x()+pt1.x()) + XOffset;
12 xyz_segment[1] = 0.5*(pt2.y()+pt1.y());
13 xyz_segment[2] = 0.5*(pt2.z()+pt1.z());
21 const std::vector<float>& qe_vector,
27 throw std::runtime_error(
"ERROR in FlashHypothesisCalculator: vector sizes not equal!");
29 const float total_yield = yield*dEdx*(pt2-pt1).Mag();
Class def header for a class FlashHypothesis.
Provides MappedContainer class.
void FillFlashHypothesis(const float &yield, const float &dEdx, const TVector3 &pt1, const TVector3 &pt2, const std::vector< float > &qe_vector, phot::MappedCounts_t const &vis_vector, FlashHypothesis &hyp)
size_t GetVectorSize() const
float dEdx(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, TP3D &tp3d)
A container for photon visibility mapping data.
std::vector< double > SegmentMidpoint(const TVector3 &pt1, const TVector3 &pt2, float XOffset=0)
void SetHypothesisAndError(size_t i_opdet, float pe, float err=-999)