15 |
|
// is subsequently returned. To consult more see: |
16 |
|
// http://cmsdoc.cern.ch/cms/Physics/muon/MPOG/Notes/MuonReco.pdf |
17 |
|
// |
18 |
< |
// Quality Varaibles for Selection |
18 |
> |
// Quality Variables for Selection |
19 |
|
// Isolation : decomposed to IsoRNNXXXXX |
20 |
|
// NN = 03,05 to denote R =0.3,0.5 in Isolation Cone |
21 |
|
// XXXXX = SumPt - Sum of Pt of Tracks in Cone (using all Pt Tracks) |
225 |
|
void SetTrackDist(Int_t iStation, Double_t iDist); |
226 |
|
void SetTrackDistErr(Int_t iStation, Double_t iDistErr); |
227 |
|
|
228 |
+ |
// Some structural tools |
229 |
+ |
void Mark(UInt_t i=1) const; |
230 |
+ |
|
231 |
|
protected: |
232 |
|
Double_t GetCharge() const; |
233 |
|
Double_t GetMass() const { return 105.658369e-3; } |
298 |
|
} |
299 |
|
|
300 |
|
//-------------------------------------------------------------------------------------------------- |
301 |
+ |
inline void mithep::Muon::Mark(UInt_t ib) const |
302 |
+ |
{ |
303 |
+ |
// mark myself |
304 |
+ |
mithep::DataObject::Mark(ib); |
305 |
+ |
// mark my dependencies if they are there |
306 |
+ |
if (fGlobalTrkRef.IsValid()) |
307 |
+ |
fGlobalTrkRef.Obj()->Mark(ib); |
308 |
+ |
if (fStaTrkRef.IsValid()) |
309 |
+ |
fStaTrkRef.Obj()->Mark(ib); |
310 |
+ |
if (fTrkTrkRef.IsValid()) |
311 |
+ |
fTrkTrkRef.Obj()->Mark(ib); |
312 |
+ |
} |
313 |
+ |
|
314 |
+ |
//-------------------------------------------------------------------------------------------------- |
315 |
|
inline const mithep::Track *mithep::Muon::BestTrk() const |
316 |
|
{ |
317 |
|
// Return "best" track. |
337 |
|
return mithep::ChargedParticle::GetCharge(); |
338 |
|
else |
339 |
|
return fCharge; |
323 |
– |
|
340 |
|
} |
341 |
|
|
342 |
|
//-------------------------------------------------------------------------------------------------- |
348 |
|
// If momentum is unfilled, fall back to old method of getting momentum from best track |
349 |
|
// (for backwards compatibility.) |
350 |
|
|
351 |
< |
if (fMom.Rho()>0.0) { |
351 |
> |
if (fMom.Rho()>0.0) |
352 |
|
fCachedMom.SetCoordinates(fMom.Rho(),fMom.Eta(),fMom.Phi(),GetMass()); |
353 |
< |
} |
338 |
< |
else { |
353 |
> |
else |
354 |
|
mithep::ChargedParticle::GetMom(); |
340 |
– |
} |
341 |
– |
|
355 |
|
} |
356 |
|
|
357 |
|
//-------------------------------------------------------------------------------------------------- |
683 |
|
ClearMom(); |
684 |
|
} |
685 |
|
#endif |
673 |
– |
|
674 |
– |
|
675 |
– |
|
676 |
– |
|
677 |
– |
|