CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
VertexFitterManager Class Reference

#include <VertexFitterManager.h>

Public Member Functions

VertexFitterManagerclone () const
 
std::string describe (const std::string &)
 
AbstractConfFitterget (const std::string &)
 
std::map< std::string,
AbstractConfFitter * > 
get ()
 
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.

18 {
19  /*
20  * Let the VertexRecoManager delete them (they all register there, as well!)
21  for ( map < string, AbstractConfFitter * >::iterator i=theAbstractConfFitters.begin();
22  i!=theAbstractConfFitters.end() ; ++i )
23  {
24  delete i->second;
25  }*/
26 }
VertexFitterManager::VertexFitterManager ( const VertexFitterManager o)
private

Definition at line 38 of file VertexFitterManager.cc.

References gather_cfg::cout, and cmsRelvalreport::exit.

39 {
40  std::cout << "[VertexFitterManager] copy constructor! Error!" << std::endl;
41  exit(0);
42  /*
43  for ( map < string, AbstractConfFitter * >::const_iterator i=o.theAbstractConfFitters.begin();
44  i!=o.theAbstractConfFitters.end() ; ++i )
45  {
46  theAbstractConfFitters[ i->first ] = i->second->clone();
47  }
48 
49  theIsEnabled=o.theIsEnabled;
50  */
51 }
tuple cout
Definition: gather_cfg.py:121
VertexFitterManager::VertexFitterManager ( )
private

Definition at line 69 of file VertexFitterManager.cc.

70 {}

Member Function Documentation

VertexFitterManager * VertexFitterManager::clone ( void  ) const

Definition at line 33 of file VertexFitterManager.cc.

34 {
35  return new VertexFitterManager ( * this );
36 }
std::string VertexFitterManager::describe ( const std::string &  d)

Definition at line 28 of file VertexFitterManager.cc.

29 {
30  return theDescription[d];
31 }
std::map< std::string, std::string > theDescription
AbstractConfFitter* VertexFitterManager::get ( const std::string &  )
map< string, AbstractConfFitter * > VertexFitterManager::get ( void  )
VertexFitterManager & VertexFitterManager::Instance ( )
static

Definition at line 53 of file VertexFitterManager.cc.

Referenced by ConfFitterBuilder< O >::ConfFitterBuilder(), and ConfigurableVertexFitter::ConfigurableVertexFitter().

54 {
55  static VertexFitterManager singleton;
56  return singleton;
57 }
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, python.connectstrParser::o, and VertexRecoManager::registerReconstructor().

Referenced by ConfFitterBuilder< O >::ConfFitterBuilder().

9 {
12 
13  // every fitter registers as a reconstructor, also
15 }
static VertexRecoManager & Instance()
std::map< std::string, std::string > theDescription
std::map< std::string, AbstractConfFitter * > theAbstractConfFitters
void registerReconstructor(const std::string &name, AbstractConfReconstructor *o, const std::string &description)

Member Data Documentation

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.