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. );
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
SmartDataPtr< NTuple::Tuple > NTuplePtr
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
const std::string & name() const override
The identifying name of the algorithm object.
SmartIF< INTupleSvc > & ntupleSvc() const
The standard N tuple service.
virtual NTuple::Tuple * book(const std::string &fullPath, const CLID &type, const std::string &title)=0
Book Ntuple and register it with the data store.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
NTuple::Array< float > m_fNumbers
StatusCode finalize() override
NTuple::Array< long > m_iNumbers
NTupleAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode initialize() override
StatusCode execute() override
NTuple::Item< long > m_ntrk
NTuple::Item< float > m_energy
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE