We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c371c commit 061f6b5Copy full SHA for 061f6b5
k4FWCore/components/PodioOutput.cpp
@@ -1,3 +1,5 @@
1
+#include <cstdlib>
2
+
3
#include "PodioOutput.h"
4
#include "k4FWCore/PodioDataSvc.h"
5
#include "TFile.h"
@@ -174,6 +176,12 @@ StatusCode PodioOutput::finalize() {
174
176
}
175
177
//// finalize trees and file //////////////////////////////
178
m_file->cd();
179
180
+ if(const char* env_key4hep_stack = std::getenv("KEY4HEP_STACK")) {
181
+ std::string s_env_key4hep_stack = env_key4hep_stack;
182
+ m_metadatatree->Branch("key4hepStack", &s_env_key4hep_stack);
183
+ }
184
185
m_metadatatree->Branch("gaudiConfigOptions", &config_data);
186
m_metadatatree->Branch("CollectionIDs", m_podioDataSvc->getCollectionIDs());
187
0 commit comments