Skip to content

Check for TOF DRM Diagnostics#717

Merged
Barthelemy merged 4 commits into
AliceO2Group:masterfrom
pranjalsarma:master
Jun 8, 2021
Merged

Check for TOF DRM Diagnostics#717
Barthelemy merged 4 commits into
AliceO2Group:masterfrom
pranjalsarma:master

Conversation

@pranjalsarma
Copy link
Copy Markdown
Contributor

@pranjalsarma pranjalsarma commented Jun 1, 2021

Hi @njacazio,

PR for DRM Diagnostics is created. Please have look.

Best regards,
Pranjal

@pranjalsarma pranjalsarma marked this pull request as draft June 1, 2021 13:51
Copy link
Copy Markdown
Collaborator

@njacazio njacazio left a comment

Choose a reason for hiding this comment

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

Hi @pranjalsarma, great work indeed! we just would need to specify the checks and we are set!


for (int i = 1; i < h->GetNbinsX(); i++) {
for (int j = 1; j < h->GetNbinsY(); j++) {
const float content = h->GetBinContent(i, j);
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.

@pranjalsarma perfect! Here we can check that the histogram does not have bins with errors inside. The meaning of each bin should be this one: https://github.com/AliceO2Group/AliceO2/blob/dev/DataFormats/Detectors/TOF/include/DataFormatsTOF/CompressedDataFormat.h#L118-L134 I think that we can skip the first bin (HAS_DATA) because this is fine.

Comment thread Modules/TOF/src/CheckDRMDiagnostics.cxx Outdated
if (checkResult == Quality::Bad) {
ILOG(Info, Support) << "Quality::Bad, Error bins with content >0";
msg->Clear();
msg->AddText("Error bins with content >0");
Copy link
Copy Markdown
Collaborator

@njacazio njacazio Jun 2, 2021

Choose a reason for hiding this comment

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

I would adjust the message accordingly, with something e.g. "DRM reporting error words"

Comment thread Modules/TOF/toffull.json Outdated
"type": "Task",
"name": "TaskRaw",
"MOs": [
"RDHCounterCrate0"
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.

This should be the DRMCounter no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the CheckDiagnostics.cxx file it is given as RDH.

Comment thread Modules/TOF/tofraw.json Outdated
"type": "Task",
"name": "TaskRaw",
"MOs": [
"RDHCounterCrate0"
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.

Idem, This should be the name of the histogram that you are processing in the checker

@pranjalsarma pranjalsarma marked this pull request as ready for review June 2, 2021 13:43
@Barthelemy
Copy link
Copy Markdown
Collaborator

Spurrious check errors, merging.

@Barthelemy Barthelemy merged commit 87c4ff7 into AliceO2Group:master Jun 8, 2021
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.

3 participants