| 35 |
double TrkParams::init__mini_fact = 1.e4; //100.; |
double TrkParams::init__mini_fact = 1.e4; //100.; |
| 36 |
float TrkParams::init__pfa_e234ax[] = {0.,10.,10.,15.,15.,90.}; |
float TrkParams::init__pfa_e234ax[] = {0.,10.,10.,15.,15.,90.}; |
| 37 |
float TrkParams::init__pfa_e234ay[] = {0.,20.,90.,90.,90.,90.}; |
float TrkParams::init__pfa_e234ay[] = {0.,20.,90.,90.,90.,90.}; |
| 38 |
|
double TrkParams::init__deltab_0 = 0.; |
| 39 |
|
double TrkParams::init__deltab_1 = 0.; |
| 40 |
|
double TrkParams::init__dlt = 1.e-5; |
| 41 |
|
|
| 42 |
TrkParams::TrkParams(){ |
TrkParams::TrkParams(){ |
| 43 |
|
|
| 880 |
} |
} |
| 881 |
|
|
| 882 |
|
|
|
|
|
| 883 |
/** |
/** |
| 884 |
* \brief Set tracking mode (0=standard. 1=???) |
* \brief Set tracking mode (0=standard. 1=???) |
| 885 |
*/ |
*/ |
| 886 |
void TrkParams::SetTrackingMode(int trackmode) { |
void TrkParams::SetTrackingMode(int trackmode) { |
| 887 |
init__mini_trackmode = trackmode; |
init__mini_trackmode = trackmode; |
| 888 |
SetTrackingMode(); |
SetTrackingMode(); //fill F77 common |
| 889 |
}; |
}; |
| 890 |
/** |
/** |
| 891 |
* \brief Set fit-precision factor (typical value fact=100.) |
* \brief Set fit-precision factor (typical value fact=100.) |
| 892 |
*/ |
*/ |
| 893 |
void TrkParams::SetPrecisionFactor(double fact){ |
void TrkParams::SetPrecisionFactor(double fact){ |
| 894 |
init__mini_fact = fact; |
init__mini_fact = fact; |
| 895 |
SetPrecisionFactor(); |
SetPrecisionFactor(); //fill F77 common |
| 896 |
}; |
}; |
| 897 |
/** |
/** |
| 898 |
* \brief Set minimum number of step in track fitting |
* \brief Set minimum number of step in track fitting |
| 899 |
*/ |
*/ |
| 900 |
void TrkParams::SetStepMin(int istepmin){ |
void TrkParams::SetStepMin(int istepmin){ |
| 901 |
init__mini_istepmin = istepmin; |
init__mini_istepmin = istepmin; |
| 902 |
SetStepMin(); |
SetStepMin(); //fill F77 common |
| 903 |
|
}; |
| 904 |
|
/** |
| 905 |
|
* \brief Set deltaB parameters (id=0,1) |
| 906 |
|
*/ |
| 907 |
|
void TrkParams::SetDeltaB(int id,double db){ |
| 908 |
|
if(id!=0 && id!=1)cout << "void TrkParams::SetDeltaB(int id,double db) -- wrong input parameters: "<<id<<" "<<db<<endl; |
| 909 |
|
if(id==0)init__deltab_0 = db; |
| 910 |
|
if(id==1)init__deltab_1 = db; |
| 911 |
|
SetDeltaB(); //fill F77 common |
| 912 |
|
}; |
| 913 |
|
/** |
| 914 |
|
* \brief Set DLT-grkuta precision factor (default 1.e-4) |
| 915 |
|
*/ |
| 916 |
|
void TrkParams::SetDLT(double fact){ |
| 917 |
|
init__dlt = fact; |
| 918 |
|
SetDLT(); //fill F77 common |
| 919 |
}; |
}; |
| 920 |
|
|
| 921 |
/** |
/** |
| 922 |
* Fill F77 commons with PFA settings |
* \brief Fill F77 commons with PFA settings |
| 923 |
*/ |
*/ |
| 924 |
void TrkParams::SetPFA(){ |
void TrkParams::SetPFA(){ |
| 925 |
sw_.pfaid = init__pfa; |
sw_.pfaid = init__pfa; |
| 946 |
*/ |
*/ |
| 947 |
void TrkParams::SetPFA(int pfaid){ |
void TrkParams::SetPFA(int pfaid){ |
| 948 |
init__pfa = pfaid; |
init__pfa = pfaid; |
| 949 |
SetPFA(); |
SetPFA(); //fill F77 common |
| 950 |
}; |
}; |
| 951 |
/** |
/** |
| 952 |
* \brief Set p.f.a. angular intervals |
* \brief Set p.f.a. angular intervals |
| 953 |
* |
* |
| 954 |
* This methods allows to set these amgular intervals to apply ETA2,ETA3 or ETA4 |
* This methods allows to set amgular intervals to apply ETA2,ETA3 or ETA4 |
| 955 |
* algorythm, in case ETA or ETAL is chosen (see TrkParams::SetPFA(int pfaid)). |
* algorythm, in case ETA or ETAL is set (see TrkParams::SetPFA(int pfaid)). |
| 956 |
* @param v Pointer to a vector of 12 components, which represent the |
* @param v Pointer to a vector of 12 components, which represent the |
| 957 |
* angular limits for ETA2,ETA3 and ETA4, for x and y views, respectivelly. |
* angular limits for ETA2,ETA3 and ETA4, for x and y views, respectivelly. |
| 958 |
* |
* |
| 962 |
init__pfa_e234ax[i] = v[i]; |
init__pfa_e234ax[i] = v[i]; |
| 963 |
init__pfa_e234ay[i] = v[i+6]; |
init__pfa_e234ay[i] = v[i+6]; |
| 964 |
} |
} |
| 965 |
SetPFA(); |
SetPFA(); //fill F77 common |
| 966 |
}; |
}; |
| 967 |
|
|
| 968 |
|
|