4 #include "StGenericVertexMaker/VertexFinderOptions.h"
6 namespace star_vertex {
9 bool requiresBeamline(VertexFit_t& vertex_fit)
13 case VertexFit_t::BeamlineNoFit:
14 case VertexFit_t::Beamline1D:
15 case VertexFit_t::Beamline3D:
23 std::istream& operator>>(std::istream &in, VertexFit_t &vertex_fit)
28 for (
auto & c : token) c = toupper(c);
30 if (token ==
"NOBEAMLINE")
32 vertex_fit = VertexFit_t::NoBeamline;
34 else if (token ==
"BEAMLINENOFIT")
36 vertex_fit = VertexFit_t::BeamlineNoFit;
38 else if (token ==
"BEAMLINE1D")
40 vertex_fit = VertexFit_t::Beamline1D;
42 else if (token ==
"BEAMLINE3D")
44 vertex_fit = VertexFit_t::Beamline3D;
48 vertex_fit = VertexFit_t::Unspecified;
56 std::istream& operator>>(std::istream &in, SeedFinder_t &seed_finder)
61 for (
auto & c : token) c = toupper(c);
63 if (token ==
"MINUITVF")
65 seed_finder = SeedFinder_t::MinuitVF;
67 else if (token ==
"PPVLIKELIHOOD")
69 seed_finder = SeedFinder_t::PPVLikelihood;
71 else if (token ==
"TSPECTRUM")
73 seed_finder = SeedFinder_t::TSpectrum;
77 seed_finder = SeedFinder_t::Unspecified;
84 std::ostream& operator<<(std::ostream &out,
const VertexFit_t &vertex_fit)
88 case VertexFit_t::NoBeamline:
91 case VertexFit_t::BeamlineNoFit:
92 out <<
"BeamlineNoFit";
94 case VertexFit_t::Beamline1D:
97 case VertexFit_t::Beamline3D:
101 out <<
"Unspecified";
108 std::ostream& operator<<(std::ostream &out,
const SeedFinder_t &seed_finder)
112 case SeedFinder_t::MinuitVF:
115 case SeedFinder_t::PPVLikelihood:
116 out <<
"PPVLikelihood";
118 case SeedFinder_t::TSpectrum:
122 out <<
"Unspecified";