StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSstDynamicControl.cxx
1 //$Id: StSstDynamicControl.cxx,v 1.2 2015/06/24 17:37:21 smirnovd Exp $
2 //
3 //$Log: StSstDynamicControl.cxx,v $
4 //Revision 1.2 2015/06/24 17:37:21 smirnovd
5 //StSstUtil: Prepend included headers with path to submodule
6 //
7 //Revision 1.1 2015/06/23 16:26:20 jeromel
8 //First version created from the SSD code and reshaped
9 //
10 //Revision 1.1 2015/04/19 17:30:32 bouchet
11 //initial commit ; SST codes
12 //
13 
14 //fork from the SSD code, move along - see history therein
15 
16 #include "St_base/Stiostream.h"
17 #include "StSstDynamicControl.h"
18 #include "StMessMgr.h"
19 #include "tables/St_sstSlsCtrl_Table.h"
20 #include "StDbLib/StDbManager.hh" // Database Libraries
21 #include "StDbLib/StDbConfigNode.hh" //
22 #include "StDbLib/StDbTable.h"
27 {
28 }
33 {
34  sstSlsCtrl_st *control = sstCtrl->GetTable();
35  if (!control) {LOG_WARN << "No sstSlsCtrl_st table available" << endm;}
36  else
37  {
38  mnElectronInAMip = control[0].nElectronInAMip;
39  madcDynamic = control[0].adcDynamic;
40  ma128Dynamic = control[0].a128Dynamic;
41  mnbitEncoding = control[0].nbitEncoding;
42  mnstripInACluster = control[0].nstripInACluster;
43  mpairCreationEnergy = control[0].pairCreationEnergy;
44  mparDiffP = control[0].parDiffP;
45  mparDiffN = control[0].parDiffN;
46  mparIndRightP = control[0].parIndRightP;
47  mparIndRightN = control[0].parIndRightN;
48  mparIndLeftP = control[0].parIndLeftP;
49  mparIndLeftN = control[0].parIndLeftN;
50  mdaqCutValue = control[0].daqCutValue;
51  }
52 }
57 {
58 }
59 
65  LOG_INFO<<"**** **** SST Dynamic Control Parameters **** ****"<<endm;
66  LOG_INFO<<"**** nElectronInAMip = "<<this->getnElectronInAMip()<<" ****"<<endm;
67  LOG_INFO<<"**** adcDynamic = "<<this->getadcDynamic()<<" ****"<<endm;
68  LOG_INFO<<"**** a128Dynamic = "<<this->geta128Dynamic()<<" ****"<<endm;
69  LOG_INFO<<"**** nbitEncoding = "<<this->getnbitEncoding()<<" ****"<<endm;
70  LOG_INFO<<"**** pairCreationEnergy = "<<this->getpairCreationEnergy()<<" ****"<<endm;
71  LOG_INFO<<"**** daqCutValue = "<<this->getdaqCutValue()<<" ****"<<endm;
72  LOG_INFO<<"**************************************"<<endm;
73 }
74 
75