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

Set the SOI for HCAL TP samples when packing. #19804

Merged
merged 2 commits into from Jul 25, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion EventFilter/HcalRawToDigi/plugins/PackerHelp.h
Expand Up @@ -549,7 +549,11 @@ class UHTRpacker{
// loop over words in dataframe
for( int iTS = 0 ; iTS < qiedf->size() ; iTS++ ){
// push data into uhtr data container
uhtrs[uhtrIndex].push_back(qiedf->sample(iTS).raw());
auto raw = qiedf->sample(iTS).raw();
// Add SOI information
if (iTS == qiedf->presamples())
raw |= 0x4000;
Copy link
Contributor

Choose a reason for hiding this comment

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

better to define a mask with this value as a const in the TPHeaderSpec namespace

uhtrs[uhtrIndex].push_back(raw);
}// end loop over dataframe words
};

Expand Down