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 |
|
// nominal z-coordinates to define acceptance |
43 |
|
// ------------------------------------------ |
44 |
|
int TrkParams::nGF = NGF; |
45 |
|
float TrkParams::zGF[] = {+53.74,+53.04,+23.94,+23.44,+22.29,+21.83,+13.39,+4.49,-4.41,-13.31,-21.83,-22.22,-23.49,-24.34}; |
46 |
|
float TrkParams::xGF_min[] = {-20.40,-20.40,-9.00,-9.00,-8.07,-8.07,-8.07,-8.07,-8.07,-8.07,-8.07,-8.07,-9.00,-9.00}; |
47 |
|
float TrkParams::xGF_max[] = {+20.40,+20.40,+9.00,+9.00,+8.07,+8.07,+8.07,+8.07,+8.07,+8.07,+8.07,+8.07,+9.00,+9.00}; |
48 |
|
// float TrkParams::yGF_min[] = {-16.50,-16.50,-7.50,-7.50,-7.25,-6.57,-7.25,-7.25,-7.25,-7.25,-6.57,-6.75,-7.50,-7.50}; |
49 |
|
// float TrkParams::yGF_max[] = {+16.50,+16.50,+7.50,+7.50,+6.75,+6.57,+6.75,+6.75,+6.75,+6.75,+6.57,+7.25,+7.50,+7.50}; |
50 |
|
// per i piani interni alla cavita`, gli estremi sono dati dalla cavita` stessa |
51 |
|
float TrkParams::yGF_min[] = {-16.50,-16.50,-7.50,-7.50,-7.25,-6.57,-6.57,-6.57,-6.57,-6.57,-6.57,-6.75,-7.50,-7.50}; |
52 |
|
float TrkParams::yGF_max[] = {+16.50,+16.50,+7.50,+7.50,+6.75,+6.57,+6.57,+6.57,+6.57,+6.57,+6.57,+7.25,+7.50,+7.50}; |
53 |
|
TString TrkParams::GF_element[] = {"S11","S12","S21","S22","T1","CUF","T2","T3","T4","T5","CLF","T6","S31","S32"}; |
54 |
|
|
55 |
TrkParams::TrkParams(){ |
TrkParams::TrkParams(){ |
56 |
|
|
614 |
cout << " - full+truncated parameters "<<endl; |
cout << " - full+truncated parameters "<<endl; |
615 |
} |
} |
616 |
TrkParams::FillACalibFrom(f0_c,calib.EV_ROOT_CALIBTRK1,calib.EV_ROOT_CALIBTRK2); |
TrkParams::FillACalibFrom(f0_c,calib.EV_ROOT_CALIBTRK1,calib.EV_ROOT_CALIBTRK2); |
617 |
if(TrkParams::VerboseMode())cout << " - VK-mask "<<endl; |
if(TrkParams::VerboseMode())cout << " - VK-mask (RUN-by-RUN)"<<endl; |
618 |
TrkParams::FillMask(f0_c,calib.EV_ROOT_CALIBTRK1,calib.EV_ROOT_CALIBTRK2); |
TrkParams::FillMask(f0_c,calib.EV_ROOT_CALIBTRK1,calib.EV_ROOT_CALIBTRK2); |
619 |
|
|
620 |
// ============================================================= |
// ============================================================= |
673 |
}else cout <<"Bool_t TrkParams::Set(GL_RUN*,TSQLServer*,UInt_t) >> Missing run info -- taking first entry (**WARNING** check that this is ok!! )"<<endl; |
}else cout <<"Bool_t TrkParams::Set(GL_RUN*,TSQLServer*,UInt_t) >> Missing run info -- taking first entry (**WARNING** check that this is ok!! )"<<endl; |
674 |
|
|
675 |
// if(TrkParams::VerboseMode()) |
// if(TrkParams::VerboseMode()) |
676 |
cout << "<< set TrkParams type "<<type<<" from DB << RUN "<<runid<<endl; |
if(TrkParams::VerboseMode())cout << "<< set TrkParams type "<<type<<" from DB << RUN "<<runid<<endl; |
677 |
|
|
678 |
|
|
679 |
if( !TrkParams::IsLoaded(type) || |
if( !TrkParams::IsLoaded(type) || |
893 |
} |
} |
894 |
|
|
895 |
|
|
|
|
|
896 |
/** |
/** |
897 |
* \brief Set tracking mode (0=standard. 1=???) |
* \brief Set tracking mode (0=standard. 1=???) |
898 |
*/ |
*/ |
899 |
void TrkParams::SetTrackingMode(int trackmode) { |
void TrkParams::SetTrackingMode(int trackmode) { |
900 |
init__mini_trackmode = trackmode; |
init__mini_trackmode = trackmode; |
901 |
SetTrackingMode(); |
SetTrackingMode(); //fill F77 common |
902 |
}; |
}; |
903 |
/** |
/** |
904 |
* \brief Set fit-precision factor (typical value fact=100.) |
* \brief Set fit-precision factor (typical value fact=100.) |
905 |
*/ |
*/ |
906 |
void TrkParams::SetPrecisionFactor(double fact){ |
void TrkParams::SetPrecisionFactor(double fact){ |
907 |
init__mini_fact = fact; |
init__mini_fact = fact; |
908 |
SetPrecisionFactor(); |
SetPrecisionFactor(); //fill F77 common |
909 |
}; |
}; |
910 |
/** |
/** |
911 |
* \brief Set minimum number of step in track fitting |
* \brief Set minimum number of step in track fitting |
912 |
*/ |
*/ |
913 |
void TrkParams::SetStepMin(int istepmin){ |
void TrkParams::SetStepMin(int istepmin){ |
914 |
init__mini_istepmin = istepmin; |
init__mini_istepmin = istepmin; |
915 |
SetStepMin(); |
SetStepMin(); //fill F77 common |
916 |
|
}; |
917 |
|
/** |
918 |
|
* \brief Set deltaB parameters (id=0,1) |
919 |
|
*/ |
920 |
|
void TrkParams::SetDeltaB(int id,double db){ |
921 |
|
if(id!=0 && id!=1)cout << "void TrkParams::SetDeltaB(int id,double db) -- wrong input parameters: "<<id<<" "<<db<<endl; |
922 |
|
if(id==0)init__deltab_0 = db; |
923 |
|
if(id==1)init__deltab_1 = db; |
924 |
|
SetDeltaB(); //fill F77 common |
925 |
|
}; |
926 |
|
/** |
927 |
|
* \brief Set DLT-grkuta precision factor (default 1.e-4) |
928 |
|
*/ |
929 |
|
void TrkParams::SetDLT(double fact){ |
930 |
|
init__dlt = fact; |
931 |
|
SetDLT(); //fill F77 common |
932 |
}; |
}; |
933 |
|
|
934 |
/** |
/** |
935 |
* Fill F77 commons with PFA settings |
* \brief Fill F77 commons with PFA settings |
936 |
*/ |
*/ |
937 |
void TrkParams::SetPFA(){ |
void TrkParams::SetPFA(){ |
938 |
sw_.pfaid = init__pfa; |
sw_.pfaid = init__pfa; |
959 |
*/ |
*/ |
960 |
void TrkParams::SetPFA(int pfaid){ |
void TrkParams::SetPFA(int pfaid){ |
961 |
init__pfa = pfaid; |
init__pfa = pfaid; |
962 |
SetPFA(); |
SetPFA(); //fill F77 common |
963 |
}; |
}; |
964 |
/** |
/** |
965 |
* \brief Set p.f.a. angular intervals |
* \brief Set p.f.a. angular intervals |
966 |
* |
* |
967 |
* 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 |
968 |
* 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)). |
969 |
* @param v Pointer to a vector of 12 components, which represent the |
* @param v Pointer to a vector of 12 components, which represent the |
970 |
* 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. |
971 |
* |
* |
975 |
init__pfa_e234ax[i] = v[i]; |
init__pfa_e234ax[i] = v[i]; |
976 |
init__pfa_e234ay[i] = v[i+6]; |
init__pfa_e234ay[i] = v[i+6]; |
977 |
} |
} |
978 |
SetPFA(); |
SetPFA(); //fill F77 common |
979 |
}; |
}; |
980 |
|
|
981 |
|
|