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;
62 auto found = theAbstractConfFitters.find(s);
63 if(
found == theAbstractConfFitters.end()) {
64 return std::unique_ptr<AbstractConfFitter>{};
66 return std::unique_ptr<AbstractConfFitter>{
found->second()};
71 std::vector<std::string>
ret;
72 ret.reserve(theAbstractConfFitters.size());
74 for(
const auto&
i : theAbstractConfFitters) {
75 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