Belle II Software development
adc_search Struct Reference

functions to search in the sorted list of tuples More...

#include <CDCCrossTalkClasses.h>

Public Member Functions

bool operator() (const adcAsicTuple &lhs, const adcAsicTuple &rhs)
 Order accroding to channel/ADC value.
 
bool operator() (const adcChannelPair &lhs, const adcAsicTuple &rhs)
 Order accroding to channel/ADC value.
 
bool operator() (const adcAsicTuple &lhs, const adcChannelPair &rhs)
 Order accroding to channel/ADC value.
 

Detailed Description

functions to search in the sorted list of tuples

Definition at line 45 of file CDCCrossTalkClasses.h.

Member Function Documentation

◆ operator()() [1/3]

bool operator() ( const adcAsicTuple lhs,
const adcAsicTuple rhs 
)
inline

Order accroding to channel/ADC value.

Definition at line 47 of file CDCCrossTalkClasses.h.

48 {
49 if (lhs.Channel == rhs.Channel) {
50 return lhs.ADC < rhs.ADC;
51 } else {
52 return lhs.Channel < rhs.Channel;
53 }
54 }

◆ operator()() [2/3]

bool operator() ( const adcAsicTuple lhs,
const adcChannelPair rhs 
)
inline

Order accroding to channel/ADC value.

Definition at line 67 of file CDCCrossTalkClasses.h.

68 {
69 if (lhs.Channel == rhs.Channel) {
70 return lhs.ADC < rhs.ADC;
71 } else {
72 return lhs.Channel < rhs.Channel;
73 }
74 }

◆ operator()() [3/3]

bool operator() ( const adcChannelPair lhs,
const adcAsicTuple rhs 
)
inline

Order accroding to channel/ADC value.

Definition at line 57 of file CDCCrossTalkClasses.h.

58 {
59 if (lhs.Channel == rhs.Channel) {
60 return lhs.ADC < rhs.ADC;
61 } else {
62 return lhs.Channel < rhs.Channel;
63 }
64 }

The documentation for this struct was generated from the following file: