CMS 3D CMS Logo

VertexRecoManager.cc
Go to the documentation of this file.
3 
4 using namespace std;
5 
8  const string& d) {
9  theAbstractConfReconstructors[name] = o;
10  theDescription[name] = d;
11 }
12 
14 
16  auto found = theDescription.find(d);
17  if (found == theDescription.end()) {
18  return std::string();
19  }
20  return found->second;
21 }
22 
24 
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 }
38 
40  //The singleton's internal structure only changes while
41  // this library is being loaded. All other methods are const.
43  return singleton;
44 }
45 
46 std::unique_ptr<AbstractConfReconstructor> VertexRecoManager::get(const string& s) const {
47  auto found = theAbstractConfReconstructors.find(s);
48  if (found == theAbstractConfReconstructors.end()) {
49  return std::unique_ptr<AbstractConfReconstructor>{};
50  }
51  return std::unique_ptr<AbstractConfReconstructor>{found->second()};
52 }
53 
54 std::vector<std::string> VertexRecoManager::getNames() const {
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 }
62 
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:543
mps_fire.i
i
Definition: mps_fire.py:428
gather_cfg.cout
cout
Definition: gather_cfg.py:144
VertexRecoManager::get
std::unique_ptr< AbstractConfReconstructor > get(const std::string &) const
Definition: VertexRecoManager.cc:46
VertexRecoManager::describe
std::string describe(const std::string &) const
Definition: VertexRecoManager.cc:15
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
VertexRecoManager::~VertexRecoManager
~VertexRecoManager()
Definition: VertexRecoManager.cc:13
AbstractConfReconstructor
Definition: AbstractConfReconstructor.h:12
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
VertexRecoManager
Definition: VertexRecoManager.h:14
alignCSCRings.s
s
Definition: alignCSCRings.py:92
boostedTaus_cff.singleton
singleton
Definition: boostedTaus_cff.py:21
VertexRecoManager::Instance
static VertexRecoManager & Instance()
Definition: VertexRecoManager.cc:39
VertexRecoManager.h
CMS_THREAD_SAFE
#define CMS_THREAD_SAFE
Definition: thread_safety_macros.h:4
VertexRecoManager::getNames
std::vector< std::string > getNames() const
Definition: VertexRecoManager.cc:54
VertexRecoManager::VertexRecoManager
VertexRecoManager()
Definition: VertexRecoManager.cc:63
thread_safety_macros.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
std
Definition: JetResolutionObject.h:76
HiBiasedCentrality_cfi.function
function
Definition: HiBiasedCentrality_cfi.py:4
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:52
VertexRecoManager::clone
VertexRecoManager * clone() const
Definition: VertexRecoManager.cc:23
VertexRecoManager::registerReconstructor
void registerReconstructor(const std::string &name, std::function< AbstractConfReconstructor *()> o, const std::string &description)
Definition: VertexRecoManager.cc:6