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

RHICf Run and Event number added in StRHICfCollection #544

Merged
merged 5 commits into from
May 22, 2023

Conversation

ggfdsa10
Copy link
Member

PR 1. StRHICfCollection for RHICf Run and Event Number

I will request 4 PRs for adding the RHICf run and event number, before the new STAR release

  1. this PR
  2. StRHICfDbMaker
  3. StMuDstMaker/StRHICfRawHit and StRHICfUtil
  4. StRHICfRawHitMaker

I believe reviewing these PRs is very simple and clear.
Please review and approve this

Thank you,
Seunghwan

Copy link
Member

@plexoos plexoos left a comment

Choose a reason for hiding this comment

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

LGTM

StRoot/StEvent/StRHICfCollection.h Outdated Show resolved Hide resolved
StRoot/StEvent/StRHICfCollection.cxx Outdated Show resolved Hide resolved
Copy link
Contributor

@klendathu2k klendathu2k left a comment

Choose a reason for hiding this comment

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

The code is clear and unobjectionable (save for constness which Dmitri has noted). What is not clear is the rationale. Why do you need to propagate a run and event number, when these are already provided by StEvent? Two possible reasons come to mind...

  1. Downstream analysis software expects them to be part of the StEvent / StMuDst and/or pico dst objects. If this is the case, then we should not approve this pull request.

  2. The RHICf detector has encoded a run and event numbering scheme that differs from the STAR scheme. If this is the case, why do we need to have two different run/event numbering schemes in our event data model? This is guaranteed to cause confusion in the future.

@genevb
Copy link
Contributor

genevb commented May 19, 2023

Why do you need to propagate a run and event number, when these are already provided by StEvent? ...
2. The RHICf detector has encoded a run and event numbering scheme that differs from the STAR scheme. If this is the case, why do we need to have two different run/event numbering schemes in our event data model? This is guaranteed to cause confusion in the future.

To expedite, I will try to summarize my understanding on behalf of the RHICf folks:

#2 is correct, and this is because RHICf did take their own raw data outside of the STAR DAQ system. That raw data has its own runs and events. By including the RHICf run and event numbers in addition to the STAR run and event numbers that are already accessible in the DSTs, the RHICf group can correlate between findings they made through their own raw data investigations with what they get through the STAR framework.

@klendathu2k
Copy link
Contributor

#2 is correct, and this is because RHICf did take their own raw data outside of the STAR DAQ system.

Thanks Gene. I thought that would be the case. Inclusion in the STAR event data model is reasonable, But it absolutely must be documented in the header file.

@ggfdsa10
Copy link
Member Author

Dear Jason,
Thank you for your comments

and Gene,
Thank you for your explanation on behalf of RHICf and me

ggfdsa10 and others added 4 commits May 20, 2023 16:59
Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>
Co-authored-by: Dmitri Smirnov <dmixsmi@gmail.com>
Co-authored-by: Gene Van Buren <85305093+genevb@users.noreply.github.com>
Copy link
Contributor

@klendathu2k klendathu2k left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -50,6 +52,8 @@ const std::vector<StRHICfPoint*>& StRHICfCollection::pointCollection() const {re
void StRHICfCollection::isAllSave(){mRHICfHitColl = new StRHICfHit();}

//=========== Set ===========//
void StRHICfCollection::setRHICfRunNumber(UInt_t run){mRHICfRunNumber = run;}
Copy link
Contributor

Choose a reason for hiding this comment

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

It is important that we not confuse people looking at the data in the future. Please provide a comment block for the run and event number setters, getters and member variables. These comment blocks should clearly state what is being stored/retrieved, and why it differs from the STAR run and event numbering scheme.

@klendathu2k klendathu2k merged commit 2430b5f into star-bnl:main May 22, 2023
@ggfdsa10 ggfdsa10 deleted the StRHICfCollection branch May 22, 2023 19:13
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.

4 participants