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;
55 auto found = theAbstractConfReconstructors.find(s);
56 if(
found == theAbstractConfReconstructors.end()) {
57 return std::unique_ptr<AbstractConfReconstructor>{};
59 return std::unique_ptr<AbstractConfReconstructor>{
found->second()};
64 std::vector<std::string> ret;
65 ret.reserve(theAbstractConfReconstructors.size());
66 for(
const auto&
i : theAbstractConfReconstructors ) {
67 ret.push_back(
i.first);
std::string describe(const std::string &) const
std::unique_ptr< AbstractConfReconstructor > get(const std::string &) const
static VertexRecoManager & Instance()
std::vector< std::string > getNames() const
VertexRecoManager * clone() const
void registerReconstructor(const std::string &name, std::function< AbstractConfReconstructor *()> o, const std::string &description)