17 return StatusCode::SUCCESS;
24 ATH_MSG_DEBUG(
"------------- TriggerProcessorTool::mergeRDO ---------------------");
26 constexpr
bool HAS_PHI_RESOLUTION{
true};
27 constexpr
uint8_t SPARE_IS_PAD{1};
28 for (
const auto padTriggerData : *padTriggerContainer ) {
30 const char sectorSide = (padTriggerData->sideA()) ?
'A' :
'C';
31 auto trigRawData =
new Muon::NSW_TrigRawData(padTriggerData->getSecid(), sectorSide, padTriggerData->getBcid());
32 for (
size_t it = 0;
it < padTriggerData->getNumberOfTriggers(); ++
it) {
34 trigRawDataSegment->setRIndex(padTriggerData->getTriggerBandIds().at(
it));
35 trigRawDataSegment->setPhiIndex(padTriggerData->getTriggerPhiIds().at(
it));
36 trigRawDataSegment->setPhiRes(HAS_PHI_RESOLUTION);
37 trigRawDataSegment->setSpare(SPARE_IS_PAD);
38 trigRawData->push_back(trigRawDataSegment);
41 <<
"sectorSide=" << trigRawData->sectorSide() <<
" "
42 <<
"sectorId=" << trigRawData->sectorId() <<
" "
43 <<
"bcId=" << trigRawData->bcId());
44 for(
const auto seg : *trigRawData){
46 <<
"deltaTheta=" <<
static_cast<int16_t>(seg->deltaTheta()) <<
" "
47 <<
"phiIndex=" <<
static_cast<int16_t>(seg->phiIndex()) <<
" "
48 <<
"rIndex=" <<
static_cast<int16_t>(seg->rIndex()) <<
" "
49 <<
"spare=" <<
static_cast<int16_t>(seg->spare()) <<
" "
50 <<
"lowRes=" << seg->lowRes() <<
" "
51 <<
"phiRes=" << seg->phiRes() <<
" "
52 <<
"monitor=" << seg->monitor());
56 ATH_MSG_DEBUG(
"After PadTrigger filling -> NSW Trigger RDO size: " << trigRdoContainer->
size());
58 for (
const auto rawData : *stripTriggerContainer) {
61 <<
"sectorSide=" << trigRawData->
sectorSide() <<
" "
62 <<
"sectorId=" << trigRawData->
sectorId() <<
" "
63 <<
"bcId=" << trigRawData->
bcId());
64 for(
const auto seg : *trigRawData){
66 <<
"deltaTheta=" <<
static_cast<int16_t>(seg->deltaTheta()) <<
" "
67 <<
"phiIndex=" <<
static_cast<int16_t>(seg->phiIndex()) <<
" "
68 <<
"rIndex=" <<
static_cast<int16_t>(seg->rIndex()) <<
" "
69 <<
"spare=" <<
static_cast<int16_t>(seg->spare()) <<
" "
70 <<
"lowRes=" << seg->lowRes() <<
" "
71 <<
"phiRes=" << seg->phiRes() <<
" "
72 <<
"monitor=" << seg->monitor());
76 ATH_MSG_DEBUG(
"After sTGC strip trigger filling -> NSW Trigger RDO size: " << trigRdoContainer->
size());
78 for (
const auto rawData : *MMTriggerContainer) {
81 <<
"sectorSide=" << trigRawData->
sectorSide() <<
" "
82 <<
"sectorId=" << trigRawData->
sectorId() <<
" "
83 <<
"bcId=" << trigRawData->
bcId());
84 for(
const auto seg : *trigRawData){
86 <<
"deltaTheta=" <<
static_cast<int16_t>(seg->deltaTheta()) <<
" "
87 <<
"phiIndex=" <<
static_cast<int16_t>(seg->phiIndex()) <<
" "
88 <<
"rIndex=" <<
static_cast<int16_t>(seg->rIndex()) <<
" "
89 <<
"spare=" <<
static_cast<int16_t>(seg->spare()) <<
" "
90 <<
"lowRes=" << seg->lowRes() <<
" "
91 <<
"phiRes=" << seg->phiRes() <<
" "
92 <<
"monitor=" << seg->monitor());
96 ATH_MSG_DEBUG(
"After MMTrigger filling -> NSW Trigger RDO size: " << trigRdoContainer->
size());
98 return StatusCode::SUCCESS;