CMS 3D CMS Logo

Functions
L2MuonSeedGeneratorFromL1T.cc File Reference
#include "RecoMuon/L2MuonSeedGenerator/src/L2MuonSeedGeneratorFromL1T.h"
#include "FWCore/Framework/interface/ConsumesCollector.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

◆ sortByL1Pt()

bool sortByL1Pt ( L2MuonTrajectorySeed A,
L2MuonTrajectorySeed B 
)

Definition at line 47 of file L2MuonSeedGeneratorFromL1T.cc.

References A, and B.

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 };
Definition: APVGainStruct.h:7
Definition: APVGainStruct.h:7

◆ sortByL1QandPt()

bool sortByL1QandPt ( L2MuonTrajectorySeed A,
L2MuonTrajectorySeed B 
)

Definition at line 53 of file L2MuonSeedGeneratorFromL1T.cc.

References A, and B.

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())
59  return true;
60  if (Ref_L1A->hwQual() < Ref_L1B->hwQual())
61  return false;
62 
63  // For same quality L1s compare pT
64  return (Ref_L1A->pt() > Ref_L1B->pt());
65 };
Definition: APVGainStruct.h:7
Definition: APVGainStruct.h:7