15 |
|
|
16 |
|
extern vector<bool> PFnoPUflag; |
17 |
|
extern Float_t computePFMuonIso(const mithep::Muon *mu, |
18 |
< |
const mithep::Vertex & vtx, |
18 |
> |
const mithep::Vertex * vtx, |
19 |
|
const mithep::Array<mithep::PFCandidate> * pfCandidates, |
20 |
|
const Double_t dRMax); |
21 |
|
|
22 |
|
//-------------------------------------------------------------------------------------------------- |
23 |
|
SelectionStatus muonDummyVeto(ControlFlags &ctrl, |
24 |
|
const mithep::Muon *muon, |
25 |
< |
const mithep::Vertex &vtx) |
25 |
> |
const mithep::Vertex * vtx) |
26 |
|
//-------------------------------------------------------------------------------------------------- |
27 |
|
{ |
28 |
|
SelectionStatus status; |
33 |
|
//-------------------------------------------------------------------------------------------------- |
34 |
|
SelectionStatus muonCutBasedVeto(ControlFlags &ctrl, |
35 |
|
const mithep::Muon *muon, |
36 |
< |
const mithep::Vertex &vtx) |
36 |
> |
const mithep::Vertex *vtx) |
37 |
|
//-------------------------------------------------------------------------------------------------- |
38 |
|
{ |
39 |
|
// |
65 |
|
//-------------------------------------------------------------------------------------------------- |
66 |
|
SelectionStatus muonPreSelection( ControlFlags &ctrl, |
67 |
|
const mithep::Muon * mu, |
68 |
< |
const mithep::Vertex & vtx, |
68 |
> |
const mithep::Vertex * vtx, |
69 |
|
const mithep::Array<mithep::PFCandidate> * pfCandidates ) |
70 |
|
//-------------------------------------------------------------------------------------------------- |
71 |
|
{ |
90 |
|
//-------------------------------------------------------------------------------------------------- |
91 |
|
SelectionStatus muonReferencePreSelection( ControlFlags &ctrl, |
92 |
|
const mithep::Muon * mu, |
93 |
< |
const mithep::Vertex & vtx, |
93 |
> |
const mithep::Vertex * vtx, |
94 |
|
const mithep::Array<mithep::PFCandidate> * pfCandidates ) |
95 |
|
//-------------------------------------------------------------------------------------------------- |
96 |
|
{ |
104 |
|
ret &= ( fabs(mu->Eta()) <= 2.4 ); |
105 |
|
if(ctrl.debug) cout << "and < 2.4 eta (" << mu->Eta() << ")? ... " << ret << endl; |
106 |
|
ret &= ( mu->IsTrackerMuon() || mu->IsGlobalMuon() ); |
107 |
< |
if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl; |
107 |
> |
if(ctrl.debug) cout << "is Tracker or Global? ... " << ret << endl; |
108 |
> |
ret &= (mu->HasTrackerTrk() && mu->TrackerTrk()->D0Corrected(*vtx) < 0.5 && mu->TrackerTrk()->DzCorrected(*vtx) < 1.0); |
109 |
> |
if(ctrl.debug) cout << "d0 and dz? ... " << ret << endl; |
110 |
> |
|
111 |
|
// if( mu->IsTrackerMuon() && mu->HasTrackerTrk() && !mu->IsGlobalMuon() ) |
112 |
|
// ret &= ( mu->Quality().QualityMask().Mask() & mithep::MuonQuality::AllArbitrated); |
113 |
|
// if(ctrl.debug) cout << "if isTrackerMuon, arbitrated ? ... " << ret << endl; |
127 |
|
//-------------------------------------------------------------------------------------------------- |
128 |
|
SelectionStatus muonIDMVASelection(ControlFlags &ctrl, |
129 |
|
const mithep::Muon *mu, |
130 |
< |
const mithep::Vertex & vtx ) |
130 |
> |
const mithep::Vertex * vtx ) |
131 |
|
//-------------------------------------------------------------------------------------------------- |
132 |
|
{ |
133 |
|
double global_rchi2 = (mu->IsGlobalMuon()) ? mu->GlobalTrk()->RChi2() : 0.; |
201 |
|
//-------------------------------------------------------------------------------------------------- |
202 |
|
SelectionStatus muonIDPFSelection(ControlFlags &ctrl, |
203 |
|
const mithep::Muon *mu, |
204 |
< |
const mithep::Vertex & vtx, |
204 |
> |
const mithep::Vertex * vtx, |
205 |
|
const mithep::Array<mithep::PFCandidate> * pfCandidates ) |
206 |
|
//-------------------------------------------------------------------------------------------------- |
207 |
|
{ |
219 |
|
break; |
220 |
|
} |
221 |
|
} |
222 |
+ |
// |
223 |
+ |
// if(mu->IsPFMuon()) pass = true; |
224 |
+ |
// else pass = false; |
225 |
|
|
226 |
|
// |
227 |
|
// NB : ipsig here for reference synch ... |