Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add online task R3BOnlineSyncCheck #898

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

morze00
Copy link

@morze00 morze00 commented Oct 27, 2023

Add online task for sync check. This will need a revision when more sync values will be available in the unpacker.


Checklist:

@morze00 morze00 force-pushed the sync_check_online branch 2 times, most recently from e9945b3 to 5a74d4f Compare October 27, 2023 16:21
{
canvas->cd(i + 1);
TString hname = EnumName(i);
auto* fh2 = new TH2F(hname.Data(), hname.Data(), XBINS, XMIN, XMAX, YBINS, YMIN, YMAX);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, use here the new definition of histograms:
auto* fh2 = R3B::root_owned(hname.Data(), hname.Data(), XBINS, XMIN, XMAX, YBINS, YMIN, YMAX);

Copy link
Author

Choose a reason for hiding this comment

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

sure, I will do it. In the meantime I have committed some other updates for the reader and online histograms

Copy link
Author

Choose a reason for hiding this comment

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

I think it should be replaced like this:

auto* fh2 = R3B::root_owned(hname.Data(), hname.Data(), XBINS, XMIN, XMAX, YBINS, YMIN, YMAX);

this also requires inclusion of the header:

#include"R3BShared.h"

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it requires --> #include "R3BShared.h"
and for the definition of histograms, it was commented by @YanzhaoW in the PR #830

Copy link
Author

Choose a reason for hiding this comment

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

ok, I think it is ready now. There are still a few minor clang-tidy warnings but I think they can be safely ignored. Let me know if I should modify anything else, otherwise this can be merged

@morze00 morze00 force-pushed the sync_check_online branch 2 times, most recently from 61c01d0 to 1477003 Compare October 31, 2023 15:54
@@ -54,22 +54,40 @@ Bool_t R3BSyncCheckReader::Init(ext_data_struct_info* a_struct_info)
return kFALSE;
}
// Register output array in tree
FairRootManager::Instance()->Register("SyncCheckData", "SyncCheck", fArray, kTRUE);
FairRootManager::Instance()->Register("SyncCheckData", "SyncCheck", fArray, kFALSE);
Copy link
Contributor

Choose a reason for hiding this comment

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

This means that you don't want to store the sync info in the output root file, is this right?

Copy link
Author

Choose a reason for hiding this comment

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

Indeed, I do not consider this data to be important in the output tree. It is primarily required for the online monitor. Anyway, I have just added a flag and a setter to store it optionally (see my last commit)

Update the reader for sync check
@jose-luis-rs jose-luis-rs merged commit 15f9f6c into R3BRootGroup:dev Oct 31, 2023
4 of 5 checks passed
@morze00 morze00 deleted the sync_check_online branch October 31, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants