| 16 |
TString TrkParams::calibpathf = ""; |
TString TrkParams::calibpathf = ""; |
| 17 |
Bool_t TrkParams::calib104 = 0; |
Bool_t TrkParams::calib104 = 0; |
| 18 |
Bool_t TrkParams::calibload = false; |
Bool_t TrkParams::calibload = false; |
| 19 |
|
// ------------------------- |
| 20 |
|
// PARAMETERS loaded from DB |
| 21 |
|
// ------------------------- |
| 22 |
UInt_t TrkParams::trkparamtype[] = {1,2,3,4,5,6,7}; |
UInt_t TrkParams::trkparamtype[] = {1,2,3,4,5,6,7}; |
| 23 |
GL_PARAM TrkParams::gl[] = {GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM()}; |
GL_PARAM TrkParams::gl[] = {GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM(),GL_PARAM()}; |
| 24 |
TString TrkParams::glpath[] = {"","","","","","",""}; |
TString TrkParams::glpath[] = {"","","","","","",""}; |
| 25 |
Bool_t TrkParams::glload[] = {false,false,false,false,false,false,false}; |
Bool_t TrkParams::glload[] = {false,false,false,false,false,false,false}; |
| 26 |
cDbg TrkParams::dbg_mode = {0,0,0}; |
cDbg TrkParams::dbg_mode = {0,0,0}; |
| 27 |
|
// ---------------- |
| 28 |
|
// other parameters |
| 29 |
|
// ---------------- |
| 30 |
|
int TrkParams::init__pfa = 14;//COG4 |
| 31 |
|
int TrkParams::init__mini_trackmode = 0; |
| 32 |
|
int TrkParams::init__mini_istepmin = 3; |
| 33 |
|
double TrkParams::init__mini_fact = 100.; |
| 34 |
|
|
| 35 |
TrkParams::TrkParams(){ |
TrkParams::TrkParams(){ |
| 36 |
|
|
| 37 |
// cout<<"TrkParams::TrkParams()"<<endl; |
cout<<"TrkParams::TrkParams()"<<endl; |
| 38 |
|
|
| 39 |
} |
} |
| 40 |
float aint(float f){ |
float aint(float f){ |
| 818 |
return true; |
return true; |
| 819 |
}; |
}; |
| 820 |
|
|
| 821 |
|
|
| 822 |
|
/** |
| 823 |
|
* Get BY (kGauss) |
| 824 |
|
* @param v (x,y,z) coordinates in cm |
| 825 |
|
*/ |
| 826 |
|
float TrkParams::GetBX(float* v){ |
| 827 |
|
TrkParams::Load(1); |
| 828 |
|
if( !TrkParams::IsLoaded(1) )return 0.; |
| 829 |
|
float b[3]; |
| 830 |
|
gufld_(v,b); |
| 831 |
|
return b[0]/10.; |
| 832 |
|
} |
| 833 |
|
/** |
| 834 |
|
* Get BY (kGauss) |
| 835 |
|
* @param v (x,y,z) coordinates in cm |
| 836 |
|
*/ |
| 837 |
|
float TrkParams::GetBY(float* v){ |
| 838 |
|
TrkParams::Load(1); |
| 839 |
|
if( !TrkParams::IsLoaded(1) )return 0.; |
| 840 |
|
float b[3]; |
| 841 |
|
gufld_(v,b); |
| 842 |
|
return b[1]/10.; |
| 843 |
|
} |
| 844 |
|
/** |
| 845 |
|
* Get BY (kGauss) |
| 846 |
|
* @param v (x,y,z) coordinates in cm |
| 847 |
|
*/ |
| 848 |
|
float TrkParams::GetBZ(float* v){ |
| 849 |
|
TrkParams::Load(1); |
| 850 |
|
if( !TrkParams::IsLoaded(1) )return 0.; |
| 851 |
|
float b[3]; |
| 852 |
|
gufld_(v,b); |
| 853 |
|
return b[2]/10.; |
| 854 |
|
} |
| 855 |
|
|
| 856 |
|
/** |
| 857 |
|
* \brief Set tracking mode (0=standard. 1=???) |
| 858 |
|
*/ |
| 859 |
|
void TrkParams::SetTrackingMode(int trackmode) { |
| 860 |
|
init__mini_trackmode = trackmode; |
| 861 |
|
SetTrackingMode(); |
| 862 |
|
}; |
| 863 |
|
/** |
| 864 |
|
* \brief Set fit-precision factor (typical value fact=100.) |
| 865 |
|
*/ |
| 866 |
|
void TrkParams::SetPrecisionFactor(double fact){ |
| 867 |
|
init__mini_fact = fact; |
| 868 |
|
SetPrecisionFactor(); |
| 869 |
|
}; |
| 870 |
|
/** |
| 871 |
|
* \brief Set minimum number of step in track fitting |
| 872 |
|
*/ |
| 873 |
|
void TrkParams::SetStepMin(int istepmin){ |
| 874 |
|
init__mini_istepmin = istepmin; |
| 875 |
|
SetStepMin(); |
| 876 |
|
}; |
| 877 |
|
|
| 878 |
|
/** |
| 879 |
|
* \brief Set p.f.a. |
| 880 |
|
* |
| 881 |
|
* Implemented algorythms: |
| 882 |
|
* 0 ETA (default) |
| 883 |
|
* 1 --- |
| 884 |
|
* 2 ETA2 |
| 885 |
|
* 3 ETA3 |
| 886 |
|
* 4 ETA4 |
| 887 |
|
* 10 COG |
| 888 |
|
* 11 COG1 |
| 889 |
|
* 12 COG2 |
| 890 |
|
* 13 COG3 |
| 891 |
|
* 14 COG4 |
| 892 |
|
*/ |
| 893 |
|
void TrkParams::SetPFA(int pfaid){ |
| 894 |
|
init__pfa = pfaid; |
| 895 |
|
SetStepMin(); |
| 896 |
|
}; |
| 897 |
|
|
| 898 |
|
|
| 899 |
|
|
| 900 |
ClassImp(TrkParams); |
ClassImp(TrkParams); |