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

want to get a parameter into ddsim SDAction at run time #1343

Open
saraheno opened this issue Oct 24, 2024 · 1 comment
Open

want to get a parameter into ddsim SDAction at run time #1343

saraheno opened this issue Oct 24, 2024 · 1 comment
Labels
question Waiting for caller Waiting for issue opener to respond to question

Comments

@saraheno
Copy link

Hi,
I want to get a parameter into SDAction at run initialization time (instead of hard wiring it). For example, I want to kill photons with a probability and want to be able to input this probability at run time. Is there a way to do this? Right now I hard code that value.

@andresailer
Copy link
Member

Yes, there is a way to do this.

Like

declareProperty("CollectionName", m_collectionName);

If you were linking to your SDAction, we could a give more specific answer.

@andresailer andresailer added the Waiting for caller Waiting for issue opener to respond to question label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Waiting for caller Waiting for issue opener to respond to question
Projects
None yet
Development

No branches or pull requests

2 participants