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.36 by bendavid, Fri May 21 18:50:07 2010 UTC vs.
Revision 1.43 by ceballos, Sat May 21 13:27:58 2011 UTC

# Line 43 | Line 43
43   //    to propagated track
44   //   NSegments : Number of segments in muon using Segment+Track Arbitration
45   //   NChambers : Number of muon chambers traversed in propagated track
46 + //   NMatches  : Number of muon chambers with matches
47   //   LastHit   : Returns farest (from center) station with a recorded segment
48   //   LastStation  : Returns farest station using Segment+Track Arbitration
49   //
# Line 93 | Line 94 | namespace mithep {
94        Double_t       Ip3dPVBS()                      const { return fIp3dPVBS;                 }
95        Double_t       Ip3dPVBSErr()                   const { return fIp3dPVBSErr;              }
96        Double_t       Ip3dPVBSSignificance()          const { return fIp3dPVBS/fIp3dPVBSErr;    }
97 +      Double_t       D0PVUB()                          const { return fD0PVUB;                     }
98 +      Double_t       D0PVUBErr()                       const { return fD0PVUBErr;                  }
99 +      Double_t       D0PVUBSignificance()              const { return fD0PVUB/fD0PVUBErr;            }
100 +      Double_t       Ip3dPVUB()                        const { return fIp3dPVUB;                   }
101 +      Double_t       Ip3dPVUBErr()                     const { return fIp3dPVUBErr;                }
102 +      Double_t       Ip3dPVUBSignificance()            const { return fIp3dPVUB/fIp3dPVUBErr;        }
103 +      Double_t       D0PVUBBS()                        const { return fD0PVUBBS;                   }
104 +      Double_t       D0PVUBBSErr()                     const { return fD0PVUBBSErr;                }
105 +      Double_t       D0PVUBBSSignificance()            const { return fD0PVUBBS/fD0PVUBBSErr;        }
106 +      Double_t       Ip3dPVUBBS()                      const { return fIp3dPVUBBS;                 }
107 +      Double_t       Ip3dPVUBBSErr()                   const { return fIp3dPVUBBSErr;              }
108 +      Double_t       Ip3dPVUBBSSignificance()          const { return fIp3dPVUBBS/fIp3dPVUBBSErr;    }
109        Double_t       PVCompatibility()               const { return fPVCompatibility;          }
110        Double_t       PVBSCompatibility()             const { return fPVBSCompatibility;        }
111 +      Double_t       TrkKink()                       const { return fTrkKink;                  }
112 +      Double_t       GlbKink()                       const { return fGlbKink;                  }
113        Double_t       EmEnergy()                      const { return fEmEnergy;                 }
114        Double_t       EmS9Energy()                    const { return fEmS9Energy;               }
115        Double_t       GetDX(Int_t iStation)           const;
# Line 130 | Line 145 | namespace mithep {
145        Double_t       IsoR05HoEt()                    const { return fIsoR05HoEt;               }
146        UShort_t       IsoR05NTracks()                 const { return fIsoR05NTracks;            }
147        UShort_t       IsoR05NJets()                   const { return fIsoR05NJets;              }
148 +      UInt_t         NValidHits()                    const { return fNValidHits;               }
149        UInt_t         NChambers()                     const { return fNTraversedChambers;       }
150        UInt_t         NSegments()                     const { return fStationMask.NBitsSet();   }
151 +      UInt_t         NMatches()                      const { return fNMatches;                 }
152        Int_t          LastHit()                       const;
153        Int_t          LastStation(Double_t iMaxD, Double_t iMaxP)               const;
154        Int_t          LastStation(Int_t iMax=8)       const;
# Line 163 | Line 180 | namespace mithep {
180        void           SetD0PVBSErr(Double_t x)              { fD0PVBSErr = x;                   }
181        void           SetIp3dPVBS(Double_t x)               { fIp3dPVBS = x;                    }
182        void           SetIp3dPVBSErr(Double_t x)            { fIp3dPVBSErr = x;                 }
183 +      void           SetD0PVUB(Double_t x)                   { fD0PVUB = x;                        }
184 +      void           SetD0PVUBErr(Double_t x)                { fD0PVUBErr = x;                     }
185 +      void           SetIp3dPVUB(Double_t x)                 { fIp3dPVUB = x;                      }
186 +      void           SetIp3dPVUBErr(Double_t x)              { fIp3dPVUBErr = x;                   }
187 +      void           SetD0PVUBBS(Double_t x)                 { fD0PVUBBS = x;                      }
188 +      void           SetD0PVUBBSErr(Double_t x)              { fD0PVUBBSErr = x;                   }
189 +      void           SetIp3dPVUBBS(Double_t x)               { fIp3dPVUBBS = x;                    }
190 +      void           SetIp3dPVUBBSErr(Double_t x)            { fIp3dPVUBBSErr = x;                 }
191        void           SetPVCompatibility(Double_t x)        { fPVCompatibility = x;             }
192        void           SetPVBSCompatibility(Double_t x)      { fPVBSCompatibility = x;           }
193 +      void           SetTrkKink(Double_t x)                { fTrkKink = x;                     }
194 +      void           SetGlbKink(Double_t x)                { fGlbKink = x;                     }
195        void           SetEmEnergy(Double_t EmEnergy)        { fEmEnergy = EmEnergy;             }
196        void           SetEmS9Energy(Double_t EmS9Energy)    { fEmS9Energy = EmS9Energy;         }
197        void           SetHadEnergy(Double_t HadEnergy)      { fHadEnergy = HadEnergy;           }
# Line 187 | Line 214 | namespace mithep {
214        void           SetIsoR05HoEt(Double_t isoR05HoEt)    { fIsoR05HoEt = isoR05HoEt;         }
215        void           SetIsoR05NTracks(UShort_t isoR05NTrk) { fIsoR05NTracks = isoR05NTrk;      }
216        void           SetIsoR05NJets(UShort_t isoR05NJets)  { fIsoR05NJets = isoR05NJets;       }
217 +      void           SetNValidHits(UShort_t iNValidHits)   { fNValidHits  = iNValidHits;       }
218        void           SetNChambers(UShort_t iNTraCh)        { fNTraversedChambers = iNTraCh;    }
219        void           SetNSegments(Int_t iStation, Int_t NSegments);
220 +      void           SetNMatches(UShort_t iNMatCh)         { fNMatches = iNMatCh;              }
221        void           SetPtEtaPhi(Double_t pt, Double_t eta, Double_t phi);
222        void           SetPullX(Int_t iStation, Double_t iPullX);
223        void           SetPullY(Int_t iStation, Double_t iPullY);
# Line 232 | Line 261 | namespace mithep {
261        Double32_t     fD0PVBSErr;           //[0,0,14]transverse impact parameter uncertainty to signal PV w/ bs constraint
262        Double32_t     fIp3dPVBS;            //[0,0,14]3d impact parameter to signal PV w/ bs constraint
263        Double32_t     fIp3dPVBSErr;         //[0,0,14]3d impact parameter uncertainty to signal PV w/ bs constraint
264 +      Double32_t     fD0PVUB;                //[0,0,14]transverse impact parameter to signal PVUB (unbiased primary vertex - refit removing lepton track)
265 +      Double32_t     fD0PVUBErr;             //[0,0,14]transverse impact parameter uncertainty to signal PVUB
266 +      Double32_t     fIp3dPVUB;              //[0,0,14]3d impact parameter to signal PVUB
267 +      Double32_t     fIp3dPVUBErr;           //[0,0,14]3d impact parameter uncertainty to signal PVUB
268 +      Double32_t     fD0PVUBBS;              //[0,0,14]transverse impact parameter to signal PVUB w/ bs constraint
269 +      Double32_t     fD0PVUBBSErr;           //[0,0,14]transverse impact parameter uncertainty to signal PVUB w/ bs constraint
270 +      Double32_t     fIp3dPVUBBS;            //[0,0,14]3d impact parameter to signal PVUB w/ bs constraint
271 +      Double32_t     fIp3dPVUBBSErr;         //[0,0,14]3d impact parameter uncertainty to signal PVUB w/ bs constraint
272        Double32_t     fPVCompatibility;     //[0,0,14]chi^2 compatibility with signal PV (ndof=2)
273        Double32_t     fPVBSCompatibility;   //[0,0,14]chi^2 compatibility with signal PV w/ bs constraint (ndof=2)
274 +      Double32_t     fTrkKink;             //[0,0,14]kink algorithm output (tracker track)
275 +      Double32_t     fGlbKink;             //[0,0,14]kink algorithm output (global track)
276 +      UShort_t       fNValidHits;          //number of Valid hits in global fit
277        UShort_t       fNTraversedChambers;  //number of traversed chambers
278 +      UShort_t       fNMatches;            //number of muon chambers with matches
279        MuonQuality    fQuality;             //muon quality
280        BitMask8       fStationMask;         //bitmap of station with tracks, 0-3 DT, 4-7 CSCs
281        Double32_t     fDX[8];               //[0,0,14]uncertainty in x in given muon chamber
# Line 249 | Line 290 | namespace mithep {
290        Bool_t         fIsStandaloneMuon;    //StandaloneMuon algo flag
291        Bool_t         fIsCaloMuon;          //CaloMuon algo flag
292  
293 <    ClassDef(Muon, 5) // Muon class
293 >    ClassDef(Muon, 8) // Muon class
294    };
295   }
296  
# Line 258 | Line 299 | inline const mithep::Track *mithep::Muon
299   {
300    // Return "best" track.
301  
302 <  if (HasGlobalTrk())
262 <    return GlobalTrk();
263 <  else if (HasTrackerTrk())
302 >  if (HasTrackerTrk())
303      return TrackerTrk();
304 +  else if (HasGlobalTrk())
305 +    return GlobalTrk();
306    else if (HasStandaloneTrk())
307      return StandaloneTrk();
308  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines