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.);
87 float dR2dRL1SeedP = initDRdPhi;
88 float dPhidRL1SeedP = initDRdPhi;
92 var[kDPhidRL1SeedP] = dPhidRL1SeedP;
95 float dR2dRL2SeedP = initDRdPhi;
96 float dPhidRL2SeedP = initDRdPhi;
100 var[kDPhidRL2SeedP] = dPhidRL2SeedP;
constexpr double deltaPhi(double phi1, double phi2)
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)
const_iterator begin(int bx) const
std::unique_ptr< const GBRForest > gbrForest_
const std::vector< double > scale_mean_
void getL2MuonVariables(const GlobalVector &, const reco::RecoChargedCandidateCollection &, float &, float &) const
std::vector< RecoChargedCandidate > RecoChargedCandidateCollection
collectin of RecoChargedCandidate objects
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
void getL1MuonVariables(const GlobalVector &, const l1t::MuonBxCollection &, float &, float &) const
const_iterator end(int bx) const
const std::vector< double > scale_std_
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const