ATLAS Offline Software
Loading...
Searching...
No Matches
FileMetaData_v1.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODMETADATA_VERSIONS_FILEMETADATA_V1_H
8#define XAODMETADATA_VERSIONS_FILEMETADATA_V1_H
9
10// System include(s):
11#include <cstdint>
12#include <iosfwd>
13#include <set>
14#include <string>
15#include <vector>
16
17// EDM include(s):
19
20namespace xAOD {
21
35
36 public:
39
42
44 bool operator==( const FileMetaData_v1& rhs ) const { return compareWith(rhs, std::set<std::string>()); };
46 bool operator!=( const FileMetaData_v1& rhs ) const;
47
49 bool compareWith(const FileMetaData_v1& rhs, const std::set<std::string>& ignore ) const;
50
52
88
90 bool value( MetaDataType type, std::string& val ) const;
92 bool value( const std::string& type, std::string& val ) const;
93
95 bool setValue( MetaDataType type, const std::string& val );
97 bool setValue( const std::string& type, const std::string& val );
98
100 bool value( MetaDataType type, uint32_t& val ) const;
102 bool value( const std::string& type, uint32_t& val ) const;
103
105 bool setValue( MetaDataType type, uint32_t val );
107 bool setValue( const std::string& type, uint32_t val );
108
110 bool value( MetaDataType type, float& val ) const;
112 bool value( const std::string& type, float& val ) const;
113
115 bool setValue( MetaDataType type, float val );
117 bool setValue( const std::string& type, float val );
118
120 bool value( MetaDataType type, bool& val ) const;
122 bool value( const std::string& type, bool& val ) const;
123
125 bool setValue( MetaDataType type, bool val );
127 bool setValue( const std::string& type, bool val );
128
130 bool value(const std::string& type, std::vector< uint32_t >& val) const;
131
133 bool setValue(const std::string& type, const std::vector< uint32_t >& val);
134
135 }; // class FileMetaData_v1
136
138 std::ostream& operator<< ( std::ostream& out,
140
141} // namespace xAOD
142
143// Declare a base class for the type:
144#include "xAODCore/BaseInfo.h"
146
147#endif // XAODMETADATA_VERSIONS_FILEMETADATA_V1_H
Base class for elements of a container that can have aux data.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Class holding file-level metadata about an xAOD file.
bool setValue(MetaDataType type, const std::string &val)
Set a pre-defined string value on the object.
MetaDataType
Pre-defined metadata value types.
@ AODCalibVersion
Version of AODCalib that was used on the file last [string].
@ beamEnergy
Beam energy [float].
@ mcProcID
Same as mc_channel_number [float].
@ conditionsTag
Conditions version used for simulation/reconstruction [string].
@ dataType
Data type that's in the file [string].
@ generatorsInfo
Generators information [string].
@ AODFixVersion
Version of AODFix that was used on the file last [string].
@ mcCampaign
MC campaign [string].
@ amiTag
AMI tag used to process the file the last time [string].
@ dataYear
Data year [uint32_t].
@ beamType
Beam type [string].
@ simFlavour
Fast or Full sim [string].
@ productionRelease
Release that was used to make the file [string].
@ isDataOverlay
Used data overlay for backgrounds [bool].
@ geometryVersion
Geometry version [string].
bool value(MetaDataType type, std::string &val) const
Get a pre-defined string value out of the object.
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.
FileMetaData_v1()
Default constructor.
bool compareWith(const FileMetaData_v1 &rhs, const std::set< std::string > &ignore) const
Compare this FMD object with another, optionally ignoring some attributes.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
std::ostream & operator<<(std::ostream &out, const std::pair< FIRST, SECOND > &pair)
Helper print operator.
setEventNumber uint32_t