Skip to content
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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

kkostova16
Copy link

BEGINRELEASENOTES

  • Port DDCaloDigi from MarlinPandora to Gaudi

ENDRELEASENOTES

//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";
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmcarcell @tmadlener

Sorry to ping you, can you tell me how to use the metadata svc here? Or point me to the documentation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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();

Katerina Kostova added 2 commits September 10, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants