9 theAbstractConfFitters[
name] =
o;
10 theDescription[
name] =
d;
17 std::unique_ptr<AbstractConfFitter>
t{
o()};
26 auto found = theDescription.find(d);
27 if (
found == theDescription.end()) {
36 std::cout <<
"[VertexFitterManager] copy constructor! Error!" << std::endl;
58 auto found = theAbstractConfFitters.find(s);
59 if (
found == theAbstractConfFitters.end()) {
60 return std::unique_ptr<AbstractConfFitter>{};
62 return std::unique_ptr<AbstractConfFitter>{
found->second()};
66 std::vector<std::string>
ret;
67 ret.reserve(theAbstractConfFitters.size());
69 for (
const auto&
i : theAbstractConfFitters) {
70 ret.push_back(
i.first);
tuple ret
prodAgent to be discontinued
static VertexRecoManager & Instance()
void registerFitter(const std::string &name, std::function< AbstractConfFitter *()> o, const std::string &description)
VertexFitterManager * clone() const
std::unique_ptr< AbstractConfFitter > get(const std::string &) const
std::vector< std::string > getNames() const
void registerReconstructor(const std::string &name, std::function< AbstractConfReconstructor *()> o, const std::string &description)
static VertexFitterManager & Instance()
std::string describe(const std::string &) const