![]() |
ATLAS Offline Software
|
Class holding file-level metadata about an xAOD file. More...
#include <FileMetaData_v1.h>
Public Types | |
| enum | MetaDataType { productionRelease = 0 , amiTag = 1 , AODFixVersion = 2 , AODCalibVersion = 3 , dataType = 4 , geometryVersion = 5 , conditionsTag = 6 , beamEnergy = 7 , beamType = 8 , mcProcID = 9 , simFlavour = 10 , isDataOverlay = 11 , mcCampaign = 12 , generatorsInfo = 13 , dataYear = 14 , END = 15 } |
| Pre-defined metadata value types. More... | |
Public Member Functions | |
| FileMetaData_v1 () | |
| Default constructor. | |
| bool | value (MetaDataType type, std::string &val) const |
| Get a pre-defined string value out of the object. | |
| bool | value (const std::string &type, std::string &val) const |
| Get a generic string value out of the object. | |
| bool | setValue (MetaDataType type, const std::string &val) |
| Set a pre-defined string value on the object. | |
| bool | setValue (const std::string &type, const std::string &val) |
| Set a generic string value on the object. | |
| bool | value (MetaDataType type, uint32_t &val) const |
| Get a pre-defined uint32_t value out of the object. | |
| bool | value (const std::string &type, uint32_t &val) const |
| Get a generic uint32_t value out of the object. | |
| bool | setValue (MetaDataType type, uint32_t val) |
| Set a pre-defined uint32_t value on the object. | |
| bool | setValue (const std::string &type, uint32_t val) |
| Set a generic uint32_t value on the object. | |
| bool | value (MetaDataType type, float &val) const |
| Get a pre-defined float value out of the object. | |
| bool | value (const std::string &type, float &val) const |
| Get a generic float value out of the object. | |
| bool | setValue (MetaDataType type, float val) |
| Set a pre-defined float value on the object. | |
| bool | setValue (const std::string &type, float val) |
| Set a generic float value on the object. | |
| bool | value (MetaDataType type, bool &val) const |
| Get a pre-defined bool value out of the object. | |
| bool | value (const std::string &type, bool &val) const |
| Get a generic bool value out of the object. | |
| bool | setValue (MetaDataType type, bool val) |
| Set a pre-defined bool value on the object. | |
| bool | setValue (const std::string &type, bool val) |
| Set a generic bool value on the object. | |
| bool | value (const std::string &type, std::vector< uint32_t > &val) const |
| Get a generic list value out of the object. | |
| bool | setValue (const std::string &type, const std::vector< uint32_t > &val) |
| Set a generic list value on the object. | |
Comparison operators | |
| bool | operator== (const FileMetaData_v1 &rhs) const |
| Operator testing the equality of two objects. | |
| bool | operator!= (const FileMetaData_v1 &rhs) const |
| Operator testing the inequality of two objects. | |
| bool | compareWith (const FileMetaData_v1 &rhs, const std::set< std::string > &ignore) const |
| Compare this FMD object with another, optionally ignoring some attributes. | |
Class holding file-level metadata about an xAOD file.
Each xAOD file is expected to hold exactly one object of this type to describe much of the simple metadata about the file. So, metadata that might change event-by-event in the file is not stored in such objects.
| Attila | Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h |
Definition at line 34 of file FileMetaData_v1.h.
Pre-defined metadata value types.
| Enumerator | |
|---|---|
| productionRelease | Release that was used to make the file [string]. |
| amiTag | AMI tag used to process the file the last time [string]. |
| AODFixVersion | Version of AODFix that was used on the file last [string]. |
| AODCalibVersion | Version of AODCalib that was used on the file last [string]. |
| dataType | Data type that's in the file [string]. |
| geometryVersion | Geometry version [string]. |
| conditionsTag | Conditions version used for simulation/reconstruction [string]. |
| beamEnergy | Beam energy [float]. |
| beamType | Beam type [string]. |
| mcProcID | Same as mc_channel_number [float]. |
| simFlavour | Fast or Full sim [string]. |
| isDataOverlay | Used data overlay for backgrounds [bool]. |
| mcCampaign | MC campaign [string]. |
| generatorsInfo | Generators information [string]. |
| dataYear | Data year [uint32_t]. |
| END | End marker. |
Definition at line 54 of file FileMetaData_v1.h.
| xAOD::FileMetaData_v1::FileMetaData_v1 | ( | ) |
Default constructor.
Definition at line 21 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::compareWith | ( | const FileMetaData_v1 & | rhs, |
| const std::set< std::string > & | ignore ) const |
Compare this FMD object with another, optionally ignoring some attributes.
Definition at line 25 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::operator!= | ( | const FileMetaData_v1 & | rhs | ) | const |
Operator testing the inequality of two objects.
Definition at line 190 of file FileMetaData_v1.cxx.
|
inline |
Operator testing the equality of two objects.
Definition at line 44 of file FileMetaData_v1.h.
Set a generic bool value on the object.
Definition at line 444 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::setValue | ( | MetaDataType | type, |
| bool | val ) |
Set a pre-defined bool value on the object.
Definition at line 429 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::setValue | ( | MetaDataType | type, |
| const std::string & | val ) |
Set a pre-defined string value on the object.
Definition at line 233 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::setValue | ( | MetaDataType | type, |
| float | val ) |
Set a pre-defined float value on the object.
Definition at line 364 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::setValue | ( | MetaDataType | type, |
| uint32_t | val ) |
Set a pre-defined uint32_t value on the object.
Definition at line 299 of file FileMetaData_v1.cxx.
Get a generic bool value out of the object.
Definition at line 411 of file FileMetaData_v1.cxx.
Get a generic float value out of the object.
Definition at line 346 of file FileMetaData_v1.cxx.
Get a generic string value out of the object.
Definition at line 215 of file FileMetaData_v1.cxx.
Get a generic list value out of the object.
Definition at line 456 of file FileMetaData_v1.cxx.
Get a generic uint32_t value out of the object.
Definition at line 281 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::value | ( | MetaDataType | type, |
| bool & | val ) const |
Get a pre-defined bool value out of the object.
Definition at line 391 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::value | ( | MetaDataType | type, |
| float & | val ) const |
Get a pre-defined float value out of the object.
Definition at line 326 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::value | ( | MetaDataType | type, |
| std::string & | val ) const |
Get a pre-defined string value out of the object.
Definition at line 195 of file FileMetaData_v1.cxx.
| bool xAOD::FileMetaData_v1::value | ( | MetaDataType | type, |
| uint32_t & | val ) const |
Get a pre-defined uint32_t value out of the object.
Definition at line 261 of file FileMetaData_v1.cxx.