CMS 3D CMS Logo

List of all members | Public Member Functions
SiStripLatency::OrderByLatencyAndMode Struct Reference

#include <SiStripLatency.h>

Public Member Functions

bool operator() (const Latency &lat1, const Latency &lat2)
 

Detailed Description

Definition at line 117 of file SiStripLatency.h.

Member Function Documentation

◆ operator()()

bool SiStripLatency::OrderByLatencyAndMode::operator() ( const Latency lat1,
const Latency lat2 
)
inline

Definition at line 118 of file SiStripLatency.h.

118  {
119  // latency and mode are unsigned short that cannot exceed 255.
120  // Sum them multiplying the mode by 1000 to get a single ordering number.
121  int latencyAndModeSortValue1 = int(lat1.latency) + 1000 * int(lat1.mode);
122  int latencyAndModeSortValue2 = int(lat2.latency) + 1000 * int(lat2.mode);
123  return (latencyAndModeSortValue1 < latencyAndModeSortValue2);
124  }

References createfilelist::int, SiStripLatency::Latency::latency, and SiStripLatency::Latency::mode.

createfilelist.int
int
Definition: createfilelist.py:10