-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port DDCaloDigi to Gaudi #4
base: main
Are you sure you want to change the base?
Conversation
//std::string initString = m_geoSvc->constantAsString(m_encodingStringVariable.value()); | ||
|
||
//FIXME: take this from the metadata | ||
std::string initString = "system:5,side:2,module:8,stave:4,layer:9,submodule:4,x:32:-16,y:-16"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME: waiting for changes in metadata svc to pick this up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to ping you, can you tell me how to use the metadata svc here? Or point me to the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whether it is documented yet, but essentially, you do what is in that example yes.
#include "k4FWCore/MetadataUtils.h"
// in initialize or finalize
k4FWCore::putParameter("the-key", "the-value"); // for all supported types
// everywhere
const auto maybeParam = k4FWCore::getParameter<std::string>("the-key"); // for all supported types
const auto value = maybeParam.value();
… since not needed. Clean up some old comments
BEGINRELEASENOTES
ENDRELEASENOTES