Skip to content

RHICf Run and Event number added in StRHICfCollection#544

Merged
klendathu2k merged 5 commits intostar-bnl:mainfrom
ggfdsa10:StRHICfCollection
May 22, 2023
Merged

RHICf Run and Event number added in StRHICfCollection#544
klendathu2k merged 5 commits intostar-bnl:mainfrom
ggfdsa10:StRHICfCollection

Conversation

@ggfdsa10
Copy link
Copy Markdown
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

@ggfdsa10 ggfdsa10 requested a review from klendathu2k as a code owner May 19, 2023 07:35
Copy link
Copy Markdown
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

Comment thread StRoot/StEvent/StRHICfCollection.h Outdated
Comment thread StRoot/StEvent/StRHICfCollection.cxx Outdated
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

Comment thread StRoot/StEvent/StRHICfCollection.h
@ggfdsa10
Copy link
Copy Markdown
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
Copy Markdown
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

void StRHICfCollection::isAllSave(){mRHICfHitColl = new StRHICfHit();}

//=========== Set ===========//
void StRHICfCollection::setRHICfRunNumber(UInt_t run){mRHICfRunNumber = run;}
Copy link
Copy Markdown
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