18 struct SelectTracks final : Functional::Transformer<Gaudi::TestSuite::MyTrack::Selection(
19 const Gaudi::Range_<Gaudi::TestSuite::MyTrack::ConstVector>& )> {
22 : Transformer( name, pSvc, { KeyValue(
"InputData", {
"MyTracks" } ) },
23 KeyValue(
"OutputData", {
"MyOutTracks" } ) ) {}
28 out_tracks.
insert( in_tracks.
begin(), in_tracks.
end(), [](
const MyTrack* t ) { return t->px() >= 10.f; } );
#define DECLARE_COMPONENT(type)
Useful class for representation of "sequence" of the objects through the range of valid iterators.
iterator begin() const
access to begin of the sequence (const version )
iterator end() const
access to end of the sequence (const version)
SharedObjectsContainer< MyTrack > Selection
the type of selection
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
void insert(const TYPE *object)
insert one object into the container
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Gaudi::TestSuite::MyTrack::Selection operator()(const Gaudi::Range_< Gaudi::TestSuite::MyTrack::ConstVector > &in_tracks) const override
SelectTracks(const std::string &name, ISvcLocator *pSvc)