CMS 3D CMS Logo

Functions
L1TMuonBarrelKalmanSectorProcessor.cc File Reference
#include "L1Trigger/L1TMuonBarrel/interface/L1TMuonBarrelKalmanSectorProcessor.h"

Go to the source code of this file.

Functions

void swap (std::map< uint, double > &info, std::map< uint, L1MuKBMTrack > &trackInfo, uint i, uint j)
 

Function Documentation

◆ swap()

void swap ( std::map< uint, double > &  info,
std::map< uint, L1MuKBMTrack > &  trackInfo,
uint  i,
uint  j 
)

Definition at line 313 of file L1TMuonBarrelKalmanSectorProcessor.cc.

313  {
314  double pt1 = info[i];
315  double pt2 = info[j];
316 
317  if (pt2 > pt1) {
318  info[j] = pt1;
319  info[i] = pt2;
320 
321  if (pt1 != 0.0 && pt2 != 0.0) {
322  L1MuKBMTrack tmp = trackInfo[i];
323  trackInfo[i] = trackInfo[j];
324  trackInfo[j] = tmp;
325  }
326  if (pt2 != 0.0 && pt1 == 0.0) {
327  trackInfo[i] = trackInfo[j];
328  }
329  }
330 }

References mps_fire::i, info(), dqmiolumiharvest::j, HLT_FULL_cff::pt1, HLT_FULL_cff::pt2, and createJobs::tmp.

Referenced by L1TMuonBarrelKalmanSectorProcessor::wedgeSort().

mps_fire.i
i
Definition: mps_fire.py:428
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
HLT_FULL_cff.pt1
pt1
Definition: HLT_FULL_cff.py:9893
L1MuKBMTrack
Definition: L1MuKBMTrack.h:19
HLT_FULL_cff.pt2
pt2
Definition: HLT_FULL_cff.py:9895
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66