#include <VertexRecoManager.h>
Public Member Functions | |
VertexRecoManager * | clone () const |
std::string | describe (const std::string &) |
std::map< std::string, AbstractConfReconstructor * > | get () |
AbstractConfReconstructor * | get (const std::string &) |
void | registerReconstructor (const std::string &name, AbstractConfReconstructor *o, const std::string &description) |
~VertexRecoManager () | |
Static Public Member Functions | |
static VertexRecoManager & | Instance () |
Private Member Functions | |
VertexRecoManager (const VertexRecoManager &) | |
VertexRecoManager () | |
Private Attributes | |
std::map< std::string, AbstractConfReconstructor * > | theAbstractConfReconstructors |
std::map< std::string, std::string > | theDescription |
Class that manages the vertex reconstruction strategies
Definition at line 12 of file VertexRecoManager.h.
VertexRecoManager::~VertexRecoManager | ( | ) |
Definition at line 12 of file VertexRecoManager.cc.
{ // why should we delete? /* for ( map < string, AbstractConfReconstructor * >::iterator i=theAbstractConfReconstructors.begin(); i!=theAbstractConfReconstructors.end() ; ++i ) { delete i->second; }*/ }
VertexRecoManager::VertexRecoManager | ( | const VertexRecoManager & | o | ) | [private] |
Definition at line 33 of file VertexRecoManager.cc.
References gather_cfg::cout, and cmsRelvalreport::exit.
{ std::cout << "[VertexRecoManager] copy constructor! Error!" << std::endl; exit(0); /* for ( map < string, AbstractConfReconstructor * >::const_iterator i=o.theAbstractConfReconstructors.begin(); i!=o.theAbstractConfReconstructors.end() ; ++i ) { theAbstractConfReconstructors[ i->first ] = i->second->clone(); } theIsEnabled=o.theIsEnabled; */ }
VertexRecoManager::VertexRecoManager | ( | ) | [private] |
Definition at line 64 of file VertexRecoManager.cc.
{}
VertexRecoManager * VertexRecoManager::clone | ( | void | ) | const |
Definition at line 28 of file VertexRecoManager.cc.
{ return new VertexRecoManager ( * this ); }
std::string VertexRecoManager::describe | ( | const std::string & | d | ) |
Definition at line 23 of file VertexRecoManager.cc.
{ return theDescription[d]; }
map< string, AbstractConfReconstructor * > VertexRecoManager::get | ( | void | ) |
Definition at line 59 of file VertexRecoManager.cc.
{ return theAbstractConfReconstructors; }
AbstractConfReconstructor* VertexRecoManager::get | ( | const std::string & | ) |
VertexRecoManager & VertexRecoManager::Instance | ( | ) | [static] |
Definition at line 48 of file VertexRecoManager.cc.
Referenced by ConfigurableVertexReconstructor::ConfigurableVertexReconstructor(), ConfRecoBuilder< O >::ConfRecoBuilder(), and VertexFitterManager::registerFitter().
{ static VertexRecoManager singleton; return singleton; }
void VertexRecoManager::registerReconstructor | ( | const std::string & | name, |
AbstractConfReconstructor * | o, | ||
const std::string & | description | ||
) |
Definition at line 5 of file VertexRecoManager.cc.
References AlCaRecoCosmics_cfg::name, and connectstrParser::o.
Referenced by ConfRecoBuilder< O >::ConfRecoBuilder(), and VertexFitterManager::registerFitter().
{ theAbstractConfReconstructors[name]=o; theDescription[name]=d; }
std::map< std::string, AbstractConfReconstructor * > VertexRecoManager::theAbstractConfReconstructors [private] |
Definition at line 29 of file VertexRecoManager.h.
std::map< std::string, std::string > VertexRecoManager::theDescription [private] |
Definition at line 30 of file VertexRecoManager.h.