Skip to Content.
Sympa Menu

star-fwd-software-l - Re: [[Star-fwd-software-l] ] Issue with kFwdVtxId

star-fwd-software-l AT lists.bnl.gov

Subject: FWD Software

List archive

Chronological Thread  
  • From: Gavin Wilks <gwilks3 AT uic.edu>
  • To: Barak Schmookler <baraks AT ucr.edu>
  • Cc: star-fwd-software-l AT lists.bnl.gov
  • Subject: Re: [[Star-fwd-software-l] ] Issue with kFwdVtxId
  • Date: Sat, 28 Sep 2024 11:55:29 -0500

Hello Barak, 

Thank you for the quick response and this solution. 

Gavin

On Sep 28, 2024, at 11:43, Barak Schmookler <baraks AT ucr.edu> wrote:

Hi Gavin,

We saw that as well when trying to compile on SDCC. Kumar helped me get around the issue by adjusting the order of the headers being included in StEventHelper.cxx.


Daniel, if you think this is a good solution, I can make a PR into your dev branch.

Best,
Barak

On Sat, Sep 28, 2024 at 11:19 AM Gavin Wilks <gwilks3 AT uic.edu> wrote:
Hello All,

I believe someone mentioned having an issue with the parameter “kFwdVtxId” at our last meeting. I am unable to compile the code without receiving the following error:

```
.sl73_gcc485/include/StVertex.h: In member function 'virtual void StVertex::setFwdVertex()':
.sl73_gcc485/include/StVertex.h:131:53: error: 'kFwdVtxId' was not declared in this scope
     virtual void setFwdVertex()       {SETBIT(mFlag,kFwdVtxId);}
                                                     ^
 #define BIT(n)       (1ULL << (n))
                                ^
.sl73_gcc485/include/StVertex.h:131:40: note: in expansion of macro 'SETBIT'
     virtual void setFwdVertex()       {SETBIT(mFlag,kFwdVtxId);}
                                        ^
.sl73_gcc485/include/StVertex.h: In member function 'bool StVertex::isFwdVtx() const':
.sl73_gcc485/include/StVertex.h:139:65: error: 'kFwdVtxId' was not declared in this scope
     bool        isFwdVtx()          const {return TESTBIT(mFlag,kFwdVtxId);}
                                                                 ^
 #define BIT(n)       (1ULL << (n))
                                ^
.sl73_gcc485/include/StVertex.h:139:51: note: in expansion of macro 'TESTBIT'
     bool        isFwdVtx()          const {return TESTBIT(mFlag,kFwdVtxId);}
                                                   ^
cons: *** [.sl73_gcc485/obj/StRoot/StEventUtilities/StEventHelper.o] Error 1
cons: errors constructing .sl73_gcc485/obj/StRoot/StEventUtilities/StEventHelper.o
```

I have checked StRoot/StEvent/StEnumerations.h where this parameter is defined and I do not see any issue. Has anyone had this problem and found a solution to this?

Best,
Gavin





Archive powered by MHonArc 2.6.24.

Top of Page