The Gaudi Framework  v38r0 (2143aa4c)
RCWNTupleCnv.cpp
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2023 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 <type_traits>
23 #include <utility>
24 #include <vector>
25 
26 #include "RCWNTupleCnv.h"
27 
28 #include "TLeafD.h"
29 #include "TLeafF.h"
30 #include "TLeafI.h"
31 #include "TTree.h"
32 
33 namespace {
34  template <typename T>
35  size_t saveItem( char* target, const NTuple::_Data<T>& src ) {
36  static_assert( std::is_trivially_copyable_v<T>, "T must be trivally copyable" );
37  std::memcpy( target, src.buffer(), sizeof( T ) * src.length() );
38  return sizeof( T ) * src.length();
39  }
40 
41  template <typename T>
42  size_t loadItem( const char* src, NTuple::_Data<T>& target ) {
43  static_assert( std::is_trivially_copyable_v<T>, "T must be trivally copyable" );
44  std::memcpy( const_cast<void*>( target.buffer() ), src, sizeof( T ) * target.length() );
45  return sizeof( T ) * target.length();
46  }
47 
48  template <typename POD>
49  decltype( auto ) downcast_item( const INTupleItem& i ) {
50  return dynamic_cast<const NTuple::_Data<POD>&>( i );
51  }
52  template <typename POD>
53  decltype( auto ) downcast_item( INTupleItem& i ) {
54  return dynamic_cast<NTuple::_Data<POD>&>( i );
55  }
56  template <typename POD, typename T>
57  void downcast_item( T&& ) = delete;
58 
59  template <typename Item, typename F>
60  decltype( auto ) visit( Item& i, F&& f ) {
61  switch ( i.type() ) {
62  case DataTypeInfo::INT:
63  return f( downcast_item<int>( i ) );
64  case DataTypeInfo::CHAR:
65  return f( downcast_item<char>( i ) );
67  return f( downcast_item<short>( i ) );
68  case DataTypeInfo::LONG:
69  return f( downcast_item<long>( i ) );
71  return f( downcast_item<long long>( i ) );
73  return f( downcast_item<unsigned char>( i ) );
75  return f( downcast_item<unsigned short>( i ) );
76  case DataTypeInfo::UINT:
77  return f( downcast_item<unsigned int>( i ) );
79  return f( downcast_item<unsigned long>( i ) );
81  return f( downcast_item<unsigned long long>( i ) );
83  return f( downcast_item<double>( i ) );
85  return f( downcast_item<float>( i ) );
86  case DataTypeInfo::BOOL:
87  return f( downcast_item<bool>( i ) );
88  }
89  throw std::runtime_error( "RCWNTupleCnv::visit: unknown INTupleItem::type()" );
90  }
91 
92  //-----------------------------------------------------------------------------
93  template <class T>
94  void analyzeItem( std::string typ, const NTuple::_Data<T>* it, std::string& desc, std::string& block_name,
95  std::string& var_name, long& lowerRange, long& upperRange, long& size )
96  //-----------------------------------------------------------------------------
97  {
98 
99  RootHistCnv::parseName( it->name(), block_name, var_name );
100 
101  // long item_size = (sizeof(T) < 4) ? 4 : sizeof(T);
102  long item_size = sizeof( T );
103  long dimension = it->length();
104  long ndim = it->ndim() - 1;
105  desc += var_name;
106  if ( it->hasIndex() || it->length() > 1 ) { desc += '['; }
107  if ( it->hasIndex() ) {
108  std::string ind_blk, ind_var;
109  RootHistCnv::parseName( it->index(), ind_blk, ind_var );
110  if ( ind_blk != block_name ) {
111  std::cerr << "ERROR: Index for CWNT variable " << ind_var << " is in a different block: " << ind_blk
112  << std::endl;
113  }
114  desc += ind_var;
115  } else if ( it->dim( ndim ) > 1 ) {
116  desc += std::to_string( it->dim( ndim ) );
117  }
118 
119  for ( int i = ndim - 1; i >= 0; i-- ) {
120  desc += "][";
121  desc += std::to_string( it->dim( i ) );
122  }
123  if ( it->hasIndex() || it->length() > 1 ) { desc += ']'; }
124 
125  // 0 and -1 are used to mark that the range is not defined
126  lowerRange = 0;
127  upperRange = -1;
128  if constexpr ( std::is_integral_v<T> ) {
129  // An explicit range makes sense only for integral types so we check only in that case if it is defined.
130  // Note that later a range is only taken into account for int32_t.
131  if ( it->range().lower() != it->range().min() && it->range().upper() != it->range().max() ) {
132  lowerRange = it->range().lower();
133  upperRange = it->range().upper();
134  }
135  }
136 
137  desc += typ;
138  size += item_size * dimension;
139  }
140 } // namespace
141 
142 //-----------------------------------------------------------------------------
144 //-----------------------------------------------------------------------------
145 {
146  MsgStream log( msgSvc(), "RCWNTupleCnv" );
147  rtree = new TTree( desc.c_str(), nt->title().c_str() );
148  log << MSG::VERBOSE << "created tree id: " << rtree->GetName() << " title: " << nt->title() << " desc: " << desc
149  << endmsg;
150 
151  // Loop over the items
152 
153  std::string block_name, var_name;
154  long lowerRange, upperRange;
155  long size = 0;
156  long cursize, oldsize = 0;
157  std::vector<std::string> item_fullname;
158  // std::vector<long> item_size,item_size2;
159  std::vector<long> item_buf_pos, item_buf_len, item_buf_end;
160  std::vector<long> item_range_lower, item_range_upper;
162 
163  for ( const auto& i : nt->items() ) {
164  std::string item;
165 
166  visit( *i, [&]( const auto& data ) {
167  analyzeItem( this->rootVarType( data.type() ), &data, item, block_name, var_name, lowerRange, upperRange, size );
168  } );
169 
170  item_name.emplace_back( block_name, item );
171  cursize = size - oldsize;
172 
173  log << MSG::VERBOSE << "item: " << item << " type " << i->type() << " blk: " << block_name << " var: " << var_name
174  << " rng: " << lowerRange << " " << upperRange << " sz: " << size << " " << cursize
175  << " buf_pos: " << size - cursize << endmsg;
176 
177  item_fullname.push_back( var_name );
178  item_buf_pos.push_back( size - cursize );
179  item_buf_len.push_back( cursize );
180  item_buf_end.push_back( size );
181  item_range_lower.push_back( lowerRange );
182  item_range_upper.push_back( upperRange );
183 
184  oldsize = size;
185  }
186 
187  // Make a new buffer, and tell the ntuple where it is
188  char* buff = nt->setBuffer( new char[size] );
189 
190  log << MSG::VERBOSE << "Created buffer size: " << size << " at " << (void*)buff << endmsg;
191 
192  // Zero out the buffer to make ROOT happy
193  std::fill_n( buff, size, 0 );
194 
195  char* buf_pos = buff;
196 
197  auto end = item_name.cend();
198 
199  // Loop over items, creating a new branch for each one;
200  unsigned int i_item = 0;
201  for ( auto itr = item_name.cbegin(); itr != end; ++itr, ++i_item ) {
202 
203  buf_pos = buff + item_buf_pos[i_item];
204 
205  // log << MSG::WARNING << "adding TBranch " << i_item << " "
206  // << item_fullname[i_item]
207  // << " format: " << itr->second.c_str() << " at "
208  // << (void*) buf_pos << " (" << (void*) buff << "+"
209  // << (void*)item_buf_pos[i_item] << ")"
210  // << endmsg;
211 
212 #if ROOT_VERSION_CODE >= ROOT_VERSION( 5, 15, 0 )
213  auto br = new TBranch( rtree,
214 #else
215  TBranch* br = new TBranch(
216 #endif
217  item_fullname[i_item].c_str(), buf_pos, itr->second.c_str() );
218 
219  if ( itr->first != "AUTO_BLK" ) {
220  std::string title = itr->first;
221  title = itr->first + "::" + br->GetTitle();
222  br->SetTitle( title.c_str() );
223  }
224 
225  log << MSG::DEBUG << "adding TBranch " << br->GetTitle() << " at " << (void*)buf_pos << endmsg;
226 
227  // for index items with a limited range. Must be a TLeafI!
228  if ( item_range_lower[i_item] < item_range_upper[i_item] ) {
229  // log << MSG::VERBOSE << "\"" << item_fullname[i_item]
230  // << "\" is range limited " << item_range_lower[i_item] << " "
231  // << item_range_upper[i_item] << endmsg;
232  TLeafI* index = nullptr;
233  TObject* tobj = br->GetListOfLeaves()->FindObject( item_fullname[i_item].c_str() );
234  if ( tobj->IsA()->InheritsFrom( "TLeafI" ) ) {
235  index = dynamic_cast<TLeafI*>( tobj );
236 
237  if ( index ) {
238  index->SetMaximum( item_range_upper[i_item] );
239  // FIXME -- add for next version of ROOT
240  // index->SetMinimum( item_range_lower[i_item] );
241  } else {
242  log << MSG::ERROR << "Could dynamic cast to TLeafI: " << item_fullname[i_item] << endmsg;
243  }
244  }
245  }
246 
247  rtree->GetListOfBranches()->Add( br );
248  }
249 
250  log << MSG::INFO << "Booked TTree with ID: " << desc << " \"" << nt->title() << "\" in directory " << getDirectory()
251  << endmsg;
252 
253  return StatusCode::SUCCESS;
254 }
255 
256 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
257 
258 //-----------------------------------------------------------------------------
260 //-----------------------------------------------------------------------------
261 {
262  // Fill the tree;
263  const auto& items = nt->items();
264  std::accumulate( begin( items ), end( items ), nt->buffer(), []( char* dest, const INTupleItem* i ) {
265  return dest + visit( *i, [dest]( const auto& item ) { return saveItem( dest, item ); } );
266  } );
267 
268  rtree->Fill();
269  nt->reset();
270  return StatusCode::SUCCESS;
271 }
272 
273 //-----------------------------------------------------------------------------
274 StatusCode RootHistCnv::RCWNTupleCnv::readData( TTree* rtree, INTuple* ntup, long ievt )
275 //-----------------------------------------------------------------------------
276 {
277  if ( ievt >= rtree->GetEntries() ) {
278  MsgStream log( msgSvc(), "RCWNTupleCnv::readData" );
279  log << MSG::ERROR << "no more entries in tree to read. max: " << rtree->GetEntries() << " current: " << ievt
280  << endmsg;
281  return StatusCode::FAILURE;
282  }
283 
284  rtree->GetEvent( ievt );
285  ievt++;
286 
287  // copy data from ntup->buffer() to ntup->items()->buffer()
288  auto& items = ntup->items();
289  std::accumulate( begin( items ), end( items ), const_cast<const char*>( ntup->buffer() ),
290  []( const char* src, INTupleItem* i ) {
291  return src + visit( *i, [src]( auto& item ) { return loadItem( src, item ); } );
292  } );
293 
294  return StatusCode::SUCCESS;
295 }
296 
297 //-----------------------------------------------------------------------------
299 //-----------------------------------------------------------------------------
300 {
301  MsgStream log( msgSvc(), "RCWNTupleCnv::load" );
302 
303  StatusCode status;
304 
305  NTuple::Tuple* pObj = nullptr;
306 
307  std::string title = tree->GetTitle();
308  log << MSG::VERBOSE << "loading CWNT " << title << " at: " << tree << endmsg;
309 
310  status = m_ntupleSvc->create( CLID_ColumnWiseTuple, title, pObj );
311  INTuple* ntup = dynamic_cast<INTuple*>( pObj );
312  if ( !ntup ) { log << MSG::ERROR << "cannot dynamic cast to INTuple" << endmsg; }
313 
314  INTupleItem* item = nullptr;
315 
316  std::string itemName, indexName, item_type, itemTitle, blockName;
317  // long numEnt, numVar;
318  long size, totsize = 0;
320 
321  // numEnt = (int)tree->GetEntries();
322  // numVar = tree->GetNbranches();
323 
324  // loop over all branches (==leaves)
325  TObjArray* lbr = tree->GetListOfBranches();
326  TIter bitr( lbr );
327  while ( TObject* tobjb = bitr() ) {
328 
329  TBranch* br = (TBranch*)tobjb;
330  itemTitle = br->GetTitle();
331 
332  int ipos = itemTitle.find( "::" );
333  if ( ipos >= 0 ) {
334  blockName = itemTitle.substr( 0, ipos );
335  } else {
336  blockName = "";
337  }
338 
339  TObjArray* lf = br->GetListOfLeaves();
340 
341  TIter litr( lf );
342  while ( TObject* tobj = litr() ) {
343 
344  bool hasRange = false;
345  int indexRange = 0;
346  int itemSize;
347  item = nullptr;
348 
349  TLeaf* tl = dynamic_cast<TLeaf*>( tobj );
350  if ( !tl ) {
351  log << MSG::ERROR << "cannot dynamic cast to TLeaf" << endmsg;
352  return StatusCode::FAILURE;
353  }
354  itemName = tl->GetName();
355 
356  if ( blockName != "" ) {
357  log << MSG::DEBUG << "loading NTuple item " << blockName << "/" << itemName;
358  } else {
359  log << MSG::DEBUG << "loading NTuple item " << itemName;
360  }
361 
362  int arraySize{ 0 };
363  TLeaf* indexLeaf = tl->GetLeafCounter( arraySize );
364 
365  if ( arraySize == 0 ) { log << MSG::ERROR << "TLeaf counter size = 0. This should not happen!" << endmsg; }
366 
367  if ( indexLeaf ) {
368  // index Arrays and Matrices
369 
370  indexName = indexLeaf->GetName();
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  size = itemSize;
396  totsize += size;
397 
398  hasRange = tl->IsRange();
399 
400  itemList.emplace_back( tl, itemSize );
401 
402  // Integer
403  if ( tobj->IsA()->InheritsFrom( "TLeafI" ) ) {
404 
405  TLeafI* tli = dynamic_cast<TLeafI*>( tobj );
406  if ( tli ) {
407  if ( tli->IsUnsigned() ) {
408  unsigned long min = 0, max = 0;
409  if ( hasRange ) {
410  min = tli->GetMinimum();
411  max = tli->GetMaximum();
412  }
413 
414  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup, hasRange );
415  } else {
416  long min = 0, max = 0;
417  if ( hasRange ) {
418  min = tli->GetMinimum();
419  max = tli->GetMaximum();
420  }
421 
422  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup, hasRange );
423  }
424  } else {
425  log << MSG::ERROR << "cannot dynamic cast to TLeafI" << endmsg;
426  }
427 
428  // Float
429  } else if ( tobj->IsA()->InheritsFrom( "TLeafF" ) ) {
430  float min = 0., max = 0.;
431 
432  TLeafF* tlf = dynamic_cast<TLeafF*>( tobj );
433  if ( tlf ) {
434  if ( hasRange ) {
435  min = float( tlf->GetMinimum() );
436  max = float( tlf->GetMaximum() );
437  }
438  } else {
439  log << MSG::ERROR << "cannot dynamic cast to TLeafF" << endmsg;
440  }
441 
442  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup, hasRange );
443 
444  // Double
445  } else if ( tobj->IsA()->InheritsFrom( "TLeafD" ) ) {
446  double min = 0., max = 0.;
447 
448  TLeafD* tld = dynamic_cast<TLeafD*>( tobj );
449  if ( tld ) {
450  if ( hasRange ) {
451  min = tld->GetMinimum();
452  max = tld->GetMaximum();
453  }
454  } else {
455  log << MSG::ERROR << "cannot dynamic cast to TLeafD" << endmsg;
456  }
457 
458  item = createNTupleItem( itemName, blockName, indexName, indexRange, arraySize, min, max, ntup, hasRange );
459 
460  } else {
461  log << MSG::ERROR << "Uknown data type" << endmsg;
462  }
463 
464  if ( item ) {
465  ntup->add( item ).ignore();
466  } else {
467  log << MSG::ERROR << "Unable to create ntuple item \"" << itemName << "\"" << endmsg;
468  }
469 
470  } // end litr
471  } // end bitr
472 
473  log << MSG::DEBUG << "Total buffer size of NTuple: " << totsize << " Bytes." << endmsg;
474 
475  char* buf = ntup->setBuffer( new char[totsize] );
476  char* bufpos = buf;
477 
478  int ts = 0;
479  for ( const auto& iitr : itemList ) {
480  TLeaf* leaf = iitr.first;
481  int isize = iitr.second;
482 
483  log << MSG::VERBOSE << "setting TBranch " << leaf->GetBranch()->GetName() << " buffer at " << (void*)bufpos
484  << endmsg;
485 
486  leaf->GetBranch()->SetAddress( (void*)bufpos );
487 
488  // //testing
489  // if (leaf->IsA()->InheritsFrom("TLeafI")) {
490  // for (int ievt=0; ievt<5; ievt++) {
491  // leaf->GetBranch()->GetEvent(ievt);
492  // int *idat = (int*)bufpos;
493  // log << MSG::WARNING << leaf->GetName() << ": " << ievt << " "
494  // << *idat << endmsg;
495 
496  // }
497  // }
498 
499  ts += isize;
500 
501  bufpos += isize;
502  }
503 
504  if ( totsize != ts ) { log << MSG::ERROR << "buffer size mismatch: " << ts << " " << totsize << endmsg; }
505 
506  refpObject = ntup;
507 
508  return StatusCode::SUCCESS;
509 }
510 
511 // Instantiation of a static factory class used by clients to create
512 // 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:29
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
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:259
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
compareOutputFiles.target
target
Definition: compareOutputFiles.py:488
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:240
compareRootHistos.ts
ts
Definition: compareRootHistos.py:488
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
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
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:274
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
GaudiPartProp.decorators.Item
Item
Definition: decorators.py:305
RootHistCnv::createNTupleItem
INTupleItem * createNTupleItem(std::string itemName, std::string blockName, std::string indexName, int indexRange, int arraySize, TYP min, TYP max, INTuple *ntup, bool hasRange)
Add an item of a given type to the N tuple.
Definition: RNTupleCnv.cpp:265
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
IOTest.end
end
Definition: IOTest.py:123
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:204
RootHistCnv::RCWNTupleCnv::load
StatusCode load(TTree *tree, INTuple *&refpObject) override
Create the transient representation of an object.
Definition: RCWNTupleCnv.cpp:298
RootHistCnv::RCWNTupleCnv::book
StatusCode book(const std::string &desc, INTuple *pObject, TTree *&tree) override
Book the N tuple.
Definition: RCWNTupleCnv.cpp:143
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
Gaudi::ParticleProperties::index
size_t index(const Gaudi::ParticleProperty *property, const Gaudi::Interfaces::IParticlePropertySvc *service)
helper utility for mapping of Gaudi::ParticleProperty object into non-negative integral sequential id...
Definition: IParticlePropertySvc.cpp:39