ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SUSY::CrossSectionDB::Key Class Reference

#include <SUSYCrossSection.h>

Collaboration diagram for SUSY::CrossSectionDB::Key:

Public Member Functions

 Key ()
 
 Key (int _sample_id, int _proc_id)
 
 Key (int _sample_id, std::string name)
 
bool operator< (const Key &k) const
 

Private Attributes

int m_sample_id
 
int m_proc_id
 

Detailed Description

Definition at line 69 of file SUSYCrossSection.h.

Constructor & Destructor Documentation

◆ Key() [1/3]

SUSY::CrossSectionDB::Key::Key ( )
inline

Definition at line 73 of file SUSYCrossSection.h.

73 : m_sample_id(0), m_proc_id(0) {}

◆ Key() [2/3]

SUSY::CrossSectionDB::Key::Key ( int  _sample_id,
int  _proc_id 
)
inline

Definition at line 74 of file SUSYCrossSection.h.

74 : m_sample_id(_sample_id), m_proc_id(_proc_id) {}

◆ Key() [3/3]

SUSY::CrossSectionDB::Key::Key ( int  _sample_id,
std::string  name 
)
inline

Definition at line 75 of file SUSYCrossSection.h.

75  : m_sample_id(_sample_id) {
76  m_proc_id = atoi(name.c_str());
77  }

Member Function Documentation

◆ operator<()

bool SUSY::CrossSectionDB::Key::operator< ( const Key k) const
inline

Definition at line 78 of file SUSYCrossSection.h.

78  {
79  return this->m_sample_id < k.m_sample_id || (this->m_sample_id == k.m_sample_id && this->m_proc_id < k.m_proc_id);
80  }

Member Data Documentation

◆ m_proc_id

int SUSY::CrossSectionDB::Key::m_proc_id
private

Definition at line 71 of file SUSYCrossSection.h.

◆ m_sample_id

int SUSY::CrossSectionDB::Key::m_sample_id
private

Definition at line 70 of file SUSYCrossSection.h.


The documentation for this class was generated from the following file:
SUSY::CrossSectionDB::Key::m_sample_id
int m_sample_id
Definition: SUSYCrossSection.h:70
SUSY::CrossSectionDB::name
std::string name(int id) const
Definition: SUSYCrossSection.h:111
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
fitman.k
k
Definition: fitman.py:528
SUSY::CrossSectionDB::Key::m_proc_id
int m_proc_id
Definition: SUSYCrossSection.h:71