56 #include "StMcParameterDB.h"
57 #include "PhysicalConstants.h"
58 #include "SystemOfUnits.h"
70 StMcParameterDB::StMcParameterDB()
71 :mXCutTpc(5.*millimeter),mYCutTpc(5.*millimeter),mZCutTpc(5.*millimeter),mReqCommonHitsTpc(3),
72 mXCutSvt(1.*millimeter),mYCutSvt(1.*millimeter),mZCutSvt(1.*millimeter),mReqCommonHitsSvt(1),
73 mXCutSsd(1.*millimeter),mYCutSsd(1.*millimeter),mZCutSsd(1.*millimeter),mReqCommonHitsSsd(1),
74 mRCutFtpc(3.*millimeter),mPhiCutFtpc(5.*degree),mReqCommonHitsFtpc(2)
77 void StMcParameterDB::setXCutTpc(
float val) { mXCutTpc = val ;}
78 void StMcParameterDB::setYCutTpc(
float val) { mYCutTpc = val ;}
79 void StMcParameterDB::setZCutTpc(
float val) { mZCutTpc = val ;}
80 void StMcParameterDB::setReqCommonHitsTpc(
unsigned int val) { mReqCommonHitsTpc = val;}
82 void StMcParameterDB::setXCutSvt(
float val) { mXCutSvt = val ;}
83 void StMcParameterDB::setYCutSvt(
float val) { mYCutSvt = val ;}
84 void StMcParameterDB::setZCutSvt(
float val) { mZCutSvt = val ;}
85 void StMcParameterDB::setReqCommonHitsSvt(
unsigned int val) { mReqCommonHitsSvt = val;}
87 void StMcParameterDB::setXCutSsd(
float val) { mXCutSsd = val ;}
88 void StMcParameterDB::setYCutSsd(
float val) { mYCutSsd = val ;}
89 void StMcParameterDB::setZCutSsd(
float val) { mZCutSsd = val ;}
90 void StMcParameterDB::setReqCommonHitsSsd(
unsigned int val) { mReqCommonHitsSsd = val;}
92 void StMcParameterDB::setRCutFtpc(
float val) { mRCutFtpc = val ;}
93 void StMcParameterDB::setPhiCutFtpc(
float val) { mPhiCutFtpc = val ;}
94 void StMcParameterDB::setReqCommonHitsFtpc(
unsigned int val) { mReqCommonHitsFtpc = val;}
97 float StMcParameterDB::zCutTpc(
float z)
const {
98 return (mZCutTpc/0.166657) * (0.166657+2.07482e-4*fabs(z));
104 os <<
" TPC Cuts " << endl;
105 os <<
" X Cut : " << mcDb.xCutTpc()/millimeter <<
" mm" << endl;
106 os <<
" Y Cut : " << mcDb.yCutTpc()/millimeter <<
" mm" << endl;
107 os <<
" Z Cut : " << mcDb.zCutTpc()/millimeter <<
" mm" << endl;
108 os <<
" Required Hits for Associating Tracks: " << mcDb.reqCommonHitsTpc() << endl;
109 os <<
" SVT Cuts " << endl;
110 os <<
" X Cut : " << mcDb.xCutSvt()/millimeter <<
" mm" << endl;
111 os <<
" Y Cut : " << mcDb.yCutSvt()/millimeter <<
" mm" << endl;
112 os <<
" Z Cut : " << mcDb.zCutSvt()/millimeter <<
" mm" << endl;
113 os <<
" Required Hits for Associating Tracks: " << mcDb.reqCommonHitsSvt() << endl;
114 os <<
" SSD Cuts " << endl;
115 os <<
" X Cut : " << mcDb.xCutSsd()/millimeter <<
" mm" << endl;
116 os <<
" Y Cut : " << mcDb.yCutSsd()/millimeter <<
" mm" << endl;
117 os <<
" Z Cut : " << mcDb.zCutSsd()/millimeter <<
" mm" << endl;
118 os <<
" Required Hits for Associating Tracks: " << mcDb.reqCommonHitsSsd() << endl;
119 os <<
" FTPC Cuts " << endl;
120 os <<
" R Cut : " << mcDb.rCutFtpc()/millimeter <<
" mm" << endl;
121 os <<
" Phi Cut : " << mcDb.phiCutFtpc()/degree <<
" degrees" << endl;
122 os <<
" Required Hits for Associating Tracks: " << mcDb.reqCommonHitsFtpc() << endl;