StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSstClusterControl.cxx
1 //$Id: StSstClusterControl.cxx,v 1.3 2016/06/06 18:48:39 bouchet Exp $
2 //
3 //$Log: StSstClusterControl.cxx,v $
4 //Revision 1.3 2016/06/06 18:48:39 bouchet
5 //coverity : UNINIT_CTOR
6 //
7 //Revision 1.2 2015/06/24 17:37:21 smirnovd
8 //StSstUtil: Prepend included headers with path to submodule
9 //
10 //Revision 1.1 2015/06/23 16:26:19 jeromel
11 //First version created from the SSD code and reshaped
12 //
13 //Revision 1.1 2015/04/19 17:30:31 bouchet
14 //initial commit ; SST codes
15 //
16 
17 //fork from the SSD code, move along - see history therein
18 #include "St_base/Stiostream.h"
19 #include "StSstUtil/StSstClusterControl.h"
20 #include "StMessMgr.h"
21 #include "tables/St_clusterControl_Table.h"
26  mHighCut = 0.;
27  mTestTolerance = 0.;
28  mClusterTreat = 0.;
29  mAdcTolerance = 0.;
30  mMatchMean = 0.;
31  mMatchSigma = 0.;
32 }
33 
37 StSstClusterControl::StSstClusterControl(St_clusterControl *clusterCtrl){
38 
39  clusterControl_st *cluster = clusterCtrl->GetTable();
40  if (!cluster) gMessMgr->Error() << "No clusterControl_st table available" << endm;
41  else
42  {
43  mHighCut = cluster[0].highCut;
44  mTestTolerance = cluster[0].testTolerance;
45  mClusterTreat = cluster[0].clusterTreat;
46  mAdcTolerance = cluster[0].adcTolerance;
47  mMatchMean = cluster[0].matchMean;
48  mMatchSigma = cluster[0].matchSigma;
49  }
50 }
55 {
56 }
61  cout<<"**** **** SSD Cluster Control Parameters **** ****"<<endl;
62  cout<<"**** HighCut = "<<this->getHighCut()<<" ****"<<endl;
63  cout<<"**** TestTolerance = "<<this->getTestTolerance()<<" ****"<<endl;
64  cout<<"**** ClusterTreat = "<<this->getClusterTreat()<<" ****"<<endl;
65  cout<<"**** AdcTolerance = "<<this->getAdcTolerance()<<" ****"<<endl;
66  cout<<"**** MatchMean = "<<this->getMatchMean()<<" ****"<<endl;
67  cout<<"**** MatchSigma = "<<this->getMatchSigma()<<" ****"<<endl;
68  cout<<"**************************************"<<endl;
69 }