![]() |
ATLAS Offline Software
|
Helper class providing easy access to FileMetaData object holding file-level metadata about an xAOD file specific to B-physics derivations. More...
#include <BPhysMetaDataHelper.h>
Public Member Functions | |||||||
| BPhysMetaDataHelper (const xAOD::FileMetaData *fm) | |||||||
| Main constructor. | |||||||
| const xAOD::FileMetaData * | metaObj () const | ||||||
| Getter method for the cached xAOD::FileMetaData object. | |||||||
| void | setPrefix (std::string prefix) | ||||||
| Set prefix for variable names. | |||||||
| std::map< std::string, const std::type_info * > | varTypes () const | ||||||
| Map of metadata names and types. | |||||||
| TString | varTypesToString (TString header="") const | ||||||
| List of metadata names and types as string. | |||||||
| TString | metaDataToString (TString header="") const | ||||||
| Complete metadata contents as TString. | |||||||
Getter methods for different metadata types | |||||||
| |||||||
| bool | value (const std::string &name, int &val) const | ||||||
| bool | value (const std::string &name, float &val) const | ||||||
| bool | value (const std::string &name, double &val) const | ||||||
| bool | value (const std::string &name, bool &val) const | ||||||
| bool | value (const std::string &name, std::string &val) const | ||||||
| bool | value (const std::string &name, std::vector< int > &val) const | ||||||
| bool | value (const std::string &name, std::vector< float > &val) const | ||||||
| bool | value (const std::string &name, std::vector< double > &val) const | ||||||
| bool | value (const std::string &name, std::vector< bool > &val) const | ||||||
| bool | value (const std::string &name, std::vector< std::string > &val) const | ||||||
Getter methods for maps of different metadata types | |||||||
| std::map< std::string, int > | valuesI () const | ||||||
| std::map< std::string, float > | valuesF () const | ||||||
| std::map< std::string, double > | valuesD () const | ||||||
| std::map< std::string, bool > | valuesB () const | ||||||
| std::map< std::string, std::string > | valuesS () const | ||||||
| std::map< std::string, std::vector< int > > | valuesVI () const | ||||||
| std::map< std::string, std::vector< float > > | valuesVF () const | ||||||
| std::map< std::string, std::vector< double > > | valuesVD () const | ||||||
| std::map< std::string, std::vector< bool > > | valuesVB () const | ||||||
| std::map< std::string, std::vector< std::string > > | valuesVS () const | ||||||
Protected Member Functions | |
| void | cacheVarTypes () const |
| Updating internal variable-to-variable-type cache. | |
Protected Attributes | |
| const xAOD::FileMetaData * | m_fm |
| FileMetaData object pointer. | |
| std::string | m_prefix |
| Prefix for variable names. | |
Internal caches and corresponding switches | |
| std::map< std::string, const std::type_info * > | m_tmap |
| map of metadata names and variable types | |
| bool | m_tmapOk |
| flag indicating an up-to-date cache | |
Helper class providing easy access to FileMetaData object holding file-level metadata about an xAOD file specific to B-physics derivations.
Definition at line 58 of file BPhysMetaDataHelper.h.
| xAOD::BPhysMetaDataHelper::BPhysMetaDataHelper | ( | const xAOD::FileMetaData * | fm | ) |
Main constructor.
The main contructor. BPhysMetaDataHelper does NOT take ownership of the class "metaObj".
| [in] | fm | Pointer to the xAOD::FileMetaData. |
Definition at line 26 of file BPhysMetaDataHelper.cxx.
|
protected |
Updating internal variable-to-variable-type cache.
Definition at line 128 of file BPhysMetaDataHelper.cxx.
| TString xAOD::BPhysMetaDataHelper::metaDataToString | ( | TString | header = "" | ) | const |
Complete metadata contents as TString.
| [in] | header | optional header string for table |
Definition at line 53 of file BPhysMetaDataHelper.cxx.
| const xAOD::FileMetaData * xAOD::BPhysMetaDataHelper::metaObj | ( | ) | const |
Getter method for the cached xAOD::FileMetaData object.
Definition at line 32 of file BPhysMetaDataHelper.cxx.
| void xAOD::BPhysMetaDataHelper::setPrefix | ( | std::string | prefix | ) |
Set prefix for variable names.
Definition at line 37 of file BPhysMetaDataHelper.cxx.
| bool xAOD::BPhysMetaDataHelper::value | ( | const std::string & | name, |
| std::string & | val ) const |
| bool xAOD::BPhysMetaDataHelper::value | ( | const std::string & | name, |
| std::vector< double > & | val ) const |
| bool xAOD::BPhysMetaDataHelper::value | ( | const std::string & | name, |
| std::vector< float > & | val ) const |
| bool xAOD::BPhysMetaDataHelper::value | ( | const std::string & | name, |
| std::vector< std::string > & | val ) const |
| std::map< std::string, bool > xAOD::BPhysMetaDataHelper::valuesB | ( | ) | const |
| std::map< std::string, double > xAOD::BPhysMetaDataHelper::valuesD | ( | ) | const |
| std::map< std::string, float > xAOD::BPhysMetaDataHelper::valuesF | ( | ) | const |
| std::map< std::string, int > xAOD::BPhysMetaDataHelper::valuesI | ( | ) | const |
| std::map< std::string, std::string > xAOD::BPhysMetaDataHelper::valuesS | ( | ) | const |
| std::map< std::string, std::vector< bool > > xAOD::BPhysMetaDataHelper::valuesVB | ( | ) | const |
| std::map< std::string, std::vector< double > > xAOD::BPhysMetaDataHelper::valuesVD | ( | ) | const |
| std::map< std::string, std::vector< float > > xAOD::BPhysMetaDataHelper::valuesVF | ( | ) | const |
| std::map< std::string, std::vector< int > > xAOD::BPhysMetaDataHelper::valuesVI | ( | ) | const |
| std::map< std::string, std::vector< std::string > > xAOD::BPhysMetaDataHelper::valuesVS | ( | ) | const |
| std::map< std::string, const std::type_info * > xAOD::BPhysMetaDataHelper::varTypes | ( | ) | const |
Map of metadata names and types.
Definition at line 43 of file BPhysMetaDataHelper.cxx.
| TString xAOD::BPhysMetaDataHelper::varTypesToString | ( | TString | header = "" | ) | const |
List of metadata names and types as string.
| [in] | header | optional header string for table |
Definition at line 139 of file BPhysMetaDataHelper.cxx.
|
protected |
FileMetaData object pointer.
Definition at line 144 of file BPhysMetaDataHelper.h.
|
protected |
Prefix for variable names.
Definition at line 147 of file BPhysMetaDataHelper.h.
|
mutableprotected |
map of metadata names and variable types
Definition at line 153 of file BPhysMetaDataHelper.h.
|
mutableprotected |
flag indicating an up-to-date cache
Definition at line 155 of file BPhysMetaDataHelper.h.