10 theAbstractConfFitters[
name]=
o;
11 theDescription[
name]=
d;
16 std::unique_ptr<AbstractConfFitter>
t{
o()};
27 auto found = theDescription.find(d);
28 if(
found == theDescription.end()) {
41 std::cout <<
"[VertexFitterManager] copy constructor! Error!" << std::endl;
65 auto found = theAbstractConfFitters.find(s);
66 if(
found == theAbstractConfFitters.end()) {
67 return std::unique_ptr<AbstractConfFitter>{};
69 return std::unique_ptr<AbstractConfFitter>{
found->second()};
74 std::vector<std::string>
ret;
75 ret.reserve(theAbstractConfFitters.size());
77 for(
const auto&
i : theAbstractConfFitters) {
78 ret.push_back(
i.first);
static VertexRecoManager & Instance()
helper::RootFunctionHelper< F, args >::root_function function(F &f)
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