StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSsdDynamicControl.cxx
1 // $Id: StSsdDynamicControl.cxx,v 1.1 2006/10/16 16:43:29 bouchet Exp $
2 //
3 // $Log: StSsdDynamicControl.cxx,v $
4 // Revision 1.1 2006/10/16 16:43:29 bouchet
5 // StSsdUtil regroups now methods for the classes StSsdStrip, StSsdCluster and StSsdPoint
6 //
7 // Revision 1.5 2006/09/15 21:03:14 bouchet
8 // id_mctrack is using for setIdTruth and propagated to the hit
9 //
10 // Revision 1.4 2005/03/18 14:22:40 lmartin
11 // missing CVS header added
12 //
13 
14 #include <Stiostream.h>
15 #include "StSsdDynamicControl.h"
16 #include "StMessMgr.h"
17 #include "tables/St_slsCtrl_Table.h"
18 #include "StDbLib/StDbManager.hh" // Database Libraries
19 #include "StDbLib/StDbConfigNode.hh" //
20 #include "StDbLib/StDbTable.h"
26 {
27 // mnElectronInAMip = 22500;
28 // madcDynamic = 20;
29 // ma128Dynamic = 12;
30 // mnbitEncoding = 10;
31 // mnstripInACluster = 4;
32 // mpairCreationEnergy = 3.6e-09;
33 // mparDiffP = 0.00123;
34 // mparDiffN = 0.00094;
35 // mparIndRightP = 0.021;
36 // mparIndRightN = 0.026;
37 // mparIndLeftP = 0.013;
38 // mparIndLeftN = 0.01;
39 // mdaqCutValue = 4;
40 }
45 {
46  slsCtrl_st *control = slsCtrl->GetTable();
47  if (!control) gMessMgr->Error() << "No slsCtrl_st table available" << endm;
48  else
49  {
50  mnElectronInAMip = control[0].nElectronInAMip;
51  madcDynamic = control[0].adcDynamic;
52  ma128Dynamic = control[0].a128Dynamic;
53  mnbitEncoding = control[0].nbitEncoding;
54  mnstripInACluster = control[0].nstripInACluster;
55  mpairCreationEnergy = control[0].pairCreationEnergy;
56  mparDiffP = control[0].parDiffP;
57  mparDiffN = control[0].parDiffN;
58  mparIndRightP = control[0].parIndRightP;
59  mparIndRightN = control[0].parIndRightN;
60  mparIndLeftP = control[0].parIndLeftP;
61  mparIndLeftN = control[0].parIndLeftN;
62  mdaqCutValue = control[0].daqCutValue;
63  }
64 }
69 {
70 }
71 
76  cout<<"**** **** SSD Dynamic Control Parameters **** ****"<<endl;
77  cout<<"**** nElectronInAMip = "<<this->getnElectronInAMip()<<" ****"<<endl;
78  cout<<"**** adcDynamic = "<<this->getadcDynamic()<<" ****"<<endl;
79  cout<<"**** a128Dynamic = "<<this->geta128Dynamic()<<" ****"<<endl;
80  cout<<"**** nbitEncoding = "<<this->getnbitEncoding()<<" ****"<<endl;
81  cout<<"**** pairCreationEnergy = "<<this->getpairCreationEnergy()<<" ****"<<endl;
82  cout<<"**** daqCutValue = "<<this->getdaqCutValue()<<" ****"<<endl;
83  cout<<"**************************************"<<endl;
84 }
85 
86