Go to the documentation of this file.
29 # pragma warning( disable : 2259 )
30 #elif defined( WIN32 )
33 # pragma warning( disable : 4244 )
61 auto tracks = std::make_unique<Gaudi::Examples::MyTrack::Container>();
63 for (
int i = 0; i < 100; ++i ) {
65 auto track = std::make_unique<Gaudi::Examples::MyTrack>();
68 track->setPx(
gauss() );
69 track->setPy(
gauss() );
70 track->setPz(
gauss() + flat() );
73 tracks->insert( track.release() );
80 if ( !exist<Range>(
name() ) ) { err() <<
"No Range is available at location " <<
name() <<
endmsg; }
84 getOrCreate<Range, Gaudi::Examples::MyTrack::Container>(
name() +
"_1" );
85 getOrCreate<Range, Gaudi::Examples::MyTrack::Selection>(
name() +
"_2" );
87 getOrCreate<Gaudi::Examples::MyTrack::Container, Gaudi::Examples::MyTrack::Container>(
name() +
"_3" );
88 getOrCreate<Gaudi::Examples::MyTrack::Selection, Gaudi::Examples::MyTrack::Selection>(
name() +
"_4" );
StatusCode execute() override
the only one essential method
SmartIF< IRndmGenSvc > & randSvc() const
The standard RandomGen service, Return a pointer to the service if present.
const std::string & name() const override
The identifying name of the algorithm object.
KeyedContainer< MyTrack, Containers::HashMap > Container
the actual type of container in TES
DataObjectWriteHandle< Container > m_output
Parameters for the flat random number generation within boundaries [minimum, maximum].
SelCreate(const std::string &name, ISvcLocator *pSvcLocator)
standard constructor
Parameters for the Gauss random number generation.
Random number accessor This small class encapsulates the use of the random number generator.
template class KeyedContainer, KeyedContainer.h
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Header file for std:chrono::duration-based Counters.
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)