FitterMode.cpp

00001 #include "FitterMode.h"
00002 
00003 #include <iostream>
00004 
00005 using namespace std;
00006 
00007 SctFitter::FitterMode::FitterMode() throw() {
00008   this->fitDefault();
00009 }
00010 
00011 void SctFitter::FitterMode::fitChannels(bool b) throw() {
00012   strip=b;
00013 }
00014 void SctFitter::FitterMode::fitLinks(bool b) throw() {
00015   link=b;
00016 }
00017 void SctFitter::FitterMode::fitChips(bool b) throw() {
00018   chip=b;
00019 }
00020 void SctFitter::FitterMode::doSummary(bool b) throw() {
00021   summary=b;
00022 }
00023 void SctFitter::FitterMode::fitAll() throw() {
00024   fitChannels(); fitChips(); fitLinks(); doSummary();
00025 }
00026 bool SctFitter::FitterMode::fittingChannels() const throw() {
00027   return strip;
00028 }
00029 bool SctFitter::FitterMode::fittingLinks() const throw() {
00030   return link;
00031 }
00032 bool SctFitter::FitterMode::fittingChips() const throw() {
00033   return chip;
00034 }
00035 bool SctFitter::FitterMode::doingSummary() const throw() {
00036   return summary;
00037 }
00038 void SctFitter::FitterMode::fitDefault() throw() {
00039   fitChips(true);  fitChannels(false);  fitLinks(false); doSummary(true);
00040 }
00041 void SctFitter::FitterMode::fitNone() throw() {
00042   fitChips(false); fitChannels(false); fitLinks(false); doSummary(false);
00043 }
00044 
00045 /*void SctFitter::FitterMode::setFrom(ScanType s) throw() {
00046   if (s==ScanType::THRESHOLDSCAN) { fitNone(); fitChips(); fitChannels() ; doSummary(false); return; }
00047   if (s==ScanType::STROBEDELAYSCAN) { fitNone() ; fitChips() ; doSummary(false) ; return; }
00048 }*/
00049 
00050 ostream& operator << (ostream& os, SctFitter::FitterMode& fm) throw() {
00051   os << "Links: " << fm.fittingLinks() 
00052      << ", Chips: " << fm.fittingChips()
00053      << ", Channels: " << fm.fittingChannels()
00054      << ", Summary: "<< fm.doingSummary();
00055   return os;
00056 }

Generated on Mon Feb 6 14:01:20 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6