1 #define ALLOW_ALL_TYPES 23 rtree =
new TTree(desc.c_str(),nt->title().c_str());
25 for (
const auto& i : nt->items() ) {
26 std::string tag = i->name() + rootVarType( i->type() );
28 log <<
MSG::INFO <<
"ID " << desc <<
": added branch: " 29 << i->name() <<
" / " << tag <<
endmsg;
30 rtree->Branch(i->name().c_str(),
const_cast<void*
>(i->buffer()),tag.
c_str());
32 log <<
MSG::INFO <<
"Booked TTree with ID:" << desc
33 <<
" \"" << nt->title() <<
"\"" <<
endmsg;
49 log <<
MSG::ERROR <<
"Attempt to write invalid N-tuple.";
50 if ( nt ) log << nt->
title();
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.
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.
#define DECLARE_NAMESPACE_CONVERTER_FACTORY(n, x)
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.