#include <VertexFitterManager.h>
Public Member Functions | |
VertexFitterManager * | clone () const |
std::string | describe (const std::string &) |
std::map< std::string, AbstractConfFitter * > | get () |
AbstractConfFitter * | get (const std::string &) |
void | registerFitter (const std::string &name, AbstractConfFitter *o, const std::string &description) |
~VertexFitterManager () | |
Static Public Member Functions | |
static VertexFitterManager & | Instance () |
Private Member Functions | |
VertexFitterManager (const VertexFitterManager &) | |
VertexFitterManager () | |
Private Attributes | |
std::map< std::string, AbstractConfFitter * > | theAbstractConfFitters |
std::map< std::string, std::string > | theDescription |
Class that manages the vertex reconstruction strategies
Definition at line 12 of file VertexFitterManager.h.
VertexFitterManager::~VertexFitterManager | ( | ) |
Definition at line 17 of file VertexFitterManager.cc.
{ /* * Let the VertexRecoManager delete them (they all register there, as well!) for ( map < string, AbstractConfFitter * >::iterator i=theAbstractConfFitters.begin(); i!=theAbstractConfFitters.end() ; ++i ) { delete i->second; }*/ }
VertexFitterManager::VertexFitterManager | ( | const VertexFitterManager & | o | ) | [private] |
Definition at line 38 of file VertexFitterManager.cc.
References gather_cfg::cout, and cmsRelvalreport::exit.
{ std::cout << "[VertexFitterManager] copy constructor! Error!" << std::endl; exit(0); /* for ( map < string, AbstractConfFitter * >::const_iterator i=o.theAbstractConfFitters.begin(); i!=o.theAbstractConfFitters.end() ; ++i ) { theAbstractConfFitters[ i->first ] = i->second->clone(); } theIsEnabled=o.theIsEnabled; */ }
VertexFitterManager::VertexFitterManager | ( | ) | [private] |
Definition at line 69 of file VertexFitterManager.cc.
{}
VertexFitterManager * VertexFitterManager::clone | ( | void | ) | const |
Definition at line 33 of file VertexFitterManager.cc.
{ return new VertexFitterManager ( * this ); }
std::string VertexFitterManager::describe | ( | const std::string & | d | ) |
Definition at line 28 of file VertexFitterManager.cc.
{ return theDescription[d]; }
map< string, AbstractConfFitter * > VertexFitterManager::get | ( | void | ) |
Definition at line 64 of file VertexFitterManager.cc.
{ return theAbstractConfFitters; }
AbstractConfFitter* VertexFitterManager::get | ( | const std::string & | ) |
Referenced by ConfigurableVertexFitter::ConfigurableVertexFitter().
VertexFitterManager & VertexFitterManager::Instance | ( | ) | [static] |
Definition at line 53 of file VertexFitterManager.cc.
Referenced by ConfFitterBuilder< O >::ConfFitterBuilder(), and ConfigurableVertexFitter::ConfigurableVertexFitter().
{ static VertexFitterManager singleton; return singleton; }
void VertexFitterManager::registerFitter | ( | const std::string & | name, |
AbstractConfFitter * | o, | ||
const std::string & | description | ||
) |
Definition at line 7 of file VertexFitterManager.cc.
References VertexRecoManager::Instance(), mergeVDriftHistosByStation::name, connectstrParser::o, and VertexRecoManager::registerReconstructor().
Referenced by ConfFitterBuilder< O >::ConfFitterBuilder().
{ theAbstractConfFitters[name]=o; theDescription[name]=d; // every fitter registers as a reconstructor, also VertexRecoManager::Instance().registerReconstructor ( name, new ReconstructorFromFitter ( *o ), d); }
std::map< std::string, AbstractConfFitter * > VertexFitterManager::theAbstractConfFitters [private] |
Definition at line 29 of file VertexFitterManager.h.
std::map< std::string, std::string > VertexFitterManager::theDescription [private] |
Definition at line 30 of file VertexFitterManager.h.