9 theAbstractConfReconstructors[
name]=
o;
10 theDescription[
name]=
d;
19 auto found = theDescription.find(d);
20 if(
found == theDescription.end()) {
33 std::cout <<
"[VertexRecoManager] copy constructor! Error!" << std::endl;
56 auto found = theAbstractConfReconstructors.find(s);
57 if(
found == theAbstractConfReconstructors.end()) {
58 return std::unique_ptr<AbstractConfReconstructor>{};
60 return std::unique_ptr<AbstractConfReconstructor>{
found->second()};
65 std::vector<std::string> ret;
66 ret.reserve(theAbstractConfReconstructors.size());
67 for(
const auto&
i : theAbstractConfReconstructors ) {
68 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)