ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
PMonSD::CmpEntries Class Reference
Collaboration diagram for PMonSD::CmpEntries:

Public Member Functions

 CmpEntries (unsigned ival)
 
bool operator() (const Entry &a, const Entry &b)
 

Static Public Attributes

static const unsigned specialsort =UINT_MAX
 

Private Attributes

unsigned m_ival
 

Detailed Description

Definition at line 483 of file SemiDetHelper.cxx.

Constructor & Destructor Documentation

◆ CmpEntries()

PMonSD::CmpEntries::CmpEntries ( unsigned  ival)
inline

Definition at line 486 of file SemiDetHelper.cxx.

486 : m_ival(ival) {}

Member Function Documentation

◆ operator()()

bool PMonSD::CmpEntries::operator() ( const Entry a,
const Entry b 
)
inline

Definition at line 487 of file SemiDetHelper.cxx.

487  {
488  double va,vb;
489  if (m_ival==specialsort) {
490  //sort by vmem+malloc followed cpu:
491  va=a.data->sortValMemory();
492  vb=b.data->sortValMemory();
493  if (va!=vb)
494  return va>vb;
495  va=a.data->sortValCPU();vb=b.data->sortValCPU();
496  } else {
497  va=a.data->sortVal(m_ival);vb=b.data->sortVal(m_ival);
498  }
499  if (va==vb) {
500  //if cpu, try to sort by vmem+malloc as well (for the final evt-report):
502  va=a.data->sortValMemory();
503  vb=b.data->sortValMemory();
504  if (va!=vb)
505  return va>vb;
506  }
507  //Finally sort by names, just to have a well-defined order.
508  return *(a.compName)<*(b.compName);
509  }
510  return va>vb;
511  }

Member Data Documentation

◆ m_ival

unsigned PMonSD::CmpEntries::m_ival
private

Definition at line 513 of file SemiDetHelper.cxx.

◆ specialsort

const unsigned PMonSD::CmpEntries::specialsort =UINT_MAX
static

Definition at line 485 of file SemiDetHelper.cxx.


The documentation for this class was generated from the following file:
PMonSD::CmpEntries::m_ival
unsigned m_ival
Definition: SemiDetHelper.cxx:513
WriteCellNoiseToCool.ival
ival
Definition: WriteCellNoiseToCool.py:337
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
PMonSD::CompDataBasic::ival_cpu
static constexpr unsigned ival_cpu
Definition: SemiDetMisc.h:130
PMonSD::CmpEntries::specialsort
static const unsigned specialsort
Definition: SemiDetHelper.cxx:485