CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexRecoManager.cc
Go to the documentation of this file.
2 
3 using namespace std;
4 
6  const string & name, AbstractConfReconstructor * o, const string & d )
7 {
8  theAbstractConfReconstructors[name]=o;
9  theDescription[name]=d;
10 }
11 
13 {
14  // why should we delete?
15  /*
16  for ( map < string, AbstractConfReconstructor * >::iterator i=theAbstractConfReconstructors.begin();
17  i!=theAbstractConfReconstructors.end() ; ++i )
18  {
19  delete i->second;
20  }*/
21 }
22 
24 {
25  return theDescription[d];
26 }
27 
29 {
30  return new VertexRecoManager ( * this );
31 }
32 
34 {
35  std::cout << "[VertexRecoManager] copy constructor! Error!" << std::endl;
36  exit(0);
37  /*
38  for ( map < string, AbstractConfReconstructor * >::const_iterator i=o.theAbstractConfReconstructors.begin();
39  i!=o.theAbstractConfReconstructors.end() ; ++i )
40  {
41  theAbstractConfReconstructors[ i->first ] = i->second->clone();
42  }
43 
44  theIsEnabled=o.theIsEnabled;
45  */
46 }
47 
49 {
50  static VertexRecoManager singleton;
51  return singleton;
52 }
53 
55 {
56  return theAbstractConfReconstructors[s];
57 }
58 
59 map < string, AbstractConfReconstructor * > VertexRecoManager::get()
60 {
61  return theAbstractConfReconstructors;
62 }
63 
65 {}
static VertexRecoManager & Instance()
std::string describe(const std::string &)
VertexRecoManager * clone() const
std::map< std::string, AbstractConfReconstructor * > get()
void registerReconstructor(const std::string &name, AbstractConfReconstructor *o, const std::string &description)
tuple cout
Definition: gather_cfg.py:121