HEP-FCC / FCCAnalyses

Common analysis framework for the Future Circular Collider
https://hep-fcc.github.io/FCCAnalyses/
24 stars 116 forks source link

Installation issue: error: 'class edm4hep::ReconstructedParticleData' has no member named 'PDG' " #363

Closed AlfredThePhysicsGuy closed 6 months ago

AlfredThePhysicsGuy commented 7 months ago

While installing the following is run: git clone https://github.com/HEP-FCC/FCCAnalyses.git source ./setup.sh mkdir build install cd build cmake .. -DCMAKE_INSTALL_PREFIX=../install make install

The problem occurs while running "make install", and errors with the same statement occurs multiple times: " error: 'class edm4hep::ReconstructedParticleData' has no member named 'PDG' "

Which seems odd since, from what I can see online, ReconstructedParticleData does indeed have the member PDG: " class ReconstructedParticleData { public: ... std::int32_t PDG{}; ///< PDG code for this particle "

An example of the entirety of one these error messages: .../FCCAnalyses/analyzers/dataframe/src/JetConstituentsUtils.cc: In function 'ROOT::VecOps::RVec<ROOT::VecOps::RVec > FCCAnalyses::JetConstituentsUtils::get_isGamma(const ROOT::VecOps::RVec<ROOT::VecOps::RVec >&)': .../FCCAnalyses/analyzers/dataframe/src/JetConstituentsUtils.cc:1176:24: error: 'class edm4hep::ReconstructedParticleData' has no member named 'PDG' 1176 | if (ct.at(j).PDG == 22)

kjvbrt commented 6 months ago

Hi @AlfredThePhysicsGuy, thanks for reporting the problem :)

it should be fixed in this PR: https://github.com/HEP-FCC/FCCAnalyses/pull/366