1 #ifndef MuonIdentification_MuonArbitrationMethods_h 2 #define MuonIdentification_MuonArbitrationMethods_h 16 bool operator()(std::pair<reco::MuonChamberMatch*, reco::MuonSegmentMatch*>
p1,
17 std::pair<reco::MuonChamberMatch*, reco::MuonSegmentMatch*>
p2) {
25 return fabs(sm1->
x - cm1->
x) < fabs(sm2->
x - cm2->
x);
29 return fabs(sm1->
x - cm1->
x) < fabs(sm2->
x - cm2->
x);
static const unsigned int BestInStationByDRSlope
static const unsigned int BelongsToTrackByDXSlope
static const unsigned int BestInStationByDR
SortMuonSegmentMatches(unsigned int flag)
constructor takes arbitration type
static const unsigned int BestInChamberByDX
static const unsigned int BestInChamberByDR
static const unsigned int BestInStationByDXSlope
static const unsigned int BestInChamberByDXSlope
static const unsigned int BelongsToTrackByDRSlope
static const unsigned int BelongsToTrackByDR
static const unsigned int BelongsToTrackByDX
functor predicate for standard library sort algorithm
static const unsigned int BestInStationByDX
static const unsigned int BestInChamberByDRSlope
bool operator()(std::pair< reco::MuonChamberMatch *, reco::MuonSegmentMatch * > p1, std::pair< reco::MuonChamberMatch *, reco::MuonSegmentMatch * > p2)
sorts vector of pairs of chamber and segment pointers
Power< A, B >::type pow(const A &a, const B &b)