The Gaudi Framework  v37r0 (b608885e)
Gaudi::Examples::SRangesToIntVector Struct Referencefinal
Inheritance diagram for Gaudi::Examples::SRangesToIntVector:
Collaboration diagram for Gaudi::Examples::SRangesToIntVector:

Public Member Functions

 SRangesToIntVector (const std::string &name, ISvcLocator *svcLoc)
 
std::vector< int > operator() (const Gaudi::Functional::vector_of_const_< Gaudi::Range_< std::vector< S const * >>> &SVectors) const override
 

Detailed Description

Definition at line 416 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ SRangesToIntVector()

Gaudi::Examples::SRangesToIntVector::SRangesToIntVector ( const std::string name,
ISvcLocator svcLoc 
)
inline

Definition at line 421 of file MakeAndConsume.cpp.

422  : MergingTransformer( name, svcLoc, { "InputRanges", {} },
423  { "OutputLocation", "/Event/MyConcatenatedIntFromSVector" } ) {}

Member Function Documentation

◆ operator()()

std::vector<int> Gaudi::Examples::SRangesToIntVector::operator() ( const Gaudi::Functional::vector_of_const_< Gaudi::Range_< std::vector< S const * >>> &  SVectors) const
inlineoverride

Definition at line 425 of file MakeAndConsume.cpp.

426  {
428  // Concatenate the input vectors to form the output
429  for ( const auto& SVector : SVectors ) {
430  info() << "Concatening range of size " << SVector.size() << endmsg;
431  for ( auto* s : SVector ) { out.push_back( s->a ); }
432  }
433  info() << "Storing output vector " << out << " to " << outputLocation() << endmsg;
434  return out;
435  }

The documentation for this struct was generated from the following file:
Gaudi::Functional::MergingTransformer
details::MergingTransformer< Signature, Traits_, details::isLegacy< Traits_ > > MergingTransformer
Definition: MergingTransformer.h:234
bug_34121.name
name
Definition: bug_34121.py:20
gaudirun.s
string s
Definition: gaudirun.py:348
std::vector< int >
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
PrepareBase.out
out
Definition: PrepareBase.py:20