00001 #include <Stiostream.h>
00002 #include "StSsdUtil/StSsdClusterControl.h"
00003 #include "StMessMgr.h"
00004 #include "tables/St_clusterControl_Table.h"
00008 StSsdClusterControl::StSsdClusterControl()
00009 {
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 }
00024 StSsdClusterControl::StSsdClusterControl(St_clusterControl *clusterCtrl)
00025 {
00026
00027 clusterControl_st *cluster = clusterCtrl->GetTable();
00028 if (!cluster) gMessMgr->Error() << "No clusterControl_st table available" << endm;
00029 else
00030 {
00031 mHighCut = cluster[0].highCut;
00032 mTestTolerance = cluster[0].testTolerance;
00033 mClusterTreat = cluster[0].clusterTreat;
00034 mAdcTolerance = cluster[0].adcTolerance;
00035 mMatchMean = cluster[0].matchMean;
00036 mMatchSigma = cluster[0].matchSigma;
00037 }
00038 }
00042 StSsdClusterControl::~StSsdClusterControl()
00043 {
00044 }
00048 void StSsdClusterControl::printParameters(){
00049 cout<<"**** **** SSD Cluster Control Parameters **** ****"<<endl;
00050 cout<<"**** HighCut = "<<this->getHighCut()<<" ****"<<endl;
00051 cout<<"**** TestTolerance = "<<this->getTestTolerance()<<" ****"<<endl;
00052 cout<<"**** ClusterTreat = "<<this->getClusterTreat()<<" ****"<<endl;
00053 cout<<"**** AdcTolerance = "<<this->getAdcTolerance()<<" ****"<<endl;
00054 cout<<"**** MatchMean = "<<this->getMatchMean()<<" ****"<<endl;
00055 cout<<"**** MatchSigma = "<<this->getMatchSigma()<<" ****"<<endl;
00056 cout<<"**************************************"<<endl;
00057 }