Changeset 3645 in Sophya for trunk/AddOn/TAcq/tmtacq.cc
- Timestamp:
- Jun 1, 2009, 10:24:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/tmtacq.cc
r3644 r3645 410 410 else { 411 411 dmap = new DMAMgr(card,patternSZ,dmaSize,activate_pattern); 412 if (! dmap->StatusFibre() ) { 413 cout << " tmtacq[3] - fibre non accrochee -> exit " << endl; 414 throw PCIEWException(" Fibre non accrochee "); 412 if (!activate_pattern) { 413 if (! dmap->StatusFibre() ) { 414 cout << " tmtacq[3] - fibre non accrochee -> exit " << endl; 415 throw PCIEWException(" Fibre non accrochee "); 416 } 417 else cout << " tmtacq[3] - fibre accrochee OK " << endl; 415 418 } 416 else cout << " tmtacq[3] - fibre accrochee OK " << endl;417 419 pciwp = new PCIEWrapper(*dmap); 418 420 } … … 509 511 else { 510 512 dmap1 = new DMAMgr(cardlist[0],patternSZ,dmaSize,activate_pattern); 511 if (! dmap1->StatusFibre() ) { 512 cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[0] << " -> exit " << endl; 513 throw PCIEWException(" Fibre non accrochee 1"); 513 if (!activate_pattern) { 514 if (! dmap1->StatusFibre() ) { 515 cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[0] << " -> exit " << endl; 516 throw PCIEWException(" Fibre non accrochee 1"); 517 } 518 else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[0] << endl; 519 520 dmap2 = new DMAMgr(cardlist[1],patternSZ,dmaSize,activate_pattern); 521 if (! dmap2->StatusFibre() ) { 522 cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[1] << " -> exit " << endl; 523 throw PCIEWException(" Fibre non accrochee 2"); 524 } 525 else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[1] << endl; 514 526 } 515 else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[0] << endl;516 517 dmap2 = new DMAMgr(cardlist[1],patternSZ,dmaSize,activate_pattern);518 if (! dmap2->StatusFibre() ) {519 cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[1] << " -> exit " << endl;520 throw PCIEWException(" Fibre non accrochee 2");521 }522 else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[1] << endl;523 527 pciwp1 = new PCIEWrapper(*dmap1); 524 528 pciwp2 = new PCIEWrapper(*dmap2);
Note:
See TracChangeset
for help on using the changeset viewer.