6 #include "CoralBase/AttributeList.h"
22 for(
size_t i=0;
i<indexes.size();
i++){
25 if( ts == 0 || indexes[
i] > (
int)(ts-1) ){
26 for(
size_t j=0;
j<indexes[
i]-ts+1;
j++){
34 std::stringstream mess;
35 mess <<
"Slot for index["<<
i<<
"] is empty.";
73 for( ;i<indexes.size();i++){
75 std::stringstream mess;
76 mess <<
"Index["<<i<<
"] is out of bound.";
82 std::stringstream mess;
83 mess <<
"Slot for index["<<i<<
"] is empty.";
91 "MultiIndexDataTrie::lookupAndClear" );
100 return m_children.size();
104 for(std::vector<MultiIndexDataTrie*>::iterator iT = m_children.begin();
105 iT != m_children.end(); iT++){
113 if( depth > indexes.size() ) depth = indexes.size();
115 for(
size_t i=0;
i<depth;
i++){
116 if( indexes[
i]+1 > (
int)(trie->
m_children.size())){
118 if(
i+2>=indexes.size())
return 0;
120 std::stringstream mess;
121 mess <<
"1 Index["<<
i<<
"] is out of bound.";
126 std::stringstream mess;
127 mess <<
"Slot for index["<<
i<<
"] is empty.";
136 for(std::vector<MultiIndexDataTrie*>::const_iterator iT = m_children.begin();
137 iT != m_children.end(); iT++){
139 if(*iT) sz += (*iT)->totalSize();
size_t push(const std::vector< int > &indexes, Record &data)
void lookupAndClear(const std::vector< int > &indexes, Record &rec)
std::vector< MultiIndexDataTrie * > m_children
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
size_t branchSize(const std::vector< int > &indexes, size_t depth=0) const
virtual ~MultiIndexDataTrie()
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
std::vector< std::vector< double > > tmp
char data[epos_bytes_allocation]