8 theAbstractConfReconstructors[
name]=
o;
9 theDescription[
name]=d;
18 auto found = theDescription.find(d);
19 if(
found == theDescription.end()) {
32 std::cout <<
"[VertexRecoManager] copy constructor! Error!" << std::endl;
53 auto found = theAbstractConfReconstructors.find(s);
54 if(
found == theAbstractConfReconstructors.end()) {
55 return std::unique_ptr<AbstractConfReconstructor>{};
57 return std::unique_ptr<AbstractConfReconstructor>{
found->second()};
62 std::vector<std::string>
ret;
63 ret.reserve(theAbstractConfReconstructors.size());
64 for(
const auto&
i : theAbstractConfReconstructors ) {
65 ret.push_back(
i.first);
std::string describe(const std::string &) const
std::unique_ptr< AbstractConfReconstructor > get(const std::string &) const
static VertexRecoManager & Instance()
helper::RootFunctionHelper< F, args >::root_function function(F &f)
std::vector< std::string > getNames() const
VertexRecoManager * clone() const
void registerReconstructor(const std::string &name, std::function< AbstractConfReconstructor *()> o, const std::string &description)