CMS 3D CMS Logo

Functions
L2MuonSeedGeneratorFromL1T.cc File Reference
#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include "TrackingTools/TrajectoryParametrization/interface/CurvilinearTrajectoryError.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateTransform.h"
#include "TrackingTools/KalmanUpdators/interface/Chi2MeasurementEstimator.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h"
#include "RecoMuon/TrackingTools/interface/MuonPatternRecoDumper.h"

Go to the source code of this file.

Functions

bool sortByL1Pt (L2MuonTrajectorySeed &A, L2MuonTrajectorySeed &B)
 
bool sortByL1QandPt (L2MuonTrajectorySeed &A, L2MuonTrajectorySeed &B)
 

Function Documentation

bool sortByL1Pt ( L2MuonTrajectorySeed A,
L2MuonTrajectorySeed B 
)

Definition at line 47 of file L2MuonSeedGeneratorFromL1T.cc.

References L2MuonTrajectorySeed::l1tParticle().

Referenced by L2MuonSeedGeneratorFromL1T::produce().

47  {
48  l1t::MuonRef Ref_L1A = A.l1tParticle();
49  l1t::MuonRef Ref_L1B = B.l1tParticle();
50  return (Ref_L1A->pt() > Ref_L1B->pt());
51 };
l1t::MuonRef l1tParticle() const
bool sortByL1QandPt ( L2MuonTrajectorySeed A,
L2MuonTrajectorySeed B 
)

Definition at line 53 of file L2MuonSeedGeneratorFromL1T.cc.

References L2MuonTrajectorySeed::l1tParticle().

Referenced by L2MuonSeedGeneratorFromL1T::produce().

53  {
54  l1t::MuonRef Ref_L1A = A.l1tParticle();
55  l1t::MuonRef Ref_L1B = B.l1tParticle();
56 
57  // Compare quality first
58  if (Ref_L1A->hwQual() > Ref_L1B->hwQual()) return true;
59  if (Ref_L1A->hwQual() < Ref_L1B->hwQual()) return false;
60 
61  // For same quality L1s compare pT
62  return (Ref_L1A->pt() > Ref_L1B->pt());
63 };
l1t::MuonRef l1tParticle() const