21 kSegmentCompatibility,
26 kLayersWithMeasurement,
77 var[kIValidFraction] = iTrack->validFraction();
78 var[kInnerChi2] = iTrack->normalizedChi2();
79 var[kLayersWithMeasurement] = iTrack->hitPattern().trackerLayersWithMeasurement();
81 var[kOuterChi2] = oTrack->normalizedChi2();
83 var[kQProd] = iTrack->charge()*oTrack->charge();
89 std::vector<int> fvDThits {0,0,0,0};
90 std::vector<int> fvRPChits {0,0,0,0};
91 std::vector<int> fvCSChits {0,0,0,0};
93 var[kVMuonHitComb] = 0;
101 if (muStation0 >=0 && muStation0 < 4){
112 var[kVMuonHitComb] += (fvDThits[
station])/2.;
113 var[kVMuonHitComb] += fvRPChits[
station];
116 var[kVMuonHitComb] += 6;
118 var[kVMuonHitComb] += fvCSChits[
station];
123 if(var[kChi2LocalMomentum] < 5000 and var[kChi2LocalPosition] < 2000 and
124 var[kGlbTrackProbability] < 5000 and var[kTrkKink] < 900 and
125 var[kLog2PlusGlbKink] < 50 and var[kTimeAtIpInOutErr] < 4 and
126 var[kOuterChi2] < 1000 and var[kInnerChi2] < 10 and var[kTrkRelChi2] < 3)
128 return gbrForest_->GetAdaBoostClassifier(var);
float chi2LocalPosition
chi2 value for the STA-TK matching of local position
bool isNonnull() const
Checks for non-null.
double eta() const final
momentum pseudorapidity
float chi2LocalMomentum
chi2 value for the STA-TK matching of local momentum
example_track example_track const char *const kPt
float glbKink
value of the kink algorithm applied to the global track
float glbTrackProbability
the tail probability (-ln(P)) of the global fit
double pt() const final
transverse momentum
float trkKink
value of the kink algorithm applied to the inner track stub
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...
reco::TrackRef innerTrack() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
reco::TrackRef outerTrack() const override
reference to Track reconstructed in the muon detector only (reimplemented from reco::Muon) ...
static bool muonCSCHitFilter(uint16_t pattern)
int numberOfAllHits(HitCategory category) const
MuonQuality combinedQuality() const
get energy deposition information
reco::TrackRef globalTrack() const override
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
SoftMuonMvaEstimator(const edm::FileInPath &weightsfile)
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.