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

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

Definition at line 296 of file L1TMuonBarrelKalmanSectorProcessor.cc.

References mps_fire::i, hiDetachedQuadStep_cff::pt1, hiDetachedQuadStep_cff::pt2, and tmp.

Referenced by L1TMuonBarrelKalmanSectorProcessor::wedgeSort().

296  {
297  double pt1 = info[i];
298  double pt2 = info[j];
299 
300 
301  if (pt2>pt1) {
302  info[j] = pt1;
303  info[i] = pt2;
304 
305  if (pt1!=0.0 && pt2!=0.0) {
306  L1MuKBMTrack tmp = trackInfo[i];
307  trackInfo[i] = trackInfo[j];
308  trackInfo[j]=tmp;
309  }
310  if (pt2!=0.0 && pt1==0.0) {
311  trackInfo[i] = trackInfo[j];
312 
313  }
314 
315  }
316 
317 
318 }
static const TGPicture * info(bool iBackgroundIsBlack)
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100