The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::TestSuite::OptLdExpTransformer Struct Referencefinal
Inheritance diagram for Gaudi::TestSuite::OptLdExpTransformer:
Collaboration diagram for Gaudi::TestSuite::OptLdExpTransformer:

Public Member Functions

 OptLdExpTransformer (const std::string &name, ISvcLocator *svcLoc)
std::optional< double > operator() (const double &frac, const int &i) const

Detailed Description

Definition at line 417 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ OptLdExpTransformer()

Gaudi::TestSuite::OptLdExpTransformer::OptLdExpTransformer ( const std::string & name,
ISvcLocator * svcLoc )
inline

Definition at line 421 of file MakeAndConsume.cpp.

422 : ScalarTransformer(
423 name, svcLoc,
424 { { "InputFractions", "/Event/MyVectorOfFractions" }, { "InputIntegers", "/Event/MyVectorOfIntegers" } },
425 { "OutputDoubles", "/Event/MyOptVectorOfDoubles" } ) {}

Member Function Documentation

◆ operator()()

std::optional< double > Gaudi::TestSuite::OptLdExpTransformer::operator() ( const double & frac,
const int & i ) const
inline

Definition at line 429 of file MakeAndConsume.cpp.

429 {
430 double d = std::ldexp( frac, i );
431 if ( i > 6 ) {
432 info() << "Skipping " << d << endmsg;
433 return {};
434 }
435 info() << "Converting " << i << ", " << frac << " -> " << d << endmsg;
436 return d;
437 }
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198

The documentation for this struct was generated from the following file: