1 #define ALLOW_ALL_TYPES 21 rtree =
new TTree( desc.c_str(), nt->title().c_str() );
23 for (
const auto& i : nt->items() ) {
24 std::string tag = i->name() + rootVarType( i->type() );
26 log <<
MSG::INFO <<
"ID " << desc <<
": added branch: " << i->name() <<
" / " << tag <<
endmsg;
27 rtree->Branch( i->name().c_str(),
const_cast<void*
>( i->buffer() ), tag.
c_str() );
29 log <<
MSG::INFO <<
"Booked TTree with ID:" << desc <<
" \"" << nt->title() <<
"\"" <<
endmsg;
45 log <<
MSG::ERROR <<
"Attempt to write invalid N-tuple.";
46 if ( nt ) log << nt->
title();
constexpr static const auto FAILURE
Definition of the MsgStream class used to transmit messages.
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
#define DECLARE_CONVERTER(x)
Row wise NTuple converter class definition.
StatusCode load(TTree *tree, INTuple *&refpObject) override
Create the transient representation of an object.
NTuple interface class definition.
virtual void reset()=0
Reset all entries to their default values.
This class is used for returning status codes from appropriate routines.
StatusCode readData(TTree *rtree, INTuple *pObject, long ievt) override
Read N tuple data.
constexpr static const auto SUCCESS
virtual const std::string & title() const =0
Object title.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
StatusCode writeData(TTree *rtree, INTuple *pObject) override
Write N tuple data.