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.";
90 "MultiIndexDataTrie::lookupAndClear" );
98 return m_children.size();
102 for(std::vector<MultiIndexDataTrie*>::iterator iT = m_children.begin();
103 iT != m_children.end(); iT++){
111 if( depth > indexes.size() ) depth = indexes.size();
113 for(
size_t i=0;
i<depth;
i++){
114 if( indexes[
i]+1 > (
int)(trie->
m_children.size())){
116 if(
i+2>=indexes.size())
return 0;
118 std::stringstream mess;
119 mess <<
"1 Index["<<
i<<
"] is out of bound.";
124 std::stringstream mess;
125 mess <<
"Slot for index["<<
i<<
"] is empty.";
134 for(std::vector<MultiIndexDataTrie*>::const_iterator iT = m_children.begin();
135 iT != m_children.end(); iT++){
137 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()
std::vector< std::vector< double > > tmp
char data[epos_bytes_allocation]
void throwException(const std::string &message, const std::string &methodName)