CMS 3D CMS Logo

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

#include <VertexRecoManager.h>

Public Member Functions

VertexRecoManagerclone () const
 
std::string describe (const std::string &) const
 
std::unique_ptr
< AbstractConfReconstructor
get (const std::string &) const
 
std::vector< std::string > getNames () const
 
void registerReconstructor (const std::string &name, std::function< AbstractConfReconstructor *()> o, const std::string &description)
 
 ~VertexRecoManager ()
 

Static Public Member Functions

static VertexRecoManagerInstance ()
 

Private Member Functions

 VertexRecoManager (const VertexRecoManager &)
 
 VertexRecoManager ()
 

Private Attributes

std::map< std::string,
std::function
< AbstractConfReconstructor *()> > 
theAbstractConfReconstructors
 
std::map< std::string,
std::string > 
theDescription
 

Detailed Description

Class that manages the vertex reconstruction strategies

Definition at line 14 of file VertexRecoManager.h.

Constructor & Destructor Documentation

VertexRecoManager::~VertexRecoManager ( )

Definition at line 13 of file VertexRecoManager.cc.

13 {}
VertexRecoManager::VertexRecoManager ( const VertexRecoManager o)
private

Definition at line 25 of file VertexRecoManager.cc.

References gather_cfg::cout, and beamvalidation::exit().

25  {
26  std::cout << "[VertexRecoManager] copy constructor! Error!" << std::endl;
27  exit(0);
28  /*
29  for ( map < string, AbstractConfReconstructor * >::const_iterator i=o.theAbstractConfReconstructors.begin();
30  i!=o.theAbstractConfReconstructors.end() ; ++i )
31  {
32  theAbstractConfReconstructors[ i->first ] = i->second->clone();
33  }
34 
35  theIsEnabled=o.theIsEnabled;
36  */
37 }
tuple cout
Definition: gather_cfg.py:144
VertexRecoManager::VertexRecoManager ( )
private

Definition at line 63 of file VertexRecoManager.cc.

63 {}

Member Function Documentation

VertexRecoManager * VertexRecoManager::clone ( void  ) const

Definition at line 23 of file VertexRecoManager.cc.

23 { return new VertexRecoManager(*this); }
std::string VertexRecoManager::describe ( const std::string &  d) const

Definition at line 15 of file VertexRecoManager.cc.

References newFWLiteAna::found, and AlCaHLTBitMon_QueryRunRegistry::string.

15  {
16  auto found = theDescription.find(d);
17  if (found == theDescription.end()) {
18  return std::string();
19  }
20  return found->second;
21 }
std::map< std::string, std::string > theDescription
tuple d
Definition: ztail.py:151
std::unique_ptr< AbstractConfReconstructor > VertexRecoManager::get ( const std::string &  ) const
std::vector< std::string > VertexRecoManager::getNames ( ) const

Definition at line 54 of file VertexRecoManager.cc.

References mps_fire::i, and runTheMatrix::ret.

54  {
55  std::vector<std::string> ret;
56  ret.reserve(theAbstractConfReconstructors.size());
57  for (const auto& i : theAbstractConfReconstructors) {
58  ret.push_back(i.first);
59  }
60  return ret;
61 }
tuple ret
prodAgent to be discontinued
std::map< std::string, std::function< AbstractConfReconstructor *()> > theAbstractConfReconstructors
VertexRecoManager & VertexRecoManager::Instance ( )
static

Definition at line 39 of file VertexRecoManager.cc.

References CMS_THREAD_SAFE.

Referenced by ConfigurableVertexReconstructor::ConfigurableVertexReconstructor(), ConfRecoBuilder< O >::ConfRecoBuilder(), and VertexFitterManager::registerFitter().

39  {
40  //The singleton's internal structure only changes while
41  // this library is being loaded. All other methods are const.
42  CMS_THREAD_SAFE static VertexRecoManager singleton;
43  return singleton;
44 }
#define CMS_THREAD_SAFE
void VertexRecoManager::registerReconstructor ( const std::string &  name,
std::function< AbstractConfReconstructor *()>  o,
const std::string &  description 
)

Definition at line 6 of file VertexRecoManager.cc.

References ztail::d, mergeVDriftHistosByStation::name, and class-composition::o.

Referenced by ConfRecoBuilder< O >::ConfRecoBuilder(), and VertexFitterManager::registerFitter().

8  {
11 }
std::map< std::string, std::string > theDescription
std::map< std::string, std::function< AbstractConfReconstructor *()> > theAbstractConfReconstructors
tuple d
Definition: ztail.py:151

Member Data Documentation

std::map<std::string, std::function<AbstractConfReconstructor *()> > VertexRecoManager::theAbstractConfReconstructors
private

Definition at line 31 of file VertexRecoManager.h.

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

Definition at line 32 of file VertexRecoManager.h.