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 300 of file L1TMuonBarrelKalmanSectorProcessor.cc.

300  {
301  double pt1 = info[i];
302  double pt2 = info[j];
303 
304  if (pt2 > pt1) {
305  info[j] = pt1;
306  info[i] = pt2;
307 
308  if (pt1 != 0.0 && pt2 != 0.0) {
309  L1MuKBMTrack tmp = trackInfo[i];
310  trackInfo[i] = trackInfo[j];
311  trackInfo[j] = tmp;
312  }
313  if (pt2 != 0.0 && pt1 == 0.0) {
314  trackInfo[i] = trackInfo[j];
315  }
316  }
317 }

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:9936
L1MuKBMTrack
Definition: L1MuKBMTrack.h:19
HLT_FULL_cff.pt2
pt2
Definition: HLT_FULL_cff.py:9938
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66