Store JO metadata specific to the Bmumu analysis.
More...
#include <Bmumu_metadata.h>
|
| | Bmumu_metadata (const std::string &t, const std::string &n, const IInterface *p) |
| | Main constructor.
|
| virtual StatusCode | initialize () |
| virtual StatusCode | finalize () |
| virtual StatusCode | addBranches (const EventContext &ctx) const |
|
| virtual void | recordPropertyI (const std::string &name, int val) |
| virtual void | recordPropertyL (const std::string &name, long val) |
| virtual void | recordPropertyD (const std::string &name, double val) |
| virtual void | recordPropertyB (const std::string &name, bool val) |
| virtual void | recordPropertyS (const std::string &name, const std::string &val) |
| virtual void | recordPropertyVI (const std::string &name, const std::vector< int > &val) |
| virtual void | recordPropertyVL (const std::string &name, const std::vector< long > &val) |
| virtual void | recordPropertyVD (const std::string &name, const std::vector< double > &val) |
| virtual void | recordPropertyVB (const std::string &name, const std::vector< bool > &val) |
| virtual void | recordPropertyVS (const std::string &name, const std::vector< std::string > &val) |
|
| virtual StatusCode | saveMetaDataBPhys () const |
| virtual std::string | buildFolderName (const std::string &fname="") const |
| virtual std::string | vecToString (const std::vector< int > &v) const |
| virtual std::string | vecToString (const std::vector< long > &v) const |
| virtual std::string | vecToString (const std::vector< double > &v) const |
| virtual std::string | vecToString (const std::vector< bool > &v) const |
| virtual std::string | vecToString (const std::vector< std::string > &v) const |
|
| ServiceHandle< StoreGateSvc > | m_outputMetaStore |
| | Object accessing the output metadata store.
|
| std::string | m_derivationName |
| std::string | m_mdFolderName |
| std::string | m_prefix |
| std::map< std::string, int > | m_propInt |
| std::map< std::string, long > | m_propLong |
| std::map< std::string, double > | m_propDouble |
| std::map< std::string, bool > | m_propBool |
| std::map< std::string, std::string > | m_propString |
| std::map< std::string, std::vector< int > > | m_propVInt |
| std::map< std::string, std::vector< long > > | m_propVLong |
| std::map< std::string, std::vector< double > > | m_propVDouble |
| std::map< std::string, std::vector< bool > > | m_propVBool |
| std::map< std::string, std::vector< std::string > > | m_propVString |
Store JO metadata specific to the Bmumu analysis.
- Author
- Wolfgang Walkowiak <Wolfg.nosp@m.ang..nosp@m.Walko.nosp@m.wiak.nosp@m.@cern.nosp@m..ch.>
Store JO metadata specific to the Bmumu analysis in the output file. This class inherits from BPhysMetadataBase.
Definition at line 34 of file Bmumu_metadata.h.
◆ Bmumu_metadata()
| DerivationFramework::Bmumu_metadata::Bmumu_metadata |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Main constructor.
Definition at line 16 of file Bmumu_metadata.cxx.
18 :
20
21
28
29
35
36
38
39
41
42
44
45
52
53
55
56
58
59
62
63
65
66
68
69
71
72
74
75
77
78
80
81
84
85
87
88
96
97
102
103
111
112
123
124
126
130
131
134
135
137
138
140
141
143
144
146
147
149
150
152
153
155
156
158
159
161
162
164
165
167
168
170
171
187
188
189
204
205
222
223
225
226
228
229
230
236
237 }
constexpr double muonMassInMeV
the mass of the muon (in MeV)
constexpr double chargedKaonMassInMeV
the mass of the charged kaon (in MeV)
constexpr double JpsiMassInMeV
constexpr double chargedPionMassInMeV
the mass of the charged pion (in MeV)
constexpr double BZeroMassInMeV
the mass of the neutral B0 meson (in MeV)
constexpr double BPlusMassInMeV
the mass of the charged B meson (in MeV)
constexpr double BsMassInMeV
the mass of the Bs meson (in MeV)
◆ addBranches()
| StatusCode DerivationFramework::BPhysMetadataBase::addBranches |
( |
const EventContext & | ctx | ) |
const |
|
virtualinherited |
◆ buildFolderName()
| std::string DerivationFramework::BPhysMetadataBase::buildFolderName |
( |
const std::string & | fname = "" | ) |
const |
|
privatevirtualinherited |
◆ finalize()
| StatusCode DerivationFramework::BPhysMetadataBase::finalize |
( |
| ) |
|
|
virtualinherited |
◆ initialize()
| StatusCode DerivationFramework::BPhysMetadataBase::initialize |
( |
| ) |
|
|
virtualinherited |
Definition at line 63 of file BPhysMetadataBase.cxx.
63 {
64
66
67
71 } else {
73 }
74 }
75
77
79
80 return StatusCode::SUCCESS;
81 }
#define CHECK(...)
Evaluate an expression and check for errors.
◆ recordPropertyB()
| void DerivationFramework::BPhysMetadataBase::recordPropertyB |
( |
const std::string & | name, |
|
|
bool | val ) |
|
protectedvirtualinherited |
◆ recordPropertyD()
| void DerivationFramework::BPhysMetadataBase::recordPropertyD |
( |
const std::string & | name, |
|
|
double | val ) |
|
protectedvirtualinherited |
◆ recordPropertyI()
| void DerivationFramework::BPhysMetadataBase::recordPropertyI |
( |
const std::string & | name, |
|
|
int | val ) |
|
protectedvirtualinherited |
◆ recordPropertyL()
| void DerivationFramework::BPhysMetadataBase::recordPropertyL |
( |
const std::string & | name, |
|
|
long | val ) |
|
protectedvirtualinherited |
◆ recordPropertyS()
| void DerivationFramework::BPhysMetadataBase::recordPropertyS |
( |
const std::string & | name, |
|
|
const std::string & | val ) |
|
protectedvirtualinherited |
◆ recordPropertyVB()
| void DerivationFramework::BPhysMetadataBase::recordPropertyVB |
( |
const std::string & | name, |
|
|
const std::vector< bool > & | val ) |
|
protectedvirtualinherited |
◆ recordPropertyVD()
| void DerivationFramework::BPhysMetadataBase::recordPropertyVD |
( |
const std::string & | name, |
|
|
const std::vector< double > & | val ) |
|
protectedvirtualinherited |
◆ recordPropertyVI()
| void DerivationFramework::BPhysMetadataBase::recordPropertyVI |
( |
const std::string & | name, |
|
|
const std::vector< int > & | val ) |
|
protectedvirtualinherited |
◆ recordPropertyVL()
| void DerivationFramework::BPhysMetadataBase::recordPropertyVL |
( |
const std::string & | name, |
|
|
const std::vector< long > & | val ) |
|
protectedvirtualinherited |
◆ recordPropertyVS()
| void DerivationFramework::BPhysMetadataBase::recordPropertyVS |
( |
const std::string & | name, |
|
|
const std::vector< std::string > & | val ) |
|
protectedvirtualinherited |
◆ saveMetaDataBPhys()
| StatusCode DerivationFramework::BPhysMetadataBase::saveMetaDataBPhys |
( |
| ) |
const |
|
privatevirtualinherited |
Definition at line 103 of file BPhysMetadataBase.cxx.
103 {
104
105 ATH_MSG_DEBUG(
"BPhysMetaDataBase::saveMetaDataBPhys() -- begin");
106
108
111 "xAOD::FileMetaData already in output: "
112 << mdFolderKey
113 << " -- BPhys metadata will NOT be saved!");
114 } else {
115
116 auto fm = std::make_unique< xAOD::FileMetaData >();
117 auto fmAux = std::make_unique< xAOD::FileMetaDataAuxInfo >();
118 fm->setStore( fmAux.get() );
119
120
121 SG::Accessor<std::string> DerivationNameAcc(
m_prefix+
"DerivationName");
123
124 SG::Accessor<std::string> MetaDatafolderNameAcc(
m_prefix+
"MetaDataFolderName");
126
127
138
139
142 mdFolderKey+"Aux." ) );
143 }
144
145 return StatusCode::SUCCESS;
146 }
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
FileMetaData_v1 FileMetaData
Declare the latest version of the class.
◆ vecToString() [1/5]
| std::string DerivationFramework::BPhysMetadataBase::vecToString |
( |
const std::vector< bool > & | v | ) |
const |
|
privatevirtualinherited |
Definition at line 250 of file BPhysMetadataBase.cxx.
250 {
251 std::string
str(
"[");
252 for (
unsigned int i=0;
i<
v.size(); ++
i) {
253 str += std::to_string(v[i]);
254 if ( i <
v.size()-1 )
str +=
",";
255 }
258 }
◆ vecToString() [2/5]
| std::string DerivationFramework::BPhysMetadataBase::vecToString |
( |
const std::vector< double > & | v | ) |
const |
|
privatevirtualinherited |
Definition at line 240 of file BPhysMetadataBase.cxx.
240 {
241 std::string
str(
"[");
242 for (
unsigned int i=0;
i<
v.size(); ++
i) {
243 str += std::to_string(v[i]);
244 if ( i <
v.size()-1 )
str +=
",";
245 }
248 }
◆ vecToString() [3/5]
| std::string DerivationFramework::BPhysMetadataBase::vecToString |
( |
const std::vector< int > & | v | ) |
const |
|
privatevirtualinherited |
Definition at line 220 of file BPhysMetadataBase.cxx.
220 {
221 std::string
str(
"[");
222 for (
unsigned int i=0;
i<
v.size(); ++
i) {
223 str += std::to_string(v[i]);
224 if ( i <
v.size()-1 )
str +=
",";
225 }
228 }
◆ vecToString() [4/5]
| std::string DerivationFramework::BPhysMetadataBase::vecToString |
( |
const std::vector< long > & | v | ) |
const |
|
privatevirtualinherited |
Definition at line 230 of file BPhysMetadataBase.cxx.
230 {
231 std::string
str(
"[");
232 for (
unsigned int i=0;
i<
v.size(); ++
i) {
233 str += std::to_string(v[i]);
234 if ( i <
v.size()-1 )
str +=
",";
235 }
238 }
◆ vecToString() [5/5]
| std::string DerivationFramework::BPhysMetadataBase::vecToString |
( |
const std::vector< std::string > & | v | ) |
const |
|
privatevirtualinherited |
Definition at line 260 of file BPhysMetadataBase.cxx.
260 {
261 std::string
str(
"[");
262 for (
unsigned int i=0;
i<
v.size(); ++
i) {
266 if ( i <
v.size()-1 )
str +=
",";
267 }
270 }
◆ m_derivationName
| std::string DerivationFramework::BPhysMetadataBase::m_derivationName |
|
privateinherited |
◆ m_mdFolderName
| std::string DerivationFramework::BPhysMetadataBase::m_mdFolderName |
|
privateinherited |
◆ m_outputMetaStore
◆ m_prefix
| std::string DerivationFramework::BPhysMetadataBase::m_prefix |
|
privateinherited |
◆ m_propBool
| std::map<std::string, bool> DerivationFramework::BPhysMetadataBase::m_propBool |
|
privateinherited |
◆ m_propDouble
| std::map<std::string, double> DerivationFramework::BPhysMetadataBase::m_propDouble |
|
privateinherited |
◆ m_propInt
| std::map<std::string, int> DerivationFramework::BPhysMetadataBase::m_propInt |
|
privateinherited |
◆ m_propLong
| std::map<std::string, long> DerivationFramework::BPhysMetadataBase::m_propLong |
|
privateinherited |
◆ m_propString
| std::map<std::string, std::string> DerivationFramework::BPhysMetadataBase::m_propString |
|
privateinherited |
◆ m_propVBool
| std::map<std::string, std::vector<bool> > DerivationFramework::BPhysMetadataBase::m_propVBool |
|
privateinherited |
◆ m_propVDouble
| std::map<std::string, std::vector<double> > DerivationFramework::BPhysMetadataBase::m_propVDouble |
|
privateinherited |
◆ m_propVInt
| std::map<std::string, std::vector<int> > DerivationFramework::BPhysMetadataBase::m_propVInt |
|
privateinherited |
◆ m_propVLong
| std::map<std::string, std::vector<long> > DerivationFramework::BPhysMetadataBase::m_propVLong |
|
privateinherited |
◆ m_propVString
| std::map<std::string, std::vector<std::string> > DerivationFramework::BPhysMetadataBase::m_propVString |
|
privateinherited |
The documentation for this class was generated from the following files: