Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding option to read from MuDst in StFcsRawHitMaker #226

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

akioogawa
Copy link
Contributor

Adding option to read from MuDst in StFcsRawHitMaker, and example macro to read from MuDst, re-create StFcsHits in StEvent on memory, and re-run FCS reconstruction makers.

…ro to read from Mudst, re-create StFcsHit in StEvent on momery, and re-run FCS reconstruction makers.
@akioogawa akioogawa requested a review from jdbrice as a code owner December 3, 2021 19:02
@@ -25,7 +25,8 @@ class StFcsRawHitMaker : public StRTSBaseMaker {

void setReadMode(int v) {mReadMode=v;}
void setDebug(int v=1) {SetDebug(v);} //!backward compatubility

void setReadMuDst(int v=1) {mReadMuDst=v;} //!reading Mudst/StMuFcsHit into StEvent/StFcsHit
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal, but why assign an int to an unsigned int?

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, not that you have to make a change, but all makers inherit a mode data member from StMaker. It's pretty harmless to add your own mode data member as you've done, but you can certainly make use of what's already there if you like:

> grep -i mode $STAR/StRoot/StChain/StMaker.h
   Int_t           m_Mode;              //!Integer mode of maker
   virtual void         SetMode(Int_t mode=0)   {m_Mode=mode;}   // *MENU*
   virtual Int_t        GetMode() { return m_Mode;}

And you can get fancy with enum if you want 0 and 1 to represent "normalMode" and "readMode" or something like that. Just throwing it out there.

Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

Makes sense

@jdbrice jdbrice merged commit ccba6de into star-bnl:main Dec 6, 2021
jml985 pushed a commit that referenced this pull request Dec 7, 2021
* Adding option to read from Mudst in StFcsRawHitMaker, and example macro to read from Mudst, re-create StFcsHit in StEvent on momery, and re-run FCS reconstruction makers.

* unsigned int -> int
marrbnl pushed a commit that referenced this pull request Dec 8, 2021
* Adding option to read from Mudst in StFcsRawHitMaker, and example macro to read from Mudst, re-create StFcsHit in StEvent on momery, and re-run FCS reconstruction makers.

* unsigned int -> int
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants