10 const std::vector<double>& scale_mean,
11 const std::vector<double>& scale_std,
14 : scale_mean_(scale_mean.begin(), scale_mean.
end()), isFromL1_(
isFromL1), minL1Qual_(
minL1Qual) {
16 for (
auto v : scale_std)
26 float& dPhidRL1SeedP)
const {
36 if (dR2tmp < dR2dRL1SeedP) {
37 dR2dRL1SeedP = dR2tmp;
46 float& dPhidRL2SeedP)
const {
49 for (
auto it = l2Muons.begin();
it != l2Muons.end();
it++) {
51 if (dR2tmp < dR2dRL2SeedP) {
52 dR2dRL2SeedP = dR2tmp;
62 static constexpr float initDRdPhi(99999.);
73 float dR2dRL1SeedP = initDRdPhi;
74 float dPhidRL1SeedP = initDRdPhi;
78 var[kDPhidRL1SeedP] = dPhidRL1SeedP;
81 float dR2dRL2SeedP = initDRdPhi;
82 float dPhidRL2SeedP = initDRdPhi;
86 var[kDPhidRL2SeedP] = dPhidRL2SeedP;
constexpr double deltaPhi(double phi1, double phi2)
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< float > 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
std::vector< float > scale_istd_
double computeMva(const TrajectorySeed &, const GlobalVector &, const l1t::MuonBxCollection &, const reco::RecoChargedCandidateCollection &) const