11 theAbstractConfFitters[
name]=
o;
12 theDescription[
name]=
d;
17 std::unique_ptr<AbstractConfFitter>
t{
o()};
28 auto found = theDescription.find(d);
29 if(
found == theDescription.end()) {
42 std::cout <<
"[VertexFitterManager] copy constructor! Error!" << std::endl;
66 auto found = theAbstractConfFitters.find(s);
67 if(
found == theAbstractConfFitters.end()) {
68 return std::unique_ptr<AbstractConfFitter>{};
70 return std::unique_ptr<AbstractConfFitter>{
found->second()};
75 std::vector<std::string> ret;
76 ret.reserve(theAbstractConfFitters.size());
78 for(
const auto&
i : theAbstractConfFitters) {
79 ret.push_back(
i.first);
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