ATLAS Offline Software
Loading...
Searching...
No Matches
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, const 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

◆ 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,
const 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 }
std::string name(int id) const
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...

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: