Skip to content

Commit

Permalink
Set the SOI for TP samples when packing.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Jul 18, 2017
1 parent 504de00 commit 36d91e9
Showing 1 changed file with 5 additions and 1 deletion.
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;
uhtrs[uhtrIndex].push_back(raw);
}// end loop over dataframe words
};

Expand Down

0 comments on commit 36d91e9

Please sign in to comment.