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

Public Member Functions

 OptFrExpTransformer (const std::string &name, ISvcLocator *svcLoc)
std::optional< std::tuple< double, int > > operator() (const double &d) const

Detailed Description

Definition at line 374 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ OptFrExpTransformer()

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

Definition at line 378 of file MakeAndConsume.cpp.

379 : MultiScalarTransformer( name, svcLoc, { "InputDoubles", "/Event/MyVectorOfDoubles" },
380 { { "OutputFractions", "/Event/OptMyVectorOfFractions" },
381 { "OutputIntegers", "/Event/OptMyVectorOfIntegers" } } ) {}

Member Function Documentation

◆ operator()()

std::optional< std::tuple< double, int > > Gaudi::TestSuite::OptFrExpTransformer::operator() ( const double & d) const
inline

Definition at line 385 of file MakeAndConsume.cpp.

385 {
386 if ( d < 30. ) {
387 info() << "Skipping " << d << endmsg;
388 return {};
389 }
390 int i;
391 double frac = std::frexp( d, &i );
392 info() << "Converting " << d << " -> " << frac << ", " << i << endmsg;
393 return std::make_tuple( frac, i );
394 }
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: