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

Public Member Functions

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

Detailed Description

Definition at line 45 of file merging_transformer.cpp.

Constructor & Destructor Documentation

◆ is_merger_consumer_with_scalar()

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

Definition at line 46 of file merging_transformer.cpp.

47 : is_merger_consumer_base( name, pSvcLocator,
48 { { "InputInts", { "firstInt", "secondInt" } }, { "Scale", "scale" } } ) {}
Gaudi::Functional::MergingConsumer< void(ints const &, int const &)> is_merger_consumer_base

Member Function Documentation

◆ operator()()

void is_merger_consumer_with_scalar::operator() ( ints const & is,
int const & scale ) const
inlineoverride

Definition at line 50 of file merging_transformer.cpp.

50 {
51 auto sum = 0;
52 for ( auto i : is ) { sum += i; }
53 info() << "consumed scaled sum: " << sum * scale << " from " << inputLocation( 0 ) << " and " << inputLocation<1>()
54 << endmsg;
55 }
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: