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 ()
 
 VertexRecoManager (const 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.

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 }

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

◆ 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.

15  {
16  auto found = theDescription.find(d);
17  if (found == theDescription.end()) {
18  return std::string();
19  }
20  return found->second;
21 }

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

◆ 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.

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 }

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

◆ Instance()

VertexRecoManager & VertexRecoManager::Instance ( )
static

Definition at line 39 of file VertexRecoManager.cc.

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 }

References CMS_THREAD_SAFE, and electrons_cff::singleton.

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

◆ registerReconstructor()

void VertexRecoManager::registerReconstructor ( const std::string &  name,
std::function< AbstractConfReconstructor *()>  o,
const std::string &  description 
)

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.

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:373
mps_fire.i
i
Definition: mps_fire.py:428
gather_cfg.cout
cout
Definition: gather_cfg.py:144
VertexRecoManager::theDescription
std::map< std::string, std::string > theDescription
Definition: VertexRecoManager.h:32
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
VertexRecoManager::theAbstractConfReconstructors
std::map< std::string, std::function< AbstractConfReconstructor *()> > theAbstractConfReconstructors
Definition: VertexRecoManager.h:31
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
VertexRecoManager
Definition: VertexRecoManager.h:14
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CMS_THREAD_SAFE
#define CMS_THREAD_SAFE
Definition: thread_safety_macros.h:4
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
VertexRecoManager::VertexRecoManager
VertexRecoManager()
Definition: VertexRecoManager.cc:63
electrons_cff.singleton
singleton
Definition: electrons_cff.py:374
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ztail.d
d
Definition: ztail.py:151
beamvalidation.exit
def exit(msg="")
Definition: beamvalidation.py:53