Project

General

Profile

Support #20279

CLHEP in RandomNumberGenerator

Added by Andrei Gaponenko over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Infrastructure
Target version:
Start date:
07/05/2018
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
Duration:

Description

Hello,

Attempting to compile code that contains

   #include "art/Framework/Services/Optional/RandomNumberGenerator.h" 

   art::RandomNumberGenerator::base_engine_t& _engine;
   // some code using the _engine

leads to an
   error: invalid use of incomplete type 'using base_engine_t = class CLHEP::HepRandomEngine {aka class CLHEP::HepRandomEngine}'
        result_type operator() () { return _engine.operator unsigned int(); }


I know that I can fix that by adding CLHEP includes to my code, but
perhaps requiring users to do this defeats the purpose of having
base_engine_t in the first place.

Andrei

Associated revisions

Revision 943d312a (diff)
Added by Kyle Knoepfel over 1 year ago

Resolve issue #20279: provide HepRandomEngine header in RNG service header.

History

#1 Updated by Kyle Knoepfel over 1 year ago

  • Tracker changed from Feature to Support
  • Category set to Infrastructure
  • Status changed from New to Assigned
  • Assignee set to Kyle Knoepfel
  • Estimated time set to 1.00 h

#2 Updated by Kyle Knoepfel over 1 year ago

  • Status changed from Assigned to Resolved
  • Target version set to 2.11.03
  • % Done changed from 0 to 100

Resolved with commit art:943d312.

#3 Updated by Kyle Knoepfel over 1 year ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF