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.

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

Referenced by L1TMuonBarrelKalmanSectorProcessor::wedgeSort().

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 }
static const TGPicture * info(bool iBackgroundIsBlack)
tmp
align.sh
Definition: createJobs.py:716