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 46 of file L2MuonSeedGeneratorFromL1T.cc.

References L2MuonTrajectorySeed::l1tParticle().

Referenced by L2MuonSeedGeneratorFromL1T::produce().

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

Definition at line 52 of file L2MuonSeedGeneratorFromL1T.cc.

References L2MuonTrajectorySeed::l1tParticle().

Referenced by L2MuonSeedGeneratorFromL1T::produce().

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