#include <AlignableMap.h>
Public Member Functions | |
AlignableMap () | |
void | dump (void) const |
Print the name of all stored data. More... | |
align::Alignables & | find (const std::string &name="") |
align::Alignables & | get (const std::string &name="") |
virtual | ~AlignableMap () |
Private Types | |
using | Container = std::map< std::string, align::Alignables > |
Private Attributes | |
Container | theStore |
A helper class to hold Alignables used by modules in alignment.
Alignables are stored in a map<string, Alignables>. Users get Alignables by passing the corresponding name through the method get(), if the name doesn't exist a new entry will be created. The find()-method also delivers Alignables per name, but it does not created new entries and will throw an error in case of an unknown name.
Last Update: Max Stark Date: Mon, 22 Feb 2016 19:58:45 CET
Definition at line 27 of file AlignableMap.h.
|
private |
Definition at line 28 of file AlignableMap.h.
|
inline |
Definition at line 31 of file AlignableMap.h.
|
inlinevirtual |
Definition at line 32 of file AlignableMap.h.
void AlignableMap::dump | ( | void | ) | const |
Print the name of all stored data.
Definition at line 27 of file AlignableMap.cc.
References theStore.
align::Alignables & AlignableMap::find | ( | const std::string & | name = "" | ) |
Find and return an object from map using its name. Throw an exception if the name does not exist.
Definition at line 10 of file AlignableMap.cc.
References Exception, Skims_PA_cff::name, EcalTangentSkim_cfg::o, and theStore.
Referenced by BeautifulSoup.Tag::__getattr__(), AlignableCompositeBuilder::buildLevel(), AlignableTrackerBuilder::buildPixelDetector(), AlignableTrackerBuilder::buildStripDetector(), BeautifulSoup.Tag::firstText(), AlignableExtras::subStructures(), and AlignableTracker::subStructures().
align::Alignables & AlignableMap::get | ( | const std::string & | name = "" | ) |
Get an object from map using its name. A new object is default-constructed if the name does not exist.
Definition at line 7 of file AlignableMap.cc.
References Skims_PA_cff::name, and theStore.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), AlignableExtras::AlignableExtras(), data_sources.json_list::as_dicts(), data_sources.json_list::as_table(), AlignableTrackerBuilder::buildAlignables(), AlignableCompositeBuilder::buildLevel(), AlignableTrackerBuilder::buildPixelDetector(), AlignableTrackerBuilder::buildStripDetector(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), AlignableTrackerBuilder::convertGeomDetsToAlignables(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), data_sources.json_list::first(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), data_sources.json_list::indices(), data_sources.json_list::last(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), util.rrapi.RRApi::reports(), rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), util.rrapi.RRApi::templates(), rrapi.RRApi::templates(), rrapi.RRApi::workspaces(), and util.rrapi.RRApi::workspaces().