CMS 3D CMS Logo

MuonSelectors.h

Go to the documentation of this file.
00001 #ifndef MuonReco_MuonSelectors_h
00002 #define MuonReco_MuonSelectors_h
00003 //
00004 // Package:    MuonReco
00005 // 
00006 //
00007 // Original Author:  Jake Ribnik, Dmytro Kovalskyi
00008 // $Id: MuonSelectors.h,v 1.3 2008/10/30 19:51:54 jribnik Exp $
00009 
00010 #include "DataFormats/MuonReco/interface/Muon.h"
00011 #include "TMath.h"
00012 
00013 namespace muon {
00015    bool isGoodMuon( const reco::Muon& muon, reco::Muon::SelectionType type );
00016 
00017    // ===========================================================================
00018    //                               Support functions
00019    // 
00020    enum AlgorithmType { TMLastStation, TM2DCompatibility, TMOneStation };
00021    
00022    // specialized GoodMuon functions called from main wrapper
00023    bool isGoodMuon( const reco::Muon& muon, 
00024                     AlgorithmType type,
00025                     double minCompatibility);
00026    
00027    bool isGoodMuon( const reco::Muon& muon, 
00028                     AlgorithmType type,
00029                     int minNumberOfMatches,
00030                     double maxAbsDx,
00031                     double maxAbsPullX,
00032                     double maxAbsDy,
00033                     double maxAbsPullY,
00034                     double maxChamberDist,
00035                     double maxChamberDistPull,
00036                     reco::Muon::ArbitrationType arbitrationType );
00037    
00038    // determine if station was crossed well withing active volume
00039    unsigned int RequiredStationMask( const reco::Muon& muon,
00040                                      double maxChamberDist,
00041                                      double maxChamberDistPull,
00042                                      reco::Muon::ArbitrationType arbitrationType );
00043 
00044    // ------------ method to return the calo compatibility for a track with matched muon info  ------------
00045    float caloCompatibility(const reco::Muon& muon);
00046 
00047    // ------------ method to calculate the segment compatibility for a track with matched muon info  ------------
00048    float segmentCompatibility(const reco::Muon& muon);
00049 
00050 
00051 }
00052 #endif

Generated on Tue Jun 9 17:31:21 2009 for CMSSW by  doxygen 1.5.4