Class JetContext Designed to read AOD information related to the event, N vertices, Ntracks, mu etc ...
More...
#include <JetContext.h>
|
std::unordered_map< std::string, std::variant< int, float > > | m_dict_ |
|
Class JetContext Designed to read AOD information related to the event, N vertices, Ntracks, mu etc ...
Definition at line 24 of file JetContext.h.
◆ getValue() [1/2]
template<typename T >
T JetHelper::JetContext::getValue |
( |
const std::string & |
name | ) |
const |
◆ getValue() [2/2]
template<typename T >
void JetHelper::JetContext::getValue |
( |
const std::string & |
name, |
|
|
T & |
value |
|
) |
| const |
Definition at line 39 of file JetContext.h.
43 throw std::invalid_argument(std::string(
"Key Error : ") +
name + std::string(
" not found in JetContext."));
◆ isAvailable()
bool JetHelper::JetContext::isAvailable |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ setValue()
template<typename T >
bool JetHelper::JetContext::setValue |
( |
const std::string & |
name, |
|
|
const T |
value, |
|
|
bool |
allowOverwrite = false |
|
) |
| |
◆ m_dict_
std::unordered_map<std::string, std::variant<int, float> > JetHelper::JetContext::m_dict_ |
|
private |
The documentation for this class was generated from the following file:
bool isAvailable(const std::string &name) const
std::unordered_map< std::string, std::variant< int, float > > m_dict_
void getValue(const std::string &name, T &value) const