Go to the documentation of this file.
42 m_tuple1 =
ntupleSvc()->book(
"MyTuples/1", CLID_RowWiseTuple,
"Row-wise N-Tuple example" );
57 m_tuple2 =
ntupleSvc()->book(
"MyTuples/simple/2", CLID_ColumnWiseTuple,
"Col-Wise NTuple examples" );
67 info() <<
"Finished booking NTuples" <<
endmsg;
79 m_ntrk = long( sin(
double(
n ) ) * 52. + 50. );
80 m_energy = float( sin(
double(
n ) ) * 52. + 50. );
82 m_n = long(
abs( ( 12345 * (
n + 1 ) ) % 100 ) );
84 for (
int i = 0; i <
m_n; i++ ) {
85 m_fNumbers[i] = float( cos(
double( 2 *
n ) ) * 52. + 50. );
86 m_iNumbers[i] = long( cos(
double( 2 *
n ) ) * 52. + 50. );
108 info() <<
"Finalizing..." <<
endmsg;
NTuple::Item< long > m_ntrk
NTuple::Item< float > m_energy
Alias for backward compatibility.
StatusCode finalize() override
Gaudi::ParticleID abs(const Gaudi::ParticleID &p)
Return the absolute value for a PID.
virtual StatusCode write()=0
Write record of the NTuple (Shortcut of writeRecord)
StatusCode initialize() override
NTuple::Array< long > m_iNumbers
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode addItem(const std::string &name, Item< TYPE > &itm)
Add a scalar data item a N tuple.
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
A small class used to access easily (and efficiently) data items residing in data stores.
#define DECLARE_COMPONENT(type)
constexpr static const auto FAILURE
StatusCode execute() override
SmartIF< INTupleSvc > & ntupleSvc() const
The standard N tuple service.
NTuple::Array< float > m_fNumbers