The Gaudi Framework  v36r9p1 (5c15b2bb)
RCWNTupleCnv.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #define ROOTHISTCNV_RCWNTUPLECNV_CPP
12 
13 // Include files
14 #include "GaudiKernel/INTupleSvc.h"
15 #include "GaudiKernel/MsgStream.h"
16 #include "GaudiKernel/NTuple.h"
17 
18 // Compiler include files
19 #include <cstdio>
20 #include <cstring>
21 #include <list>
22 #include <utility>
23 #include <vector>
24 
25 #include "RCWNTupleCnv.h"
26 
27 #include "TLeafD.h"
28 #include "TLeafF.h"
29 #include "TLeafI.h"
30 #include "TTree.h"
31 
32 namespace {
33  template <typename T>
34  size_t saveItem( char* target, const NTuple::_Data<T>& src ) {
35  static_assert( std::is_trivially_copyable_v<T>, "T must be trivally copyable" );
36  std::memcpy( target, src.buffer(), sizeof( T ) * src.length() );
37  return sizeof( T ) * src.length();
38  }
39 
40  template <typename T>
41  size_t loadItem( const char* src, NTuple::_Data<T>& target ) {
42  static_assert( std::is_trivially_copyable_v<T>, "T must be trivally copyable" );
43  std::memcpy( const_cast<void*>( target.buffer() ), src, sizeof( T ) * target.length() );
44  return sizeof( T ) * target.length();
45  }
46 
47  template <typename POD>
48  decltype( auto ) downcast_item( const INTupleItem& i ) {
49  return dynamic_cast<const NTuple::_Data<POD>&>( i );
50  }
51  template <typename POD>
52  decltype( auto ) downcast_item( INTupleItem& i ) {
53  return dynamic_cast<NTuple::_Data<POD>&>( i );
54  }
55  template <typename POD, typename T>
56  void downcast_item( T&& ) = delete;
57 
58  template <typename Item, typename F>
59  decltype( auto ) visit( Item& i, F&& f ) {
60  switch ( i.type() ) {
61  case DataTypeInfo::INT:
62  return f( downcast_item<int>( i ) );
63  case DataTypeInfo::CHAR:
64  return f( downcast_item<char>( i ) );
66  return f( downcast_item<short>( i ) );
67  case DataTypeInfo::LONG:
68  return f( downcast_item<long>( i ) );
70  return f( downcast_item<long long>( i ) );
72  return f( downcast_item<unsigned char>( i ) );
74  return f( downcast_item<unsigned short>( i ) );
75  case DataTypeInfo::UINT:
76  return f( downcast_item<unsigned int>( i ) );
78  return f( downcast_item<unsigned long>( i ) );
80  return f( downcast_item<unsigned long long>( i ) );
82  return f( downcast_item<double>( i ) );
84  return f( downcast_item<float>( i ) );
85  case DataTypeInfo::BOOL:
86  return f( downcast_item<bool>( i ) );
87  }
88  throw std::runtime_error( "RCWNTupleCnv::visit: unknown INTupleItem::type()" );
89  }
90 
91  //-----------------------------------------------------------------------------
92  template <class T>
93  void analyzeItem( std::string typ, const NTuple::_Data<T>* it, std::string& desc, std::string& block_name,
94  std::string& var_name, long& lowerRange, long& upperRange, long& size )
95  //-----------------------------------------------------------------------------
96  {
97 
98  RootHistCnv::parseName( it->name(), block_name, var_name );
99 
100  // long item_size = (sizeof(T) < 4) ? 4 : sizeof(T);
101  long item_size = sizeof( T );
102  long dimension = it->length();
103  long ndim = it->ndim() - 1;
104  desc += var_name;
105  if ( it->hasIndex() || it->length() > 1 ) { desc += '['; }
106  if ( it->hasIndex() ) {
107  std::string ind_blk, ind_var;
108  RootHistCnv::parseName( it->index(), ind_blk, ind_var );
109  if ( ind_blk != block_name ) {
110  std::cerr << "ERROR: Index for CWNT variable " << ind_var << " is in a different block: " << ind_blk
111  << std::endl;
112  }
113  desc += ind_var;
114  } else if ( it->dim( ndim ) > 1 ) {
115  desc += std::to_string( it->dim( ndim ) );
116  }
117 
118  for ( int i = ndim - 1; i >= 0; i-- ) {
119  desc += "][";
120  desc += std::to_string( it->dim( i ) );
121  }
122  if ( it->hasIndex() || it->length() > 1 ) { desc += ']'; }
123 
124  if ( it->range().lower() != it->range().min() && it->range().upper() != it->range().max() ) {
125  lowerRange = it->range().lower();
126  upperRange = it->range().upper();
127  } else {
128  lowerRange = 0;
129  upperRange = -1;
130  }
131  desc += typ;
132  size += item_size * dimension;
133  }
134 } // namespace
135 
136 //-----------------------------------------------------------------------------
138 //-----------------------------------------------------------------------------
139 {
140  MsgStream log( msgSvc(), "RCWNTupleCnv" );
141  rtree = new TTree( desc.c_str(), nt->title().c_str() );
142  log << MSG::VERBOSE << "created tree id: " << rtree->GetName() << " title: " << nt->title() << " desc: " << desc
143  << endmsg;
144 
145  // Loop over the items
146 
147  std::string block_name, var_name;
148  long lowerRange, upperRange;
149  long size = 0;
150  long cursize, oldsize = 0;
151  std::vector<std::string> item_fullname;
152  // std::vector<long> item_size,item_size2;
153  std::vector<long> item_buf_pos, item_buf_len, item_buf_end;
154  std::vector<long> item_range_lower, item_range_upper;
156 
157  for ( const auto& i : nt->items() ) {
158  std::string item;
159 
160  visit( *i, [&]( const auto& data ) {
161  analyzeItem( this->rootVarType( data.type() ), &data, item, block_name, var_name, lowerRange, upperRange, size );
162  } );
163 
164  item_name.emplace_back( block_name, item );
165  cursize = size - oldsize;
166 
167  log << MSG::VERBOSE << "item: " << item << " type " << i->type() << " blk: " << block_name << " var: " << var_name
168  << " rng: " << lowerRange << " " << upperRange << " sz: " << size << " " << cursize
169  << " buf_pos: " << size - cursize << endmsg;
170 
171  item_fullname.push_back( var_name );
172  item_buf_pos.push_back( size - cursize );
173  item_buf_len.push_back( cursize );
174  item_buf_end.push_back( size );
175  item_range_lower.push_back( lowerRange );
176  item_range_upper.push_back( upperRange );
177 
178  oldsize = size;
179  }
180 
181  // Make a new buffer, and tell the ntuple where it is
182  char* buff = nt->setBuffer( new char[size] );
183 
184  log << MSG::VERBOSE << "Created buffer size: " << size << " at " << (void*)buff << endmsg;
185 
186  // Zero out the buffer to make ROOT happy
187  std::fill_n( buff, size, 0 );
188 
189  char* buf_pos = buff;
190 
191  auto end = item_name.cend();
192 
193  // Loop over items, creating a new branch for each one;
194  unsigned int i_item = 0;
195  for ( auto itr = item_name.cbegin(); itr != end; ++itr, ++i_item ) {
196 
197  buf_pos = buff + item_buf_pos[i_item];
198 
199  // log << MSG::WARNING << "adding TBranch " << i_item << " "
200  // << item_fullname[i_item]
201  // << " format: " << itr->second.c_str() << " at "
202  // << (void*) buf_pos << " (" << (void*) buff << "+"
203  // << (void*)item_buf_pos[i_item] << ")"
204  // << endmsg;
205 
206 #if ROOT_VERSION_CODE >= ROOT_VERSION( 5, 15, 0 )
207  auto br = new TBranch( rtree,
208 #else
209  TBranch* br = new TBranch(
210 #endif
211  item_fullname[i_item].c_str(), buf_pos, itr->second.c_str() );
212 
213  if ( itr->first != "AUTO_BLK" ) {
214  std::string title = itr->first;
215  title = itr->first + "::" + br->GetTitle();
216  br->SetTitle( title.c_str() );
217  }
218 
219  log << MSG::DEBUG << "adding TBranch " << br->GetTitle() << " at " << (void*)buf_pos << endmsg;
220 
221  // for index items with a limited range. Must be a TLeafI!
222  if ( item_range_lower[i_item] < item_range_upper[i_item] ) {
223  // log << MSG::VERBOSE << "\"" << item_fullname[i_item]
224  // << "\" is range limited " << item_range_lower[i_item] << " "
225  // << item_range_upper[i_item] << endmsg;
226  TLeafI* index = nullptr;
227  TObject* tobj = br->GetListOfLeaves()->FindObject( item_fullname[i_item].c_str() );
228  if ( tobj->IsA()->InheritsFrom( "TLeafI" ) ) {
229  index = dynamic_cast<TLeafI*>( tobj );
230 
231  if ( index ) {
232  index->SetMaximum( item_range_upper[i_item] );
233  // FIXME -- add for next version of ROOT
234  // index->SetMinimum( item_range_lower[i_item] );
235  } else {
236  log << MSG::ERROR << "Could dynamic cast to TLeafI: " << item_fullname[i_item] << endmsg;
237  }
238  }
239  }
240 
241  rtree->GetListOfBranches()->Add( br );
242  }
243 
244  log << MSG::INFO << "Booked TTree with ID: " << desc << " \"" << nt->title() << "\" in directory " << getDirectory()
245  << endmsg;
246 
247  return StatusCode::SUCCESS;
248 }
249 
250 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
251 
252 //-----------------------------------------------------------------------------
254 //-----------------------------------------------------------------------------
255 {
256  // Fill the tree;
257  const auto& items = nt->items();
258  std::accumulate( begin( items ), end( items ), nt->buffer(), []( char* dest, const INTupleItem* i ) {
259  return dest + visit( *i, [dest]( const auto& item ) { return saveItem( dest, item ); } );
260  } );
261 
262  rtree->Fill();
263  nt->reset();
264  return StatusCode::SUCCESS;
265 }
266 
267 //-----------------------------------------------------------------------------
268 StatusCode RootHistCnv::RCWNTupleCnv::readData( TTree* rtree, INTuple* ntup, long ievt )
269 //-----------------------------------------------------------------------------
270 {
271  if ( ievt >= rtree->GetEntries() ) {
272  MsgStream log( msgSvc(), "RCWNTupleCnv::readData" );
273  log << MSG::ERROR << "no more entries in tree to read. max: " << rtree->GetEntries() << " current: " << ievt
274  << endmsg;
275  return StatusCode::FAILURE;
276  }
277 
278  rtree->GetEvent( ievt );
279  ievt++;
280 
281  // copy data from ntup->buffer() to ntup->items()->buffer()
282  auto& items = ntup->items();
283  std::accumulate( begin( items ), end( items ), const_cast<const char*>( ntup->buffer() ),
284  []( const char* src, INTupleItem* i ) {
285  return src + visit( *i, [src]( auto& item ) { return loadItem( src, item ); } );
286  } );
287 
288  return StatusCode::SUCCESS;
289 }
290 
291 //-----------------------------------------------------------------------------
293 //-----------------------------------------------------------------------------
294 {
295  MsgStream log( msgSvc(), "RCWNTupleCnv::load" );
296 
297  StatusCode status;
298 
299  NTuple::Tuple* pObj = nullptr;
300 
301  std::string title = tree->GetTitle();
302  log << MSG::VERBOSE << "loading CWNT " << title << " at: " << tree << endmsg;
303 
304  status = m_ntupleSvc->create( CLID_ColumnWiseTuple, title, pObj );
305  INTuple* ntup = dynamic_cast<INTuple*>( pObj );
306  if ( !ntup ) { log << MSG::ERROR << "cannot dynamic cast to INTuple" << endmsg; }
307 
308  INTupleItem* item = nullptr;
309 
310  std::string itemName, indexName, item_type, itemTitle, blockName;
311  // long numEnt, numVar;
312  long size, totsize = 0;
314 
315  // numEnt = (int)tree->GetEntries();
316  // numVar = tree->GetNbranches();
317 
318  // loop over all branches (==leaves)
319  TObjArray* lbr = tree->GetListOfBranches();
320  TIter bitr( lbr );
321  while ( TObject* tobjb = bitr() ) {
322 
323  TBranch* br = (TBranch*)tobjb;
324  itemTitle = br->GetTitle();
325 
326  int ipos = itemTitle.find( "::" );
327  if ( ipos >= 0 ) {
328  blockName = itemTitle.substr( 0, ipos );
329  } else {
330  blockName = "";
331  }
332 
333  TObjArray* lf = br->GetListOfLeaves();
334 
335  TIter litr( lf );
336  while ( TObject* tobj = litr() ) {
337 
338  bool hasRange = false;
339  int indexRange = 0;
340  int itemSize;
341  item = nullptr;
342 
343  // TLeaf* tl = (TLeaf*)tobj;
344  TLeaf* tl = dynamic_cast<TLeaf*>( tobj );
345  if ( tl ) {
346  itemName = tl->GetName();
347  } else {
348  log << MSG::ERROR << "cannot dynamic cast to TLeaf" << endmsg;
349  }
350 
351  // char* buf_pos = (char*)tl->GetValuePointer();
352  // cout << " " << itemName << " " << blockName << " "
353  // << (void*)buf_pos;
354 
355  if ( blockName != "" ) {
356  log << MSG::DEBUG << "loading NTuple item " << blockName << "/" << itemName;
357  } else {
358  log << MSG::DEBUG << "loading NTuple item " << itemName;
359  }
360 
361  int arraySize{ 0 };
362  TLeaf* indexLeaf = ( tl ? tl->GetLeafCounter( arraySize ) : nullptr );
363 
364  if ( arraySize == 0 ) { log << MSG::ERROR << "TLeaf counter size = 0. This should not happen!" << endmsg; }
365 
366  if ( indexLeaf ) {
367  // index Arrays and Matrices
368 
369  indexName = indexLeaf->GetName();
370  // indexRange = tl->GetNdata();
371  indexRange = indexLeaf->GetMaximum();
372  itemSize = indexRange * tl->GetLenType() * arraySize;
373 
374  log << "[" << indexName;
375 
376  // Just for Matrices
377  if ( arraySize != 1 ) { log << "][" << arraySize; }
378  log << "]";
379 
380  } else {
381  itemSize = tl->GetLenType() * arraySize;
382 
383  indexName = "";
384 
385  if ( arraySize == 1 ) {
386  // Simple items
387  } else {
388  // Arrays of constant size
389  log << "[" << arraySize << "]";
390  }
391  }
392 
393  log << endmsg;
394 
395  // cout << " index: " << indexName << endl;
396 
397  // size = tl->GetNdata() * tl->GetLenType();
398  size = itemSize;
399  totsize += size;
400 
401  hasRange = tl->IsRange();
402 
403  itemList.emplace_back( tl, itemSize );
404 
405  // Integer
406  if ( tobj->IsA()->InheritsFrom( "TLeafI" ) ) {
407 
408  TLeafI* tli = dynamic_cast<TLeafI*>( tobj );
409  if ( tli ) {
410  if ( tli->IsUnsigned() ) {
411  unsigned long min = 0, max = 0;
412  if ( hasRange ) {
413  min = tli->GetMinimum();
414  max = tli->GetMaximum();
415  }
416 
417  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup );
418  } else {
419  long min = 0, max = 0;
420  if ( hasRange ) {
421  min = tli->GetMinimum();
422  max = tli->GetMaximum();
423  }
424 
425  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup );
426  }
427  } else {
428  log << MSG::ERROR << "cannot dynamic cast to TLeafI" << endmsg;
429  }
430 
431  // Float
432  } else if ( tobj->IsA()->InheritsFrom( "TLeafF" ) ) {
433  float min = 0., max = 0.;
434 
435  TLeafF* tlf = dynamic_cast<TLeafF*>( tobj );
436  if ( tlf ) {
437  if ( hasRange ) {
438  min = float( tlf->GetMinimum() );
439  max = float( tlf->GetMaximum() );
440  }
441  } else {
442  log << MSG::ERROR << "cannot dynamic cast to TLeafF" << endmsg;
443  }
444 
445  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup );
446 
447  // Double
448  } else if ( tobj->IsA()->InheritsFrom( "TLeafD" ) ) {
449  double min = 0., max = 0.;
450 
451  TLeafD* tld = dynamic_cast<TLeafD*>( tobj );
452  if ( tld ) {
453  if ( hasRange ) {
454  min = tld->GetMinimum();
455  max = tld->GetMaximum();
456  }
457  } else {
458  log << MSG::ERROR << "cannot dynamic cast to TLeafD" << endmsg;
459  }
460 
461  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup );
462 
463  } else {
464  log << MSG::ERROR << "Uknown data type" << endmsg;
465  }
466 
467  if ( item ) {
468  ntup->add( item ).ignore();
469  } else {
470  log << MSG::ERROR << "Unable to create ntuple item \"" << itemName << "\"" << endmsg;
471  }
472 
473  } // end litr
474  } // end bitr
475 
476  log << MSG::DEBUG << "Total buffer size of NTuple: " << totsize << " Bytes." << endmsg;
477 
478  char* buf = ntup->setBuffer( new char[totsize] );
479  char* bufpos = buf;
480 
481  int ts = 0;
482  for ( const auto& iitr : itemList ) {
483  TLeaf* leaf = iitr.first;
484  int isize = iitr.second;
485 
486  log << MSG::VERBOSE << "setting TBranch " << leaf->GetBranch()->GetName() << " buffer at " << (void*)bufpos
487  << endmsg;
488 
489  leaf->GetBranch()->SetAddress( (void*)bufpos );
490 
491  // //testing
492  // if (leaf->IsA()->InheritsFrom("TLeafI")) {
493  // for (int ievt=0; ievt<5; ievt++) {
494  // leaf->GetBranch()->GetEvent(ievt);
495  // int *idat = (int*)bufpos;
496  // log << MSG::WARNING << leaf->GetName() << ": " << ievt << " "
497  // << *idat << endmsg;
498 
499  // }
500  // }
501 
502  ts += isize;
503 
504  bufpos += isize;
505  }
506 
507  if ( totsize != ts ) { log << MSG::ERROR << "buffer size mismatch: " << ts << " " << totsize << endmsg; }
508 
509  refpObject = ntup;
510 
511  return StatusCode::SUCCESS;
512 }
513 
514 // Instantiation of a static factory class used by clients to create
515 // instances of this service
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:25
NTuple::_Data::range
virtual const ItemRange & range() const =0
Access the range if specified.
RCWNTupleCnv.h
std::string
STL class.
details::size
constexpr auto size(const T &, Args &&...) noexcept
Definition: AnyDataWrapper.h:22
Gaudi.Configuration.log
log
Definition: Configuration.py:28
RootHistCnv::createNTupleItem
INTupleItem * createNTupleItem(std::string itemName, std::string blockName, std::string indexName, int indexRange, int arraySize, TYP min, TYP max, INTuple *ntup)
Add an item of a given type to the N tuple.
Definition: RNTupleCnv.cpp:271
MSG::INFO
@ INFO
Definition: IMessageSvc.h:25
std::vector< std::string >
std::string::find
T find(T... args)
DECLARE_CONVERTER
#define DECLARE_CONVERTER(x)
Definition: Converter.h:160
max
EventIDBase max(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:225
compareRootHistos.ts
tuple ts
Definition: compareRootHistos.py:492
DataTypeInfo::USHORT
@ USHORT
Definition: DataTypeInfo.h:36
INTuple::buffer
virtual const char * buffer() const =0
Access data buffer (CONST)
DataTypeInfo::ULONG
@ ULONG
Definition: DataTypeInfo.h:38
RootHistCnv::RCWNTupleCnv::writeData
StatusCode writeData(TTree *rtree, INTuple *pObject) override
Write N tuple data.
Definition: RCWNTupleCnv.cpp:253
std::vector::push_back
T push_back(T... args)
INTuple::setBuffer
virtual char * setBuffer(char *buff)=0
Attach data buffer.
DataTypeInfo::LONG
@ LONG
Definition: DataTypeInfo.h:42
NTuple::_Data
Abstract class describing basic data in an Ntuple.
Definition: NTuple.h:48
DataTypeInfo::DOUBLE
@ DOUBLE
Definition: DataTypeInfo.h:45
INTuple::items
virtual ItemContainer & items()=0
Access item container.
StatusCode
Definition: StatusCode.h:65
DataTypeInfo::SHORT
@ SHORT
Definition: DataTypeInfo.h:40
std::cerr
CLHEP::begin
double * begin(CLHEP::HepVector &v)
Definition: TupleAlg.cpp:45
RootHistCnv::parseName
bool parseName(const std::string &full, std::string &blk, std::string &var)
Definition: RNTupleCnv.cpp:246
RootHistCnv::RCWNTupleCnv
Definition: RCWNTupleCnv.h:30
std::string::c_str
T c_str(T... args)
std::to_string
T to_string(T... args)
NTuple.h
GaudiPython.Bindings.nullptr
nullptr
Definition: Bindings.py:93
INTuple
Definition: INTuple.h:91
std::runtime_error
STL class.
std::accumulate
T accumulate(T... args)
INTuple::add
virtual StatusCode add(INTupleItem *item)=0
Add an item row to the N tuple.
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
min
EventIDBase min(const EventIDBase &lhs, const EventIDBase &rhs)
Definition: EventIDBase.h:212
INTupleItem
Definition: INTuple.h:37
MsgStream
Definition: MsgStream.h:34
IOTest.end
def end
Definition: IOTest.py:128
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
DataTypeInfo::FLOAT
@ FLOAT
Definition: DataTypeInfo.h:44
gaudirun.dest
dest
Definition: gaudirun.py:224
std::string::substr
T substr(T... args)
std::vector::emplace_back
T emplace_back(T... args)
DataTypeInfo::UCHAR
@ UCHAR
Definition: DataTypeInfo.h:35
DataTypeInfo::UINT
@ UINT
Definition: DataTypeInfo.h:37
MSG::VERBOSE
@ VERBOSE
Definition: IMessageSvc.h:25
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
std::endl
T endl(T... args)
DataTypeInfo::BOOL
@ BOOL
Definition: DataTypeInfo.h:43
RootHistCnv::RCWNTupleCnv::readData
StatusCode readData(TTree *rtree, INTuple *pObject, long ievt) override
Read N tuple data.
Definition: RCWNTupleCnv.cpp:268
NTuple::Tuple
Abstract base class which allows the user to interact with the actual N tuple implementation.
Definition: NTuple.h:387
std::vector::cbegin
T cbegin(T... args)
MSG::ERROR
@ ERROR
Definition: IMessageSvc.h:25
INTuple::title
virtual const std::string & title() const =0
Object title.
DataTypeInfo::ULONGLONG
@ ULONGLONG
Definition: DataTypeInfo.h:55
std::memcpy
T memcpy(T... args)
DataTypeInfo::LONGLONG
@ LONGLONG
Definition: DataTypeInfo.h:54
std::vector::cend
T cend(T... args)
AsyncIncidents.msgSvc
msgSvc
Definition: AsyncIncidents.py:34
Converter::msgSvc
SmartIF< IMessageSvc > & msgSvc() const
Retrieve pointer to message service.
Definition: Converter.cpp:105
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
RootHistCnv::RNTupleCnv::rootVarType
virtual std::string rootVarType(int)
Return ROOT type info:
Definition: RNTupleCnv.cpp:210
RootHistCnv::RCWNTupleCnv::load
StatusCode load(TTree *tree, INTuple *&refpObject) override
Create the transient representation of an object.
Definition: RCWNTupleCnv.cpp:292
RootHistCnv::RCWNTupleCnv::book
StatusCode book(const std::string &desc, INTuple *pObject, TTree *&tree) override
Book the N tuple.
Definition: RCWNTupleCnv.cpp:137
std::fill_n
T fill_n(T... args)
DataTypeInfo::INT
@ INT
Definition: DataTypeInfo.h:41
INTupleSvc.h
DataTypeInfo::CHAR
@ CHAR
Definition: DataTypeInfo.h:39
MsgStream.h
GaudiPython.Pythonizations.items
items
Definition: Pythonizations.py:546