ATLAS Offline Software
Public Member Functions | List of all members
PMonSD::FastStrCmp Class Reference

#include <SemiDetMisc.h>

Collaboration diagram for PMonSD::FastStrCmp:

Public Member Functions

bool operator() (const std::string &a, const std::string &b) const
 
bool operator() (const OtherKey &a, const OtherKey &b) const
 

Detailed Description

Definition at line 192 of file SemiDetMisc.h.

Member Function Documentation

◆ operator()() [1/2]

bool PMonSD::FastStrCmp::operator() ( const OtherKey a,
const OtherKey b 
) const
inline

Definition at line 202 of file SemiDetMisc.h.

202  {
203  if (a.first.size()!=b.first.size()) return a.first.size()<b.first.size();
204  if (a.second.size()!=b.second.size()) return a.second.size()<b.second.size();
205  return a<b;
206  }

◆ operator()() [2/2]

bool PMonSD::FastStrCmp::operator() ( const std::string &  a,
const std::string &  b 
) const
inline

Definition at line 195 of file SemiDetMisc.h.

195  {
196  //by size, middle char and finally entire string
197  if (a.size()!=b.size()) return a.size()<b.size();
198  if (!a.empty()&&a[a.size()-1]!=b[a.size()-1])
199  return a[a.size()-1]<b[a.size()-1];
200  return a<b;
201  }

The documentation for this class was generated from the following file:
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10