21 numPhiSectors_(settings->numPhiSectors()),
22 numPhiNonants_(settings->numPhiNonants()),
24 phiSectorWidth_(2. *
M_PI /
float(numPhiSectors_)),
25 phiNonantWidth_(2. *
M_PI /
float(numPhiNonants_)),
27 chosenRofPhi_(settings->chosenRofPhi()),
30 nbinsPt_((
int)settings->houghNbinsPt()),
31 invPtToDPhi_(settings->invPtToDphi()),
34 fitterName_(fitterName),
35 nHelixParams_(fitTrk->nHelixParam()),
37 nlayers_(fitTrk->numLayers()),
38 iPhiSec_(fitTrk->iPhiSec()),
39 iEtaReg_(fitTrk->iEtaReg()),
40 mBin_(
int(fitTrk->cellLocationHT().
first) - floor(settings_->houghNbinsPt() / 2)),
41 cBin_(
int(fitTrk->cellLocationHT().
second) - floor(settings_->houghNbinsPhi() / 2)),
42 mBinhelix_(
int(fitTrk->cellLocationFit().
first) - floor(settings_->houghNbinsPt() / 2)),
43 cBinhelix_(
int(fitTrk->cellLocationFit().
second) - floor(settings_->houghNbinsPhi() / 2)),
44 hitPattern_(fitTrk->hitPattern()),
45 consistent_(fitTrk->consistentHTcell()),
46 consistentSect_(fitTrk->consistentSector()),
47 accepted_(fitTrk->accepted()),
49 qOverPt_orig_(fitTrk->qOverPt()),
50 oneOver2r_orig_(fitTrk->qOverPt() * invPtToDPhi_),
51 d0_orig_(fitTrk->
d0()),
52 phi0_orig_(fitTrk->phi0()),
53 tanLambda_orig_(fitTrk->tanLambda()),
54 z0_orig_(fitTrk->
z0()),
55 chisquaredRphi_orig_(fitTrk->chi2rphi()),
56 chisquaredRz_orig_(fitTrk->chi2rz()),
59 qOverPt_bcon_orig_(fitTrk->qOverPt_bcon()),
60 oneOver2r_bcon_orig_(fitTrk->qOverPt_bcon() * invPtToDPhi_),
61 phi0_bcon_orig_(fitTrk->phi0_bcon()),
62 chisquaredRphi_bcon_orig_(fitTrk->chi2rphi_bcon()) {
80 bool tpOK = (
tp !=
nullptr);
100 if (fitterName ==
"SimpleLR4") {
118 if (fitterName ==
"KF4ParamsComb" || fitterName ==
"KF5ParamsComb" || fitterName ==
"KF4ParamsCombHLS") {
251 <<
"DigitalTrack: Track oneOver2r is out of assumed digitization range."
256 throw cms::Exception(
"BadConfig") <<
"DigitalTrack: Track phi0rel is out of assumed digitization range."
261 throw cms::Exception(
"BadConfig") <<
"DigitalTrack: Track z0 is out of assumed digitization range."
265 throw cms::Exception(
"BadConfig") <<
"DigitalTrack: Track d0 is out of assumed digitization range."
270 <<
"DigitalTrack: Track tanLambda is out of assumed digitization range."
276 <<
"DigitalTrack: Track chisquaredRphi is out of assumed digitization range."
281 <<
"DigitalTrack: Track chisquaredRz is out of assumed digitization range."
301 constexpr
float smallTA = 0.01, smallTB = 0.001, smallTC = 0.05, smallTD = 0.002, smallTE = 0.05, smallTF = 0.5,
306 <<
"WARNING: DigitalTrack lost precision: " <<
fitterName_ <<
" accepted=" <<
accepted_ <<
" " << TA <<
" "
307 << TB <<
" " << TC <<
" " << TD <<
" " << TE <<
" " << TF <<
" " << TG;