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_2018_cff::pt1, HLT_2018_cff::pt2, and createJobs::tmp.

Referenced by L1TMuonBarrelKalmanSectorProcessor::wedgeSort().

mps_fire.i
i
Definition: mps_fire.py:355
HLT_2018_cff.pt2
pt2
Definition: HLT_2018_cff.py:8552
HLT_2018_cff.pt1
pt1
Definition: HLT_2018_cff.py:8550
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
L1MuKBMTrack
Definition: L1MuKBMTrack.h:19
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66