Skip to content

Add PHOS table#8352

Merged
shahor02 merged 5 commits intoAliceO2Group:devfrom
nburmaso:aod-cpv-phs
Mar 18, 2022
Merged

Add PHOS table#8352
shahor02 merged 5 commits intoAliceO2Group:devfrom
nburmaso:aod-cpv-phs

Conversation

@nburmaso
Copy link
Copy Markdown
Contributor

No description provided.

@nburmaso
Copy link
Copy Markdown
Contributor Author

nburmaso commented Mar 15, 2022

This is a draft code for PHOS in the AOD producer. I have tried adapting EventHandler code from EMCAL, but I'm not sure if it is a correct way to access information. @peressounko, could you please check the code and see if it is ok for you?

Also, I have a problem with accessing PHOS cells via RecoContainer -- I will create a JIRA ticket for this

@shahor02
Copy link
Copy Markdown
Collaborator

@nburmaso with #8364 I was to access PHOS data via RecoContainer and run AODProducer from this branch, though did not check the result.

@nburmaso
Copy link
Copy Markdown
Contributor Author

nburmaso commented Mar 15, 2022

Thank you @shahor02, I will try running with this fix too

@nburmaso
Copy link
Copy Markdown
Contributor Author

Hi @shahor02. I have tested this PR with your fix, and it seems it works fine now. Thank you!

@peressounko: I have updated the code to also add trigger information

@nburmaso nburmaso marked this pull request as ready for review March 17, 2022 06:12
@nburmaso nburmaso requested review from a team, kharlov and peressounko as code owners March 17, 2022 06:12
shahor02
shahor02 previously approved these changes Mar 18, 2022
Comment on lines +153 to +157
template <class CellInputType>
bool EventHandler<CellInputType>::compareInteractionRecords(const InteractionRecord& lhs, const InteractionRecord& rhs) const
{
return lhs.bc == rhs.bc && lhs.orbit == rhs.orbit;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

just for the record: InteractionRecord has operator==, so one can do directly lhs==rhs

Comment on lines +1571 to +1573
auto* caloEventHandler = new o2::emcal::EventHandler<o2::emcal::Cell>();
fillCaloTable(caloEventHandler, caloEMCCells, caloEMCCellsTRGR, caloCellsCursor, caloCellsTRGTableCursor, bcsMap, 1);
delete caloEventHandler;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you avoid new/delete, using instead stack object, i.e.

o2::emcal::EventHandler<o2::emcal::Cell> caloEventHandler;
fillCaloTable(&caloEventHandler, caloEMCCells, caloEMCCellsTRGR, caloCellsCursor, caloCellsTRGTableCursor, bcsMap, 1);

same for the PHOS. Can be done in different PR, since this one already passed CIs

@shahor02
Copy link
Copy Markdown
Collaborator

merging after resolving trivial conflict, all tests were passed.

@shahor02 shahor02 merged commit abf0d44 into AliceO2Group:dev Mar 18, 2022
@nburmaso nburmaso deleted the aod-cpv-phs branch March 24, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants