1 #define ALLOW_ALL_TYPES
24 rtree =
new TTree(desc.c_str(),nt->title().c_str());
26 for (
size_t length = itms.size(),
i = 0;
i < length;
i++ ) {
27 const char*
itm = itms[
i]->name().c_str();
28 std::string tag =
itm;
29 tag += rootVarType( itms[
i]->
type() );
31 log <<
MSG::INFO <<
"ID " << desc <<
": added branch: "
32 << itm <<
" / " << tag <<
endmsg;
33 rtree->Branch(itm,const_cast<void*>(itms[
i]->buffer()),tag.c_str());
35 log <<
MSG::INFO <<
"Booked TTree with ID:" << desc
36 <<
" \"" << nt->title() <<
"\"" <<
endmsg;
52 log <<
MSG::ERROR <<
"Attempt to write invalid N-tuple.";
53 if ( nt != 0 ) log << nt->
title();
Definition of the MsgStream class used to transmit messages.
virtual StatusCode readData(TTree *rtree, INTuple *pObject, long ievt)
Read N tuple data.
GAUDI_API AIDA::IHistogram1D * book(IHistogramSvc *svc, const std::string &path, const Gaudi::Histo1DDef &hist)
helper function to book 1D-histogram
std::vector< INTupleItem * > ItemContainer
virtual const std::string & title() const =0
Object title.
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
virtual StatusCode writeData(TTree *rtree, INTuple *pObject)
Write N tuple data.
Row wise NTuple converter class definition.
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.
virtual StatusCode load(TTree *tree, INTuple *&refpObject)
Create the transient representation of an object.
#define DECLARE_NAMESPACE_CONVERTER_FACTORY(n, x)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.