22 kSegmentCompatibility,
27 kLayersWithMeasurement,
74 var[kIValidFraction] = iTrack->validFraction();
75 var[kInnerChi2] = iTrack->normalizedChi2();
76 var[kLayersWithMeasurement] = iTrack->hitPattern().trackerLayersWithMeasurement();
78 var[kOuterChi2] = oTrack->normalizedChi2();
80 var[kQProd] = iTrack->charge() * oTrack->charge();
86 std::vector<int> fvDThits{0, 0, 0, 0};
87 std::vector<int> fvRPChits{0, 0, 0, 0};
88 std::vector<int> fvCSChits{0, 0, 0, 0};
90 var[kVMuonHitComb] = 0;
98 if (muStation0 >= 0 && muStation0 < 4) {
100 fvDThits[muStation0]++;
102 fvRPChits[muStation0]++;
104 fvCSChits[muStation0]++;
109 var[kVMuonHitComb] += (fvDThits[
station]) / 2.;
110 var[kVMuonHitComb] += fvRPChits[
station];
113 var[kVMuonHitComb] += 6;
115 var[kVMuonHitComb] += fvCSChits[
station];
119 if (var[kChi2LocalMomentum] < 5000 and var[kChi2LocalPosition] < 2000 and var[kGlbTrackProbability] < 5000 and
120 var[kTrkKink] < 900 and var[kLog2PlusGlbKink] < 50 and var[kTimeAtIpInOutErr] < 4 and var[kOuterChi2] < 1000 and
121 var[kInnerChi2] < 10 and var[kTrkRelChi2] < 3) {
122 return gbrForest_->GetAdaBoostClassifier(var);
float chi2LocalPosition
chi2 value for the STA-TK matching of local position
bool isNonnull() const
Checks for non-null.
float chi2LocalMomentum
chi2 value for the STA-TK matching of local momentum
double pt() const final
transverse momentum
float glbKink
value of the kink algorithm applied to the global track
float glbTrackProbability
the tail probability (-ln(P)) of the global fit
float trkKink
value of the kink algorithm applied to the inner track stub
example_track example_trackconst char *const kPt
float trkRelChi2
chi2 value for the inner track stub with respect to the global track
MuonTime time() const
get DT/CSC combined timing information
static bool validHitFilter(uint16_t pattern)
double segmentCompatibility(reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration) const
Returns the segment compatibility, using muon::segmentCompatibility (DataFormats/MuonReco/interface/M...
static bool muonCSCHitFilter(uint16_t pattern)
reco::TrackRef outerTrack() const override
reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) ...
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)
int numberOfAllHits(HitCategory category) const
MuonQuality combinedQuality() const
get energy deposition information
SoftMuonMvaEstimator(const edm::FileInPath &weightsfile)
reco::TrackRef globalTrack() const override
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
reco::TrackRef innerTrack() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
static bool muonDTHitFilter(uint16_t pattern)
std::unique_ptr< const GBRForest > gbrForest_
static uint16_t getMuonStation(uint16_t pattern)
Muon station (1-4). Only valid for muon patterns, of course. only for patterns from muon...
float computeMva(const pat::Muon &imuon) const
uint16_t getHitPattern(HitCategory category, int position) const
static bool muonRPCHitFilter(uint16_t pattern)
Analysis-level muon class.
double eta() const final
momentum pseudorapidity