-
Notifications
You must be signed in to change notification settings - Fork 62
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
Conversation
…ro to read from Mudst, re-create StFcsHit in StEvent on momery, and re-run FCS reconstruction makers.
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense
* 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
* 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
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.