CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

VertexFitterManager Class Reference

#include <VertexFitterManager.h>

List of all members.

Public Member Functions

VertexFitterManagerclone () const
std::string describe (const std::string &)
std::map< std::string,
AbstractConfFitter * > 
get ()
AbstractConfFitterget (const std::string &)
void registerFitter (const std::string &name, AbstractConfFitter *o, const std::string &description)
 ~VertexFitterManager ()

Static Public Member Functions

static VertexFitterManagerInstance ()

Private Member Functions

 VertexFitterManager (const VertexFitterManager &)
 VertexFitterManager ()

Private Attributes

std::map< std::string,
AbstractConfFitter * > 
theAbstractConfFitters
std::map< std::string,
std::string > 
theDescription

Detailed Description

Class that manages the vertex reconstruction strategies

Definition at line 12 of file VertexFitterManager.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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.

AbstractConfFitter* VertexFitterManager::get ( const std::string &  )
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 
)

Member Data Documentation

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.