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;
87 float dR2dRL1SeedP = initDRdPhi;
88 float dPhidRL1SeedP = initDRdPhi;
91 var[kDRdRL1SeedP] =
std::sqrt(dR2dRL1SeedP);
92 var[kDPhidRL1SeedP] = dPhidRL1SeedP;
95 float dR2dRL2SeedP = initDRdPhi;
96 float dPhidRL2SeedP = initDRdPhi;
99 var[kDRdRL2SeedP] =
std::sqrt(dR2dRL2SeedP);
100 var[kDPhidRL2SeedP] = dPhidRL2SeedP;
103 for (
int iv = 0;
iv < kLast; ++
iv) {
constexpr double deltaPhi(double phi1, double phi2)
const_iterator end(int bx) const
Geom::Phi< T > phi() const
SeedMvaEstimator(const edm::FileInPath &weightsfile, const std::vector< double > &scale_mean, const std::vector< double > &scale_std, const bool isFromL1, const int minL1Qual)
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const
list var
if using global norm cols_to_minmax = ['t_delta', 't_hmaxNearP','t_emaxNearP', 't_hAnnular', 't_eAnnular','t_pt','t_nVtx','t_ieta','t_eHcal10', 't_eHcal30','t_rhoh','t_eHcal'] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() > 0) else 1.0/200.0)
std::unique_ptr< const GBRForest > gbrForest_
void getL1MuonVariables(const GlobalVector &, const l1t::MuonBxCollection &, float &, float &) const
const std::vector< double > scale_mean_
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
PTrajectoryStateOnDet const & startingState() const
const std::vector< double > scale_std_
void getL2MuonVariables(const GlobalVector &, const reco::RecoChargedCandidateCollection &, float &, float &) const
const_iterator begin(int bx) const
const LocalTrajectoryParameters & parameters() const