Go to the documentation of this file.
82 if ( !track ) {
return 0; }
91 auto event = get<DataObject>(
"/Event" );
93 auto tracks = get<MyTrackVector>(
m_tracks );
96 auto tuple =
evtCol(
TupleID(
"MyCOL1" ),
"Trivial Event Tag Collection" );
99 tuple->column(
"Address", event->registry()->address() ).ignore();
104 tracks->end(),
"Ntrack", 5000 )
112 tuple->column(
"Energy", energy ).ignore();
115 tuple->put(
"Track", !tracks->empty() ? *( tracks->begin() ) :
nullptr ).ignore();
117 return tuple->write();
auto sqrt(std::chrono::duration< Rep, Period > d)
sqrt for std::chrono::duration
const std::string & name() const override
The identifying name of the algorithm object.
StatusCode execute() override
the only one essential method: execute the algorithm
GaudiAlg::TupleID TupleID
the actual type of N-tuple ID
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.
ExtendedEvtCol(const std::string &name, ISvcLocator *pSvc)
standard constructor
float pz() const
Accessors: Retrieve z-component of the track momentum.
Tuple evtCol(const std::string &title, const CLID &clid=CLID_ColumnWiseTuple) const
Access an Event Tag Collection object (book on-demand) with unique identifier.
Header file for std:chrono::duration-based Counters.
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
#define DECLARE_COMPONENT(type)
float px() const
Accessors: Retrieve x-component of the track momentum.
Gaudi::Property< std::string > m_tracks
float py() const
Accessors: Retrieve y-component of the track momentum.