CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexFitterManager.cc
Go to the documentation of this file.
4 
5 using namespace std;
6 
8  const string & name, AbstractConfFitter * o, const string & d )
9 {
10  theAbstractConfFitters[name]=o;
11  theDescription[name]=d;
12 
13  // every fitter registers as a reconstructor, also
15 }
16 
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 }
27 
29 {
30  return theDescription[d];
31 }
32 
34 {
35  return new VertexFitterManager ( * this );
36 }
37 
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 }
52 
54 {
55  static VertexFitterManager singleton;
56  return singleton;
57 }
58 
60 {
61  return theAbstractConfFitters[s];
62 }
63 
64 map < string, AbstractConfFitter * > VertexFitterManager::get()
65 {
66  return theAbstractConfFitters;
67 }
68 
70 {}
static VertexRecoManager & Instance()
void registerFitter(const std::string &name, AbstractConfFitter *o, const std::string &description)
std::string describe(const std::string &)
void registerReconstructor(const std::string &name, AbstractConfReconstructor *o, const std::string &description)
VertexFitterManager * clone() const
tuple cout
Definition: gather_cfg.py:121
static VertexFitterManager & Instance()
std::map< std::string, AbstractConfFitter * > get()