Skip to content

Adding option to read from MuDst in StFcsRawHitMaker#226

Merged
jdbrice merged 2 commits intostar-bnl:mainfrom
akioogawa:PR20211203b
Dec 6, 2021
Merged

Adding option to read from MuDst in StFcsRawHitMaker#226
jdbrice merged 2 commits intostar-bnl:mainfrom
akioogawa:PR20211203b

Conversation

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

5 participants