The Gaudi Framework  master (e98cfcff)
Loading...
Searching...
No Matches
is2f_merger_with_scalar Struct Reference
Inheritance diagram for is2f_merger_with_scalar:
Collaboration diagram for is2f_merger_with_scalar:

Public Member Functions

 is2f_merger_with_scalar (std::string const &name, ISvcLocator *pSvcLocator)
 
float operator() (ints const &is, int const &scale) const override
 

Detailed Description

Definition at line 25 of file merging_transformer.cpp.

Constructor & Destructor Documentation

◆ is2f_merger_with_scalar()

is2f_merger_with_scalar::is2f_merger_with_scalar ( std::string const & name,
ISvcLocator * pSvcLocator )
inline

Definition at line 26 of file merging_transformer.cpp.

27 : is2f_merger_base( name, pSvcLocator, { { "InputInts", { "firstInt", "secondInt" } }, { "Scale", "scale" } },
28 { "Output", "scaledSum" } ) {}
Gaudi::Functional::MergingTransformer< float(ints const &, int const &)> is2f_merger_base

Member Function Documentation

◆ operator()()

float is2f_merger_with_scalar::operator() ( ints const & is,
int const & scale ) const
inlineoverride

Definition at line 30 of file merging_transformer.cpp.

30 {
31 auto sum = 0.f;
32 info() << "input locations: " << inputLocation( 0 ) << ", " << inputLocation<1>() << endmsg;
33 info() << "input location sizes: " << inputLocationSize( 0 ) << ", " << inputLocationSize( 1 ) << endmsg;
34 for ( auto i : is ) {
35 info() << "i: " << i << " ";
36 sum += i;
37 }
38 info() << "scale: " << scale << endmsg;
39 return sum * scale;
40 }
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: