24 for (map<string,double>::iterator mapItr = m_doubleMap.begin();
25 mapItr != m_doubleMap.end(); mapItr++){
26 m_ntupleDoubleMap[mapItr->first] = mapItr->second;
29 for (map<string,long>::iterator mapItr = m_longMap.begin();
30 mapItr != m_longMap.end(); mapItr++){
31 m_ntupleLongMap[mapItr->first] = mapItr->second;
34 for (map<string,double*>::iterator mapItr = m_arrayMap.begin();
35 mapItr != m_arrayMap.end(); mapItr++){
36 for(
int i=0; i< 100; i++) {
37 m_ntupleArrayMap[mapItr->first][i] = *(mapItr->second + i);
41 for (map<string,long*>::iterator mapItr = m_arrayLongMap.begin();
42 mapItr != m_arrayLongMap.end(); mapItr++){
43 for(
int i=0; i< 100; i++) {
44 m_ntupleArrayLongMap[mapItr->first][i] = *(mapItr->second + i);
48 for (map<string,int*>::iterator mapItr = m_arrayIntMap.begin();
49 mapItr != m_arrayIntMap.end(); mapItr++){
50 for(
int i=0; i< 100; i++) {
51 m_ntupleArrayIntMap[mapItr->first][i] = *(mapItr->second + i);
57 for (map<string,double*>::iterator mapItr = m_arrayMap.begin();
58 mapItr != m_arrayMap.end(); mapItr++){
59 delete mapItr->second;
61 for (map<string,long*>::iterator mapItr = m_arrayLongMap.begin();
62 mapItr != m_arrayLongMap.end(); mapItr++){
63 delete mapItr->second;
65 for (map<string,int*>::iterator mapItr = m_arrayIntMap.begin();
66 mapItr != m_arrayIntMap.end(); mapItr++){
67 delete mapItr->second;
69 m_bookingStage =
false;
101 if (m_bookingStage && !containsEntry(index_name)){
102 m_Tree->addItem(index_name, m_ntupleLongMap[index_name], 0, 100);
105 m_longMap[index_name]=size;
107 if (m_bookingStage && !containsEntry(name)){
108 m_Tree->addIndexedItem(name, m_ntupleLongMap[index_name], m_ntupleArrayMap[name]);
111 if (!m_bookingStage && !containsEntry(name)){
112 cout <<
"NTUPLEHELPER: Variable " << name <<
" has not been booked." << endl;
116 if (!m_bookingStage && !containsEntry(index_name)){
117 cout <<
"NTUPLEHELPER: Variable " << index_name <<
" has not been booked." << endl;
121 m_arrayMap[name]=
new double[100];
122 for(
int i=0; i<size; i++){
124 m_arrayMap[name][i] = *(value+i);
130 if (m_bookingStage && !containsEntry(index_name)){
131 m_Tree->addItem(index_name, m_ntupleLongMap[index_name], 0, 100);
134 m_longMap[index_name]=size;
136 if (m_bookingStage && !containsEntry(name)){
137 m_Tree->addIndexedItem(name, m_ntupleLongMap[index_name], m_ntupleArrayLongMap[name]);
140 if (!m_bookingStage && !containsEntry(name)){
141 cout <<
"NTUPLEHELPER: Variable " << name <<
" has not been booked." << endl;
145 if (!m_bookingStage && !containsEntry(index_name)){
146 cout <<
"NTUPLEHELPER: Variable " << index_name <<
" has not been booked." << endl;
150 m_arrayLongMap[name]=
new long[100];
151 for(
int i=0; i<size; i++){
153 m_arrayLongMap[name][i] = *(value+i);
159 if (m_bookingStage && !containsEntry(index_name)){
160 m_Tree->addItem(index_name, m_ntupleLongMap[index_name], 0, 100);
163 m_longMap[index_name]=size;
165 if (m_bookingStage && !containsEntry(name)){
166 m_Tree->addIndexedItem(name, m_ntupleLongMap[index_name], m_ntupleArrayIntMap[name]);
169 if (!m_bookingStage && !containsEntry(name)){
170 cout <<
"NTUPLEHELPER: Variable " << name <<
" has not been booked." << endl;
174 if (!m_bookingStage && !containsEntry(index_name)){
175 cout <<
"NTUPLEHELPER: Variable " << index_name <<
" has not been booked." << endl;
179 m_arrayIntMap[name]=
new int[100];
180 for(
int i=0; i<size; i++){
182 m_arrayIntMap[name][i] = *(value+i);