CMS 3D CMS Logo

VertexRecoManager Class Reference

#include <RecoVertex/ConfigurableVertexReco/interface/VertexRecoManager.h>

List of all members.

Public Member Functions

VertexRecoManagerclone () const
std::string describe (const std::string &)
std::map< std::string,
AbstractConfReconstructor * > 
get ()
AbstractConfReconstructorget (const std::string &)
void registerReconstructor (const std::string &name, AbstractConfReconstructor *o, const std::string &description)
 ~VertexRecoManager ()

Static Public Member Functions

static VertexRecoManagerInstance ()

Private Member Functions

 VertexRecoManager ()
 VertexRecoManager (const VertexRecoManager &)

Private Attributes

std::map< std::string,
AbstractConfReconstructor * > 
theAbstractConfReconstructors
std::map< std::string,
std::string > 
theDescription


Detailed Description

Class that manages the vertex reconstruction strategies

Definition at line 12 of file VertexRecoManager.h.


Constructor & Destructor Documentation

VertexRecoManager::~VertexRecoManager (  ) 

Definition at line 12 of file VertexRecoManager.cc.

00013 {
00014   // why should we delete?
00015   /*
00016   for ( map < string, AbstractConfReconstructor * >::iterator i=theAbstractConfReconstructors.begin(); 
00017         i!=theAbstractConfReconstructors.end() ; ++i )
00018   {
00019     delete i->second;
00020   }*/
00021 }

VertexRecoManager::VertexRecoManager ( const VertexRecoManager o  )  [private]

Definition at line 33 of file VertexRecoManager.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and cmsRelvalreport::exit.

00034 {
00035   std::cout << "[VertexRecoManager] copy constructor! Error!" << std::endl;
00036   exit(0);
00037   /*
00038   for ( map < string, AbstractConfReconstructor * >::const_iterator i=o.theAbstractConfReconstructors.begin(); 
00039         i!=o.theAbstractConfReconstructors.end() ; ++i )
00040   {
00041     theAbstractConfReconstructors[ i->first ] = i->second->clone();
00042   }
00043   
00044   theIsEnabled=o.theIsEnabled;
00045   */
00046 }

VertexRecoManager::VertexRecoManager (  )  [private]

Definition at line 64 of file VertexRecoManager.cc.

Referenced by clone().

00065 {}


Member Function Documentation

VertexRecoManager * VertexRecoManager::clone ( void   )  const

Definition at line 28 of file VertexRecoManager.cc.

References VertexRecoManager().

00029 {
00030   return new VertexRecoManager ( * this );
00031 }

std::string VertexRecoManager::describe ( const std::string &  d  ) 

Definition at line 23 of file VertexRecoManager.cc.

References theDescription.

00024 {
00025   return theDescription[d];
00026 }

map< string, AbstractConfReconstructor * > VertexRecoManager::get ( void   ) 

Definition at line 59 of file VertexRecoManager.cc.

References theAbstractConfReconstructors.

00060 {
00061   return theAbstractConfReconstructors;
00062 }

AbstractConfReconstructor* VertexRecoManager::get ( const std::string &   ) 

Referenced by ConfigurableVertexReconstructor::ConfigurableVertexReconstructor(), and errorNoReconstructor().

VertexRecoManager & VertexRecoManager::Instance (  )  [static]

Definition at line 48 of file VertexRecoManager.cc.

Referenced by ConfigurableVertexReconstructor::ConfigurableVertexReconstructor(), and errorNoReconstructor().

00049 {
00050   static VertexRecoManager singleton;
00051   return singleton;
00052 }

void VertexRecoManager::registerReconstructor ( const std::string &  name,
AbstractConfReconstructor o,
const std::string &  description 
)


Member Data Documentation

std::map< std::string, AbstractConfReconstructor * > VertexRecoManager::theAbstractConfReconstructors [private]

Definition at line 29 of file VertexRecoManager.h.

Referenced by get().

std::map< std::string, std::string > VertexRecoManager::theDescription [private]

Definition at line 30 of file VertexRecoManager.h.

Referenced by describe().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:00 2009 for CMSSW by  doxygen 1.5.4