10 const std::vector<double>& scale_mean,
11 const std::vector<double>& scale_std,
14 : scale_mean_(scale_mean), scale_std_(scale_std), isFromL1_(isFromL1), minL1Qual_(minL1Qual) {
41 float& dPhidRL1SeedP)
const {
46 for (
auto it = l1Muons.
begin(ibx); it != l1Muons.
end(ibx); it++) {
50 float dR2tmp =
reco::deltaR2(it->etaAtVtx(), it->phiAtVtx(), global_p.
eta(), global_p.
phi());
51 if (dR2tmp < dR2dRL1SeedP) {
52 dR2dRL1SeedP = dR2tmp;
62 float& dPhidRL2SeedP)
const {
63 for (
auto it = l2Muons.begin(); it != l2Muons.end(); it++) {
65 if (dR2tmp < dR2dRL2SeedP) {
66 dR2dRL2SeedP = dR2tmp;
76 static constexpr
float initDRdPhi(99999.);
77 auto kLast =
isFromL1_ ? kLastL1 : kLastL2;
80 var[kTsosErr0] =
seed.startingState().error(0);
81 var[kTsosErr2] =
seed.startingState().error(2);
82 var[kTsosErr5] =
seed.startingState().error(5);
83 var[kTsosDxdz] =
seed.startingState().parameters().dxdz();
84 var[kTsosDydz] =
seed.startingState().parameters().dydz();
85 var[kTsosQbp] =
seed.startingState().parameters().qbp();
87 float dR2dRL1SeedP = initDRdPhi;
88 float dPhidRL1SeedP = initDRdPhi;
92 var[kDPhidRL1SeedP] = dPhidRL1SeedP;
95 float dR2dRL2SeedP = initDRdPhi;
96 float dPhidRL2SeedP = initDRdPhi;
100 var[kDPhidRL2SeedP] = dPhidRL2SeedP;
103 for (
int iv = 0;
iv < kLast; ++
iv) {