CMS 3D CMS Logo

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< AbstractConfReconstructorget (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::~VertexRecoManager ( )

Definition at line 13 of file VertexRecoManager.cc.

13 {}

◆ VertexRecoManager() [1/2]

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 }
def exit(msg="")

◆ VertexRecoManager() [2/2]

VertexRecoManager::VertexRecoManager ( )
private

Definition at line 63 of file VertexRecoManager.cc.

63 {}

Member Function Documentation

◆ clone()

VertexRecoManager * VertexRecoManager::clone ( void  ) const

Definition at line 23 of file VertexRecoManager.cc.

23 { return new VertexRecoManager(*this); }

◆ describe()

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

Definition at line 15 of file VertexRecoManager.cc.

References ztail::d, 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
d
Definition: ztail.py:151

◆ get()

std::unique_ptr< AbstractConfReconstructor > VertexRecoManager::get ( const std::string &  ) const

◆ getNames()

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 }
ret
prodAgent to be discontinued
std::map< std::string, std::function< AbstractConfReconstructor *()> > theAbstractConfReconstructors

◆ Instance()

VertexRecoManager & VertexRecoManager::Instance ( )
static

Definition at line 39 of file VertexRecoManager.cc.

References CMS_THREAD_SAFE, and hcalRecHitTable_cff::singleton.

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.
43  return singleton;
44 }
#define CMS_THREAD_SAFE

◆ registerReconstructor()

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, Skims_PA_cff::name, and EcalTangentSkim_cfg::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
d
Definition: ztail.py:151

Member Data Documentation

◆ theAbstractConfReconstructors

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

Definition at line 31 of file VertexRecoManager.h.

◆ theDescription

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

Definition at line 32 of file VertexRecoManager.h.