StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdClusterControl.cxx
1 #include <Stiostream.h>
2 #include "StSsdUtil/StSsdClusterControl.h"
3 #include "StMessMgr.h"
4 #include "tables/St_clusterControl_Table.h"
9 {
10  // Former scf_ctrl table
11 // mHighCut = 5.0;
12 // mTestTolerance = 0.2;
13 
14 
15 // // Former scm_ctrl table
16 // mClusterTreat = 13;
17 // mAdcTolerance = 0.2;
18 // mMatchMean = 0.;
19 // mMatchSigma = 8.;
20 }
24 StSsdClusterControl::StSsdClusterControl(St_clusterControl *clusterCtrl)
25 {
26 
27  clusterControl_st *cluster = clusterCtrl->GetTable();
28  if (!cluster) gMessMgr->Error() << "No clusterControl_st table available" << endm;
29  else
30  {
31  mHighCut = cluster[0].highCut;
32  mTestTolerance = cluster[0].testTolerance;
33  mClusterTreat = cluster[0].clusterTreat;
34  mAdcTolerance = cluster[0].adcTolerance;
35  mMatchMean = cluster[0].matchMean;
36  mMatchSigma = cluster[0].matchSigma;
37  }
38 }
43 {
44 }
49  cout<<"**** **** SSD Cluster Control Parameters **** ****"<<endl;
50  cout<<"**** HighCut = "<<this->getHighCut()<<" ****"<<endl;
51  cout<<"**** TestTolerance = "<<this->getTestTolerance()<<" ****"<<endl;
52  cout<<"**** ClusterTreat = "<<this->getClusterTreat()<<" ****"<<endl;
53  cout<<"**** AdcTolerance = "<<this->getAdcTolerance()<<" ****"<<endl;
54  cout<<"**** MatchMean = "<<this->getMatchMean()<<" ****"<<endl;
55  cout<<"**** MatchSigma = "<<this->getMatchSigma()<<" ****"<<endl;
56  cout<<"**************************************"<<endl;
57 }