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.9 by loizides, Tue Jul 1 08:54:57 2008 UTC vs.
Revision 1.10 by loizides, Mon Jul 14 20:55:19 2008 UTC

# Line 23 | Line 23 | namespace mithep
23        Muon() {}
24        ~Muon() {}
25        
26 <      const Track   *GetGlobalTrack()     const;
27 <      const Track   *GetStandaloneTrack() const;
28 <      const Track   *GetTrackerTrack()    const;
29 <      const Track*   GetTrack()           const;
26 >      const Track   *BestTrk()            const;
27 >      const Track   *GlobalTrk()          const;
28 >      const Track   *StandaloneTrk()      const;
29 >      const Track   *TrackerTrk()         const;
30        Double_t       Mass()               const { return 105.658369e-3; }  
31        
32 <      void           SetGlobalTrack(Track* t)     { fGlobalTrackRef = t; }
33 <      void           SetStandaloneTrack(Track* t) { fStandaloneTrackRef = t; }
34 <      void           SetTrackerTrack(Track* t)    { fTrackerTrackRef = t; }
32 >      void           SetGlobalTrk(Track* t)     { fGlobalTrackRef = t; }
33 >      void           SetStandaloneTrk(Track* t) { fStandaloneTrackRef = t; }
34 >      void           SetTrackerTrk(Track* t)    { fTrackerTrackRef = t; }
35        
36      protected:
37        TRef           fGlobalTrackRef;      //global combined track reference
# Line 43 | Line 43 | namespace mithep
43   }
44  
45   //--------------------------------------------------------------------------------------------------
46 < inline const mithep::Track *mithep::Muon::GetGlobalTrack() const
46 > inline const mithep::Track *mithep::Muon::BestTrk() const
47 > {
48 >  // Return "best" track.
49 >
50 >  if (GlobalTrk())
51 >    return GlobalTrk();
52 >  else if (StandaloneTrk())
53 >    return StandaloneTrk();
54 >  else if (TrackerTrk())
55 >    return TrackerTrk();
56 >
57 >  return 0;
58 > }
59 >
60 > //--------------------------------------------------------------------------------------------------
61 > inline const mithep::Track *mithep::Muon::GlobalTrk() const
62   {
63    // Return global combined track.
64  
# Line 51 | Line 66 | inline const mithep::Track *mithep::Muon
66   }
67  
68   //--------------------------------------------------------------------------------------------------
69 < inline const mithep::Track *mithep::Muon::GetStandaloneTrack() const
69 > inline const mithep::Track *mithep::Muon::StandaloneTrk() const
70   {
71    // Return standalone track.
72  
# Line 59 | Line 74 | inline const mithep::Track *mithep::Muon
74   }
75  
76   //--------------------------------------------------------------------------------------------------
77 < inline const mithep::Track *mithep::Muon::GetTrackerTrack() const
77 > inline const mithep::Track *mithep::Muon::TrackerTrk() const
78   {
79    // Return tracker track.
80  
81    return static_cast<const Track*>(fTrackerTrackRef.GetObject());
82   }
68
69 //--------------------------------------------------------------------------------------------------
70 inline const mithep::Track *mithep::Muon::GetTrack() const
71 {
72  // Return "best" track.
73
74  if (GetGlobalTrack())
75    return GetGlobalTrack();
76  else if (GetStandaloneTrack())
77    return GetStandaloneTrack();
78  else if (GetTrackerTrack())
79    return GetTrackerTrack();
80
81  return 0;
82 }
83   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines