ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Muon.h
(Generate patch)

Comparing UserCode/MitAna/DataTree/interface/Muon.h (file contents):
Revision 1.45 by paus, Sun Oct 23 01:53:16 2011 UTC vs.
Revision 1.47 by paus, Thu Mar 29 23:41:55 2012 UTC

# Line 15 | Line 15
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)
# Line 225 | Line 225 | namespace mithep {
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;             }  
# Line 295 | Line 298 | namespace mithep {
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.
# Line 320 | Line 337 | inline Double_t mithep::Muon::GetCharge(
337      return mithep::ChargedParticle::GetCharge();
338    else
339      return fCharge;
323
340   }
341  
342   //--------------------------------------------------------------------------------------------------
# Line 332 | Line 348 | inline void mithep::Muon::GetMom() const
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   //--------------------------------------------------------------------------------------------------
# Line 670 | Line 683 | inline void mithep::Muon::SetPtEtaPhi(Do
683    ClearMom();
684   }
685   #endif
673
674
675
676
677

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines