Skip to content

Implement bethemean energy loss option. Enable optional per-material …#222

Open
RobMina wants to merge 1 commit into
KFTrack:mainfrom
RobMina:detmaterial-unrestricted-mean
Open

Implement bethemean energy loss option. Enable optional per-material …#222
RobMina wants to merge 1 commit into
KFTrack:mainfrom
RobMina:detmaterial-unrestricted-mean

Conversation

@RobMina

@RobMina RobMina commented Jul 13, 2026

Copy link
Copy Markdown

…energy loss configuration (defaults to the global config setting).

For issue #221

…energy loss configuration (defaults to the global config setting).

@brownd1978 brownd1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Rob this looks great! I just have 1 quibble about an error printout.

Comment thread MatEnv/MatMaterialList.cc
} else if (key == "bethemean") {
matObj->setElossMode(2);
} else {
ErrMsg(warning) << "MatMaterialList: unrecognized trailing token '" << token

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I suggest to throw here instead. ErrMsg is a deprecated legacy class (I'll add an issue).

@brownd1978

Copy link
Copy Markdown
Contributor

Rob, could you please paste in the output from MatEnv_unit? It gets suppressed in the automatic tests, but in this case it would be good to have this as part of the record.

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.

2 participants