diff --git a/EventFilter/HcalRawToDigi/plugins/PackerHelp.h b/EventFilter/HcalRawToDigi/plugins/PackerHelp.h index b21b4ffce6dd1..fbab537384cc1 100644 --- a/EventFilter/HcalRawToDigi/plugins/PackerHelp.h +++ b/EventFilter/HcalRawToDigi/plugins/PackerHelp.h @@ -144,6 +144,8 @@ namespace TPHeaderSpec{ static const int MASK_FLAVOR = 0x7; static const int OFFSET_HEADER_BIT = 15; static const int MASK_HEADER_BIT = 0x1; + static const int OFFSET_SOI_BIT = 14; + static const int MASK_SOI_BIT = 0x1; } namespace QIE8SampleSpec{ @@ -549,7 +551,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 |= TPHeaderSpec::MASK_SOI_BIT << TPHeaderSpec::OFFSET_SOI_BIT; + uhtrs[uhtrIndex].push_back(raw); }// end loop over dataframe words };