#include <AlignSetup.h>
Public Member Functions | |
AlignSetup () | |
Constructor. More... | |
void | dump (void) const |
Print the name of all stored data. More... | |
Type & | find (const std::string &name="") |
Type & | get (const std::string &name="") |
Private Types | |
typedef std::map< std::string, Type > | Container |
Private Attributes | |
Container | theStore |
A helper class to hold objects used by modules in alignment.
AlignSetup has a template parameter to specify the type of objects it holds. Objects are stored in a map<string, Type>. Users put/get an object by passing its name through the static methods put()/get(). It returns 0 if the name is not found on get(). It throws an exception if an object of the same name exists on put().
Definition at line 26 of file AlignSetup.h.
|
private |
Definition at line 28 of file AlignSetup.h.
|
inline |
void AlignSetup< Type >::dump | ( | void | ) | const |
Print the name of all stored data.
Definition at line 76 of file AlignSetup.h.
Type & AlignSetup< Type >::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 58 of file AlignSetup.h.
References edm::hlt::Exception, and python.connectstrParser::o.
Referenced by BeautifulSoup.Tag::_invert(), AlignableBuilder::build(), AlignableTracker::buildBarrel(), AlignableTracker::buildTRK(), BeautifulSoup.PageElement::insert(), AlignableTracker::subStructures(), and AlignableExtras::subStructures().
Type & AlignSetup< Type >::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 52 of file AlignSetup.h.
References mergeVDriftHistosByStation::name.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), AlignableExtras::AlignableExtras(), AlignableBuilder::build(), AlignableTracker::buildBarrel(), AlignableTracker::buildTRK(), AlignableTracker::detsToAlignables(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
private |
Definition at line 47 of file AlignSetup.h.