Changeset 12437
- Timestamp:
- 11/07/11 00:04:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fadctrl.cc
r12377 r12437 511 511 } 512 512 513 bool IsConfigured() const 514 { 515 bool identical = true; 513 bool HasCorrectRoi() const 514 { 516 515 for (int i=0; i<FAD::kNumChannels; i++) 517 516 if (fTargetRoi[i]!=fChannelHeader[i].fRegionOfInterest) 518 { 519 identical = false; 520 break; 521 } 522 523 return fEventHeader==fBufEventHeader && identical; 517 return false; 518 519 return true; 520 } 521 522 bool HasCorrectHeader() const 523 { 524 return fEventHeader==fBufEventHeader; 525 } 526 527 bool IsConfigured() const 528 { 529 return HasCorrectRoi() && HasCorrectHeader(); 530 } 531 532 void PrintCheckHeader() 533 { 534 Out() << "================================================================================" << endl; 535 fEventHeader.print(Out()); 536 Out() << "--------------------------------------------------------------------------------" << endl; 537 fBufEventHeader.print(Out()); 538 Out() << "================================================================================" << endl; 524 539 } 525 540
Note:
See TracChangeset
for help on using the changeset viewer.