28 std::cout << std::string(
n,
' ');
111 register_factory (
"alternate_regions", std::make_unique<AltRegionsFactory>());
131 std::cout <<
"IdDictParser::parse1>" << std::endl;
135 std::cout <<
"IdDictParser::parse2>" << std::endl;
139 std::cout <<
"IdDictParser::parse3>" << std::endl;
171 std::cout <<
"IdDictMgrFactoryFactory::idd_start>" << std::endl;
181 std::cout <<
"IdDictMgrFactoryFactory::idd_end>" << std::endl;
189 std::cout <<
"DictionaryFactory::idd_start>" << std::endl;
202 std::cout <<
"DictionaryFactory::idd_end> d=" <<
parser.m_dictionary << std::endl;
205 if (
parser.m_dictionary != 0){
215 std::cout <<
"FieldFactory::idd_start>" << std::endl;
226 std::cout <<
"FieldFactory::idd_end>" << std::endl;
229 if (
parser.m_field != 0) {
231 else delete parser.m_field;
240 std::cout <<
"LabelFactory::idd_start>" << std::endl;
246 label->m_valued =
true;
249 label->m_valued =
false;
260 std::cout <<
"LabelFactory::idd_end>" << std::endl;
268 std::cout <<
"AltRegionsFactory::idd_start>" << std::endl;
273 std::cout <<
"AltRegionsFactory::idd_start> previous=" <<
parser.m_altregions
274 <<
" new=" << altregions
277 parser.m_altregions = altregions;
284 std::cout <<
"AltRegionsFactory::idd_end>" << std::endl;
286 if (
parser.m_altregions != 0) {
289 if (region_it ==
parser.m_altregions->m_regions.end()){
290 std::cout <<
"AltRegionsFactory::idd_end could not find default region. Keys in map " << std::endl;
295 std::cout <<
" i " <<
i <<
" key " << (*first).first;
297 std::cout << std::endl;
299 parser.m_altregions->m_selected_region = (*region_it).second;
302 if (
parser.m_dictionary != 0)
parser.m_dictionary->add_dictentry (
parser.m_altregions);
303 else delete parser.m_altregions;
313 std::cout <<
"RegionFactory::idd_start>" << std::endl;
339 std::string::size_type
pos = 0;
341 std::string::size_type
next;
343 if (
next == std::string::npos)
break;
348 parser.m_region->m_prev_samp_names.push_back (
name);
349 if (
next == std::string::npos) {
359 std::string::size_type
pos = 0;
361 std::string::size_type
next;
364 if (
next == std::string::npos)
break;
370 parser.m_region->m_next_samp_names.push_back (
name);
372 if (
next == std::string::npos) {
382 std::string::size_type
pos = 0;
384 std::string::size_type prev;
385 prev =
names.find_first_not_of (
" ",
pos);
386 if (prev == std::string::npos)
break;
388 prev =
names.find_first_of (
" ",
pos);
391 parser.m_region->m_prev_subdet_names.push_back (
name);
392 if (prev == std::string::npos) {
402 std::string::size_type
pos = 0;
404 std::string::size_type
next;
406 if (
next == std::string::npos)
break;
411 parser.m_region->m_next_subdet_names.push_back (
name);
412 if (
next == std::string::npos) {
442 std::cout <<
"RegionFactory::idd_start> name, group, tag, next eta, prev/next samp, prev/next subdet "
443 <<
parser.m_region->m_name <<
" "
444 <<
parser.m_region->m_group <<
" "
445 <<
parser.m_region->m_tag <<
" "
446 <<
parser.m_region->m_next_abs_eta <<
" ";
447 for (
unsigned int i = 0;
i <
parser.m_region->m_prev_samp_names.size(); ++
i) {
448 std::cout <<
parser.m_region->m_prev_samp_names[
i] <<
" ";
450 for (
unsigned int i = 0;
i <
parser.m_region->m_next_samp_names.size(); ++
i) {
451 std::cout <<
parser.m_region->m_next_samp_names[
i] <<
" ";
453 for (
unsigned int i = 0;
i <
parser.m_region->m_prev_subdet_names.size(); ++
i) {
454 std::cout <<
parser.m_region->m_prev_subdet_names[
i] <<
" ";
456 for (
unsigned int i = 0;
i <
parser.m_region->m_next_subdet_names.size(); ++
i) {
457 std::cout <<
parser.m_region->m_next_subdet_names[
i] <<
" ";
459 std::cout <<
parser.m_region->m_eta0 <<
" "
460 <<
parser.m_region->m_deta <<
" "
461 <<
parser.m_region->m_phi0 <<
" "
462 <<
parser.m_region->m_dphi <<
" "
471 std::cout <<
"RegionFactory::idd_end>" << std::endl;
473 if (
parser.m_region != 0){
474 if (
parser.m_altregions != 0) {
476 if (
parser.m_dictionary != 0)
parser.m_dictionary->m_all_regions.push_back (
parser.m_region);
479 if (
parser.m_region->m_entries.size() == 0) {
480 parser.m_region->m_is_empty =
true;
482 }
else if (
parser.m_dictionary != 0) {
484 parser.m_dictionary->m_all_regions.push_back (
parser.m_region);
487 if (
parser.m_region->m_entries.size() == 0) {
488 parser.m_region->m_is_empty =
true;
501 std::cout <<
"SubRegionFactory::idd_start>" << std::endl;
511 std::cout <<
"SubRegionFactory::idd_end>" << std::endl;
513 if (
parser.m_subregion != 0) {
514 if (
parser.m_dictionary != 0)
parser.m_dictionary->add_subregion (
parser.m_subregion);
515 else delete parser.m_subregion;
525 std::cout <<
"RegionEntryFactory::idd_start>" << std::endl;
533 std::cout <<
"RegionEntryFactory::idd_end>" << std::endl;
535 if (
parser.m_regionentry != 0){
537 else if (
parser.m_subregion != 0)
parser.m_subregion->add_entry (
parser.m_regionentry);
538 else delete parser.m_regionentry;
547 std::cout <<
"RangeFactory::idd_start>" << std::endl;
555 range->m_prev_value = 0;
556 range->m_next_value = 0;
563 std::string::size_type
pos = 0;
565 std::string::size_type
next;
567 if (
next == std::string::npos)
break;
573 if (
next == std::string::npos) {
582 if (hasMin and hasMax) {
612 std::cout <<
"ReferenceFactory::idd_start>" << std::endl;
623 std::cout <<
"DictionaryRefFactory::idd_start>" << std::endl;
626 parser.m_regionentry = dictionaryref;